Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pipelines/types/istio.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ const StepActionIstioUpgrade = "IstioUpgrade"

type IstioUpgradeStep struct {
StepMeta `json:",inline"`
AKSCluster string `json:"aksCluster"`
DryRun bool `json:"dryRun,omitempty"`
AKSCluster Value `json:"aksCluster"`
}

func (s *IstioUpgradeStep) Description() string {
return fmt.Sprintf("Step %s\n Kind: %s\n AKSCluster: %s\n DryRun: %v\n", s.Name, s.Action, s.AKSCluster, s.DryRun)
return fmt.Sprintf("Step %s\n Kind: %s\n AKSCluster: %s\n", s.Name, s.Action, s.AKSCluster.String())
}

func (s *IstioUpgradeStep) RequiredInputs() []StepDependency {
Expand Down
43 changes: 43 additions & 0 deletions pipelines/types/pipeline.schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,33 @@
}
]
},
"istioUpgradeStep": {
"unevaluatedProperties": false,
"allOf": [
{
"$ref": "#/definitions/stepMeta"
},
{
"properties": {
"action": {
"const": "IstioUpgrade"
},
"aksCluster": {
"$ref": "#/definitions/value"
},
"timeout": {
"$ref": "#/definitions/durationString"
},
"shellIdentity": {
"$ref": "#/definitions/value"
}
},
"required": [
"aksCluster"
]
}
]
},
"helmStep": {
"unevaluatedProperties": false,
"allOf": [
Expand Down Expand Up @@ -2073,6 +2100,22 @@
"then": {
"$ref": "#/definitions/grafanaDatasourcesStep"
}
},
{
"if": {
"type": "object",
"properties": {
"action": {
"const": "IstioUpgrade"
}
},
"required": [
"action"
]
},
"then": {
"$ref": "#/definitions/istioUpgradeStep"
}
}
],
"required": [
Expand Down