Skip to content

Commit

Permalink
chore: run codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Dec 11, 2024
1 parent dd30bb1 commit 242b4e6
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ spec:
expressions in defining values at any level of this block.
See https://docs.kargo.io/references/expression-language for details.
x-kubernetes-preserve-unknown-fields: true
inputs:
additionalProperties:
type: string
description: |-
Inputs is a map of inputs that can used to parameterize the execution
of the PromotionStep and can be referenced by expressions in the Config.
When a PromotionStep is inflated from a PromotionTask, the inputs
specified in the PromotionTask are set based on the inputs specified
in the Config of the PromotionStep that references the PromotionTask.
type: object
retry:
description: Retry is the retry policy for this step.
properties:
Expand Down Expand Up @@ -171,6 +182,10 @@ spec:
- message: PromotionTask step must have uses set and must not reference
another task
rule: has(self.uses) && !has(self.task)
- message: PromotionTask step must not have inputs set
rule: self.inputs.size() == 0
- message: inputs must not be set when task is set
rule: '!(has(self.task) && self.inputs.size() > 0)'
minItems: 1
type: array
required:
Expand Down
13 changes: 13 additions & 0 deletions charts/kargo/resources/crds/kargo.akuity.io_promotions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ spec:
expressions in defining values at any level of this block.
See https://docs.kargo.io/references/expression-language for details.
x-kubernetes-preserve-unknown-fields: true
inputs:
additionalProperties:
type: string
description: |-
Inputs is a map of inputs that can used to parameterize the execution
of the PromotionStep and can be referenced by expressions in the Config.
When a PromotionStep is inflated from a PromotionTask, the inputs
specified in the PromotionTask are set based on the inputs specified
in the Config of the PromotionStep that references the PromotionTask.
type: object
retry:
description: Retry is the retry policy for this step.
properties:
Expand Down Expand Up @@ -174,6 +185,8 @@ spec:
- message: Promotion step must have uses set and must not reference
a task
rule: has(self.uses) && !has(self.task)
- message: inputs must not be set when task is set
rule: '!(has(self.task) && self.inputs.size() > 0)'
minItems: 1
type: array
vars:
Expand Down
15 changes: 15 additions & 0 deletions charts/kargo/resources/crds/kargo.akuity.io_promotiontasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ spec:
expressions in defining values at any level of this block.
See https://docs.kargo.io/references/expression-language for details.
x-kubernetes-preserve-unknown-fields: true
inputs:
additionalProperties:
type: string
description: |-
Inputs is a map of inputs that can used to parameterize the execution
of the PromotionStep and can be referenced by expressions in the Config.
When a PromotionStep is inflated from a PromotionTask, the inputs
specified in the PromotionTask are set based on the inputs specified
in the Config of the PromotionStep that references the PromotionTask.
type: object
retry:
description: Retry is the retry policy for this step.
properties:
Expand Down Expand Up @@ -171,6 +182,10 @@ spec:
- message: PromotionTask step must have uses set and must not reference
another task
rule: has(self.uses) && !has(self.task)
- message: PromotionTask step must not have inputs set
rule: self.inputs.size() == 0
- message: inputs must not be set when task is set
rule: '!(has(self.task) && self.inputs.size() > 0)'
minItems: 1
type: array
required:
Expand Down
13 changes: 13 additions & 0 deletions charts/kargo/resources/crds/kargo.akuity.io_stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ spec:
expressions in defining values at any level of this block.
See https://docs.kargo.io/references/expression-language for details.
x-kubernetes-preserve-unknown-fields: true
inputs:
additionalProperties:
type: string
description: |-
Inputs is a map of inputs that can used to parameterize the execution
of the PromotionStep and can be referenced by expressions in the Config.
When a PromotionStep is inflated from a PromotionTask, the inputs
specified in the PromotionTask are set based on the inputs specified
in the Config of the PromotionStep that references the PromotionTask.
type: object
retry:
description: Retry is the retry policy for this step.
properties:
Expand Down Expand Up @@ -164,6 +175,8 @@ spec:
- message: PromotionTemplate step must have exactly one
of uses or task set
rule: '(has(self.uses) ? !has(self.task) : has(self.task))'
- message: inputs must not be set when task is set
rule: '!(has(self.task) && self.inputs.size() > 0)'
minItems: 1
type: array
vars:
Expand Down

0 comments on commit 242b4e6

Please sign in to comment.