Omitting infra definition for a stage
pending feedback
A
Agreed Mockingbird
We have an "init" stage in our pipeline that calculates target infras dynamically based on requirements stored in Git. The stage is set as a "deploy" type because it needs to understand the service and environment, but the infra definition variable is not used. Users are required to select an infra definition, which causes confusion since it's not actually needed. We cannot use custom stage as we can pull service-related variables in it, We want to avoid hard-coding or creating dummy infra definitions.
Log In
A
Agreed Mockingbird
Hey team, I see that this request is in the "Pending feedback" state, even though I've replied to the latest message. Please take a look.
Canny AI
Merged in a post:
Env Abstraction: Engineers should just select Env, abstract away infra selection
M
Manual Dormouse
User want to abstract away infra defn selection from engineers and they should know only about env to avoid any mistake or confusion while running pipeline/workflow.
A
Agreed Mockingbird
Hello Rohan, yes, I also thought about this option, and it looks like a good one. The only problem with it is that in this "init" stage we use a K8s "dry-run" step to get a rendered manifest and run some additional validations. This step is not available in the custom stage. Is it possible to also allow it?
Rohan Gupta
pending feedback
Rohan Gupta
Andrey, We use the infra definition to authenticate with targets for deployment jobs, Instance Sync, etc. If we expose service in the custom stage, would that also solve the use case? Then Service and Environment can be passed. Infra could be optional and you compute the rest of the targets for the downstream CD stages? We want to refrain from breaking fundamental concepts of the CD stage.
Shylaja Sundararajan
This feature has been delivered recenlty with support for Env as runtime input and Infra as expression .Hence marking it as complete
Rohan Gupta
Merged in a post:
Selecting namespace when using automatic environment selection
P
Peacock blue Planarian
While selecting a environment group with environment/infra filter, We are not able to provide runtime input for env/infra.
Option to give runtime inputs for env/infra when with filters is not available yet.