From 7e3539c231ae3c2c40eb53ad4e7f0d048e4665d8 Mon Sep 17 00:00:00 2001 From: smerle33 Date: Wed, 3 Jan 2024 15:05:04 +0100 Subject: [PATCH 1/3] chore(updatecli): add manifest for helm/helmfile/helmplugins --- updatecli/updatecli.d/helm.yml | 56 ++++++++++++++++++++++++ updatecli/updatecli.d/helm_diff.yml | 59 ++++++++++++++++++++++++++ updatecli/updatecli.d/helm_git.yml | 59 ++++++++++++++++++++++++++ updatecli/updatecli.d/helm_secrets.yml | 59 ++++++++++++++++++++++++++ updatecli/updatecli.d/helmfile.yml | 56 ++++++++++++++++++++++++ 5 files changed, 289 insertions(+) create mode 100644 updatecli/updatecli.d/helm.yml create mode 100644 updatecli/updatecli.d/helm_diff.yml create mode 100644 updatecli/updatecli.d/helm_git.yml create mode 100644 updatecli/updatecli.d/helm_secrets.yml create mode 100644 updatecli/updatecli.d/helmfile.yml diff --git a/updatecli/updatecli.d/helm.yml b/updatecli/updatecli.d/helm.yml new file mode 100644 index 000000000..4495c4594 --- /dev/null +++ b/updatecli/updatecli.d/helm.yml @@ -0,0 +1,56 @@ +--- +name: Bump helm version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: githubrelease + name: Get the latest `helm` release version + spec: + owner: "helm" + repository: "helm" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + transformers: + - trimprefix: v + +targets: + updateVersion: + name: "Update the `helm` version in the tools-versions.yml file" + sourceid: lastReleaseVersion + kind: yaml + spec: + file: "provisioning/tools-versions.yml" + key: "$.helm_version" + scmid: default + updatehelmVersionInGoss: + name: Update the `helm` version in the goss test + kind: yaml + spec: + files: + - goss/goss-linux.yaml + key: $.command.helm.stdout[0] + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump helm version to {{ source "lastReleaseVersion" }} + scmid: default + spec: + labels: + - enhancement + - helm diff --git a/updatecli/updatecli.d/helm_diff.yml b/updatecli/updatecli.d/helm_diff.yml new file mode 100644 index 000000000..c4767e155 --- /dev/null +++ b/updatecli/updatecli.d/helm_diff.yml @@ -0,0 +1,59 @@ +--- +name: Bump helm-diff version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: githubrelease + name: Get the latest `helm-diff` release version + spec: + owner: "databus23" + repository: "helm-diff" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + transformers: + - trimprefix: v + +targets: + updateVersion: + name: "Update the `helm-diff` version in the tools-versions.yml file" + sourceid: lastReleaseVersion + kind: yaml + spec: + file: "provisioning/tools-versions.yml" + key: "$.helm_diff_version" + scmid: default + updatehelmdiffVersionInGoss: + name: Update the `helm-diff` version in the goss test + kind: yaml + spec: + files: + - goss/goss-linux.yaml + key: $.command.helmplugins.stdout[0] + transformers: + - addprefix: "/diff.*" + - addsuffix: "/" + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump helm-diff version to {{ source "lastReleaseVersion" }} + scmid: default + spec: + labels: + - enhancement + - helm-diff diff --git a/updatecli/updatecli.d/helm_git.yml b/updatecli/updatecli.d/helm_git.yml new file mode 100644 index 000000000..687acbfdb --- /dev/null +++ b/updatecli/updatecli.d/helm_git.yml @@ -0,0 +1,59 @@ +--- +name: Bump helm-git version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: githubrelease + name: Get the latest `helm-git` release version + spec: + owner: "aslafy-z" + repository: "helm-git" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + transformers: + - trimprefix: v + +targets: + updateVersion: + name: "Update the `helm-git` version in the tools-versions.yml file" + sourceid: lastReleaseVersion + kind: yaml + spec: + file: "provisioning/tools-versions.yml" + key: "$.helm_git_version" + scmid: default + updatehelmdiffVersionInGoss: + name: Update the `helm-git` version in the goss test + kind: yaml + spec: + files: + - goss/goss-linux.yaml + key: $.command.helmplugins.stdout[1] + transformers: + - addprefix: "/helm-git.*" + - addsuffix: "/" + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump helm-git version to {{ source "lastReleaseVersion" }} + scmid: default + spec: + labels: + - enhancement + - helm-git diff --git a/updatecli/updatecli.d/helm_secrets.yml b/updatecli/updatecli.d/helm_secrets.yml new file mode 100644 index 000000000..2bb05ec4b --- /dev/null +++ b/updatecli/updatecli.d/helm_secrets.yml @@ -0,0 +1,59 @@ +--- +name: Bump helm_secrets version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: githubrelease + name: Get the latest `helm_secrets` release version + spec: + owner: "jkroepke" + repository: "helm-secrets" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + transformers: + - trimprefix: v + +targets: + updateVersion: + name: "Update the `helm_secrets` version in the tools-versions.yml file" + sourceid: lastReleaseVersion + kind: yaml + spec: + file: "provisioning/tools-versions.yml" + key: "$.helm_secrets_version" + scmid: default + updatehelmdiffVersionInGoss: + name: Update the `helm_secrets` version in the goss test + kind: yaml + spec: + files: + - goss/goss-linux.yaml + key: $.command.helmplugins.stdout[2] + transformers: + - addprefix: "/secrets.*" + - addsuffix: "/" + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump helm_secrets version to {{ source "lastReleaseVersion" }} + scmid: default + spec: + labels: + - enhancement + - helm_secrets diff --git a/updatecli/updatecli.d/helmfile.yml b/updatecli/updatecli.d/helmfile.yml new file mode 100644 index 000000000..94c8bf051 --- /dev/null +++ b/updatecli/updatecli.d/helmfile.yml @@ -0,0 +1,56 @@ +--- +name: Bump helmfile version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: githubrelease + name: Get the latest `helmfile` release version + spec: + owner: "helmfile" + repository: "helmfile" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + transformers: + - trimprefix: v + +targets: + updateVersion: + name: "Update the `helmfile` version in the tools-versions.yml file" + sourceid: lastReleaseVersion + kind: yaml + spec: + file: "provisioning/tools-versions.yml" + key: "$.helmfile_version" + scmid: default + updatehelmfileVersionInGoss: + name: Update the `helmfile` version in the goss test + kind: yaml + spec: + files: + - goss/goss-linux.yaml + key: $.command.helmfile.stdout[0] + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump helmfile version to {{ source "lastReleaseVersion" }} + scmid: default + spec: + labels: + - enhancement + - helmfile From 3e2e77406b1f5072c5bcbba9d8421b51506db932 Mon Sep 17 00:00:00 2001 From: smerle33 Date: Wed, 3 Jan 2024 15:08:59 +0100 Subject: [PATCH 2/3] add sops updatecli manifest --- updatecli/updatecli.d/sops.yml | 56 ++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 updatecli/updatecli.d/sops.yml diff --git a/updatecli/updatecli.d/sops.yml b/updatecli/updatecli.d/sops.yml new file mode 100644 index 000000000..ec0765df3 --- /dev/null +++ b/updatecli/updatecli.d/sops.yml @@ -0,0 +1,56 @@ +--- +name: Bump sops version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: githubrelease + name: Get the latest `sops` release version + spec: + owner: "getsops" + repository: "sops" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + versionfilter: + kind: semver + transformers: + - trimprefix: v + +targets: + updateVersion: + name: "Update the `sops` version in the tools-versions.yml file" + sourceid: lastReleaseVersion + kind: yaml + spec: + file: "provisioning/tools-versions.yml" + key: "$.sops_version" + scmid: default + updatesopsVersionInGoss: + name: Update the `sops` version in the goss test + kind: yaml + spec: + files: + - goss/goss-linux.yaml + key: $.command.sops.stdout[0] + scmid: default + +actions: + default: + kind: github/pullrequest + title: Bump sops version to {{ source "lastReleaseVersion" }} + scmid: default + spec: + labels: + - enhancement + - sops From dc03cea7fc9ff656ae55ac8af5fe797e4160b349 Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Wed, 3 Jan 2024 16:12:28 +0100 Subject: [PATCH 3/3] Update updatecli/updatecli.d/helm_secrets.yml --- updatecli/updatecli.d/helm_secrets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatecli/updatecli.d/helm_secrets.yml b/updatecli/updatecli.d/helm_secrets.yml index 2bb05ec4b..0173f2d2a 100644 --- a/updatecli/updatecli.d/helm_secrets.yml +++ b/updatecli/updatecli.d/helm_secrets.yml @@ -56,4 +56,4 @@ actions: spec: labels: - enhancement - - helm_secrets + - helm-secrets