Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): fix broken updatecli yaml files. #386

Merged
merged 1 commit into from
Mar 1, 2024
Merged
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
33 changes: 17 additions & 16 deletions updatecli/updatecli.d/major-kubewarden-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ sources:
- trimsuffix: " "
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "version"
key: "$.version"

defaultChartAppVersion:
name: Load chart app version
kind: yaml
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "appVersion"
key: "$.appVersion"

defaultValuesFile:
kind: yaml
spec:
file: "charts/kubewarden-defaults/values.yaml"
key: "policyServer.image.tag"
key: "$.policyServer.image.tag"

controllerChartAppVersion:
name: Load chart app version
kind: yaml
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "appVersion"
key: "$.appVersion"

controllerChartVersion:
name: Load controller chart version
Expand All @@ -41,19 +41,19 @@ sources:
- trimsuffix: " "
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "version"
key: "$.version"

controllerImageValuesFile:
kind: yaml
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "image.tag"
key: "$.image.tag"

auditScannerImageValuesFile:
kind: yaml
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "auditScanner.image.tag"
key: "$.auditScanner.image.tag"

conditions:
# All the major components must have the same tag
Expand Down Expand Up @@ -94,14 +94,15 @@ conditions:
kind: "semver"
pattern: "{{ requiredEnv .releaseVersion }}"

targets:
defaultUpdateValuesFile:
kind: yaml
name: "Update container image in the values.yaml file"
sourceid: defaultValuesFile
scmid: "default"
spec:
file: "charts/kubewarden-defaults/values.yaml"
key: "policyServer.image.tag"
key: "$.policyServer.image.tag"
value: "{{ requiredEnv .releaseVersion }}"

defaultChartVersionUpdate:
Expand All @@ -111,7 +112,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "version"
key: "$.version"

defaultChartVersionUpdate2:
name: Bump defaults chart version in annotations
Expand All @@ -120,7 +121,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: 'annotations.catalog\.cattle\.io/upstream-version'
key: "$.annotations.'catalog.cattle.io/upstream-version'"

defaultChartAppVersionUpdate:
name: Bump defaults chart app version
Expand All @@ -129,7 +130,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "appVersion"
key: "$.appVersion"
value: "{{ requiredEnv .releaseVersion }}"

controllerImageUpdateValuesFile:
Expand All @@ -139,7 +140,7 @@ conditions:
scmid: "default"
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "image.tag"
key: "$.image.tag"
value: "{{ requiredEnv .releaseVersion }}"

controllerChartAppVersionUpdate:
Expand All @@ -149,7 +150,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "appVersion"
key: "$.appVersion"
value: "{{ requiredEnv .releaseVersion }}"

auditScannerImageUpdateValuesFile:
Expand All @@ -159,7 +160,7 @@ conditions:
scmid: "default"
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "auditScanner.image.tag"
key: "$.auditScanner.image.tag"
value: "{{ requiredEnv .releaseVersion }}"

controllerChartVersionUpdate:
Expand All @@ -169,7 +170,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "version"
key: "$.version"

controllerChartVersionUpdate2:
name: Bump controller chart version in annotations
Expand All @@ -178,7 +179,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: 'annotations.catalog\.cattle\.io/upstream-version'
key: "$.annotations.'catalog.cattle.io/upstream-version'"

actions:
createUpdatePR:
Expand Down
33 changes: 17 additions & 16 deletions updatecli/updatecli.d/prerelease-kubewarden-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ sources:
- trimsuffix: " "
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "version"
key: "$.version"

defaultChartAppVersion:
name: Load chart app version
kind: yaml
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "appVersion"
key: "$.appVersion"

defaultValuesFile:
kind: yaml
spec:
file: "charts/kubewarden-defaults/values.yaml"
key: "policyServer.image.tag"
key: "$.policyServer.image.tag"

controllerChartAppVersion:
name: Load chart app version
kind: yaml
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "appVersion"
key: "$.appVersion"

controllerChartVersion:
name: Load controller chart version
Expand All @@ -43,19 +43,19 @@ sources:
- trimsuffix: " "
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "version"
key: "$.version"

controllerImageValuesFile:
kind: yaml
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "image.tag"
key: "$.image.tag"

auditScannerImageValuesFile:
kind: yaml
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "auditScanner.image.tag"
key: "$.auditScanner.image.tag"

conditions:
# All the major components must have the same tag
Expand Down Expand Up @@ -96,14 +96,15 @@ conditions:
kind: "semver"
pattern: "{{ requiredEnv .releaseVersion }}"

targets:
defaultUpdateValuesFile:
kind: yaml
name: "Update container image in the values.yaml file"
sourceid: defaultValuesFile
scmid: "default"
spec:
file: "charts/kubewarden-defaults/values.yaml"
key: "policyServer.image.tag"
key: "$.policyServer.image.tag"
value: "{{ requiredEnv .releaseVersion }}"

defaultChartVersionUpdate:
Expand All @@ -113,7 +114,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "version"
key: "$.version"

defaultChartVersionUpdate2:
name: Bump defaults chart version in annotations
Expand All @@ -122,7 +123,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: 'annotations.catalog\.cattle\.io/upstream-version'
key: "$.annotations.'catalog.cattle.io/upstream-version'"

defaultChartAppVersionUpdate:
name: Bump defaults chart app version
Expand All @@ -131,7 +132,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-defaults/Chart.yaml"
key: "appVersion"
key: "$.appVersion"
value: "{{ requiredEnv .releaseVersion }}"

controllerImageUpdateValuesFile:
Expand All @@ -141,7 +142,7 @@ conditions:
scmid: "default"
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "image.tag"
key: "$.image.tag"
value: "{{ requiredEnv .releaseVersion }}"

auditScannerImageUpdateValuesFile:
Expand All @@ -151,7 +152,7 @@ conditions:
scmid: "default"
spec:
file: "charts/kubewarden-controller/values.yaml"
key: "auditScanner.image.tag"
key: "$.auditScanner.image.tag"
value: "{{ requiredEnv .releaseVersion }}"

controllerChartAppVersionUpdate:
Expand All @@ -161,7 +162,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "appVersion"
key: "$.appVersion"
value: "{{ requiredEnv .releaseVersion }}"

controllerChartVersionUpdate:
Expand All @@ -171,7 +172,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: "version"
key: "$.version"

controllerChartVersionUpdate2:
name: Bump controller chart version in annotations
Expand All @@ -180,7 +181,7 @@ conditions:
scmid: "default"
spec:
file: "file://charts/kubewarden-controller/Chart.yaml"
key: 'annotations.catalog\.cattle\.io/upstream-version'
key: "$.annotations.'catalog.cattle.io/upstream-version'"

actions:
createUpdatePR:
Expand Down
Loading