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 16, 2024
1 parent 0f522cb commit ed6ca0a
Show file tree
Hide file tree
Showing 12 changed files with 609 additions and 1,266 deletions.
943 changes: 270 additions & 673 deletions api/v1alpha1/generated.pb.go

Large diffs are not rendered by default.

65 changes: 12 additions & 53 deletions api/v1alpha1/generated.proto

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

42 changes: 6 additions & 36 deletions api/v1alpha1/zz_generated.deepcopy.go

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

115 changes: 52 additions & 63 deletions charts/kargo/resources/crds/kargo.akuity.io_clusterpromotiontasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,10 @@ spec:
Spec describes the desired transition of a specific Stage into a specific
Freight.
properties:
inputs:
description: |-
Inputs specifies the inputs available to the PromotionTask. These inputs
can be specified in the PromotionTemplate as configuration for the task,
and can be used in the Steps to parameterize the execution of the task.
items:
description: |-
PromotionTaskInput defines an input parameter for a PromotionTask. This input
can be specified in the PromotionTemplate as configuration for the task, and
can be used in the Steps to parameterize the execution of the task.
properties:
default:
description: |-
Default specifies a default value for the parameter. This value will be
used if the parameter is not specified in the PromotionTemplate.
If left unspecified, the input value is required to be specified in the
configuration of the step referencing this task.
type: string
name:
description: |-
Name of the configuration parameter, which should be unique within the
PromotionTask. This name can be used to reference the parameter in the
PromotionTaskSpec.Steps.
minLength: 1
pattern: ^[a-zA-Z_]\w*$
type: string
required:
- name
type: object
type: array
steps:
description: |-
Steps specifies the directives to be executed as part of this
PromotionTask. The steps as defined here are deflated into a
PromotionTask. The steps as defined here are inflated into a
Promotion when it is built from a PromotionTemplate.
items:
description: PromotionStep describes a directive to be executed
Expand All @@ -96,33 +66,6 @@ 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:
description: |-
Inputs is a list 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.
items:
description: |-
PromotionStepInput describes a single input value for a PromotionStep that may
be referenced by expressions in the step.
properties:
name:
description: Name is the name of the input to which the
value is assigned.
minLength: 1
pattern: ^[a-zA-Z_]\w*$
type: string
value:
description: Value is the input value.
type: string
required:
- name
- value
type: object
type: array
retry:
description: Retry is the retry policy for this step.
properties:
Expand Down Expand Up @@ -169,7 +112,7 @@ spec:
type: object
task:
description: |-
Task is a reference to a PromotionTask that should be deflated into a
Task is a reference to a PromotionTask that should be inflated into a
Promotion when it is built from a PromotionTemplate.
properties:
kind:
Expand All @@ -194,17 +137,63 @@ spec:
step.
minLength: 1
type: string
vars:
description: |-
Vars is a list of variables that can be referenced by expressions in
the step's Config. The values override the values specified in the
PromotionSpec.
items:
description: |-
PromotionVariable describes a single variable that may be referenced by
expressions in promotion steps.
properties:
name:
description: Name is the name of the variable.
minLength: 1
pattern: ^[a-zA-Z_]\w*$
type: string
value:
description: |-
Value is the value of the variable. It is allowed to utilize expressions
in the value.
See https://docs.kargo.io/references/expression-language for details.
type: string
required:
- name
type: object
type: array
type: object
x-kubernetes-validations:
- 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
vars:
description: |-
Vars specifies the variables available to the PromotionTask. The
values of these variables are the default values that can be
overridden by the step referencing the task.
items:
description: |-
PromotionVariable describes a single variable that may be referenced by
expressions in promotion steps.
properties:
name:
description: Name is the name of the variable.
minLength: 1
pattern: ^[a-zA-Z_]\w*$
type: string
value:
description: |-
Value is the value of the variable. It is allowed to utilize expressions
in the value.
See https://docs.kargo.io/references/expression-language for details.
type: string
required:
- name
type: object
type: array
required:
- steps
type: object
Expand Down
Loading

0 comments on commit ed6ca0a

Please sign in to comment.