Merge branch 'main' into derektbrown_rollout_config_restart_3118
This commit is contained in:
commit
ce3c4c03ae
12 changed files with 48 additions and 30 deletions
2
.github/workflows/lint-and-test.yml
vendored
2
.github/workflows/lint-and-test.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Chart Linting
|
- name: Setup Chart Linting
|
||||||
id: lint
|
id: lint
|
||||||
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
|
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
|
||||||
with:
|
with:
|
||||||
# Note: Also update in scripts/lint.sh
|
# Note: Also update in scripts/lint.sh
|
||||||
version: v3.11.0
|
version: v3.11.0
|
||||||
|
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
@ -59,7 +59,7 @@ jobs:
|
||||||
PGP_PASSPHRASE: "${{ secrets.PGP_PASSPHRASE }}"
|
PGP_PASSPHRASE: "${{ secrets.PGP_PASSPHRASE }}"
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
|
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
|
||||||
with:
|
with:
|
||||||
config: "./.github/configs/cr.yaml"
|
config: "./.github/configs/cr.yaml"
|
||||||
env:
|
env:
|
||||||
|
|
2
.github/workflows/scorecard.yml
vendored
2
.github/workflows/scorecard.yml
vendored
|
@ -68,6 +68,6 @@ jobs:
|
||||||
|
|
||||||
# Upload the results to GitHub's code scanning dashboard.
|
# Upload the results to GitHub's code scanning dashboard.
|
||||||
- name: "Upload to code-scanning"
|
- name: "Upload to code-scanning"
|
||||||
uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
|
uses: github/codeql-action/upload-sarif@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
pull-requests: write # for actions/stale to close stale PRs
|
pull-requests: write # for actions/stale to close stale PRs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
|
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Number of days of inactivity before an issue becomes stale
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argocd-image-updater
|
name: argocd-image-updater
|
||||||
description: A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD
|
description: A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD
|
||||||
type: application
|
type: application
|
||||||
version: 0.11.4
|
version: 0.12.0
|
||||||
appVersion: v0.15.2
|
appVersion: v0.15.2
|
||||||
home: https://github.com/argoproj-labs/argocd-image-updater
|
home: https://github.com/argoproj-labs/argocd-image-updater
|
||||||
icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png
|
||||||
|
@ -19,4 +19,4 @@ annotations:
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: Bump argocd-image-updater to v0.15.2
|
description: ConfigMap and Secret names are now configurable
|
||||||
|
|
|
@ -70,6 +70,7 @@ The `config.registries` value can be used exactly as it looks in the documentati
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| affinity | object | `{}` | Kubernetes affinity settings for the deployment |
|
| affinity | object | `{}` | Kubernetes affinity settings for the deployment |
|
||||||
| authScripts.enabled | bool | `false` | Whether to mount the defined scripts that can be used to authenticate with a registry, the scripts will be mounted at `/scripts` |
|
| authScripts.enabled | bool | `false` | Whether to mount the defined scripts that can be used to authenticate with a registry, the scripts will be mounted at `/scripts` |
|
||||||
|
| authScripts.name | string | `"argocd-image-updater-authscripts"` | Name of the authentication scripts ConfigMap |
|
||||||
| authScripts.scripts | object | `{}` | Map of key-value pairs where the key consists of the name of the script and the value the contents |
|
| authScripts.scripts | object | `{}` | Map of key-value pairs where the key consists of the name of the script and the value the contents |
|
||||||
| config.applicationsAPIKind | string | `""` | API kind that is used to manage Argo CD applications (`kubernetes` or `argocd`) |
|
| config.applicationsAPIKind | string | `""` | API kind that is used to manage Argo CD applications (`kubernetes` or `argocd`) |
|
||||||
| config.argocd.grpcWeb | bool | `true` | Use the gRPC-web protocol to connect to the Argo CD API |
|
| config.argocd.grpcWeb | bool | `true` | Use the gRPC-web protocol to connect to the Argo CD API |
|
||||||
|
@ -77,6 +78,7 @@ The `config.registries` value can be used exactly as it looks in the documentati
|
||||||
| config.argocd.plaintext | bool | `false` | If specified, use an unencrypted HTTP connection to the Argo CD API instead of TLS. |
|
| config.argocd.plaintext | bool | `false` | If specified, use an unencrypted HTTP connection to the Argo CD API instead of TLS. |
|
||||||
| config.argocd.serverAddress | string | `""` | Connect to the Argo CD API server at server address |
|
| config.argocd.serverAddress | string | `""` | Connect to the Argo CD API server at server address |
|
||||||
| config.argocd.token | string | `""` | If specified, the secret with Argo CD API key will be created. |
|
| config.argocd.token | string | `""` | If specified, the secret with Argo CD API key will be created. |
|
||||||
|
| config.argocd.tokenSecretName | string | `"argocd-image-updater-secret"` | Name of the Secret containing the token |
|
||||||
| config.disableKubeEvents | bool | `false` | Disable kubernetes events |
|
| config.disableKubeEvents | bool | `false` | Disable kubernetes events |
|
||||||
| config.gitCommitMail | string | `""` | E-Mail address to use for Git commits |
|
| config.gitCommitMail | string | `""` | E-Mail address to use for Git commits |
|
||||||
| config.gitCommitSignOff | bool | `false` | Enables sign off on commits |
|
| config.gitCommitSignOff | bool | `false` | Enables sign off on commits |
|
||||||
|
@ -85,8 +87,10 @@ The `config.registries` value can be used exactly as it looks in the documentati
|
||||||
| config.gitCommitTemplate | string | `""` | Changing the Git commit message |
|
| config.gitCommitTemplate | string | `""` | Changing the Git commit message |
|
||||||
| config.gitCommitUser | string | `""` | Username to use for Git commits |
|
| config.gitCommitUser | string | `""` | Username to use for Git commits |
|
||||||
| config.logLevel | string | `"info"` | Argo CD Image Update log level |
|
| config.logLevel | string | `"info"` | Argo CD Image Update log level |
|
||||||
|
| config.name | string | `"argocd-image-updater-config"` | Name of the ConfigMap |
|
||||||
| config.registries | list | `[]` | Argo CD Image Updater registries list configuration. More information [here](https://argocd-image-updater.readthedocs.io/en/stable/configuration/registries/) |
|
| config.registries | list | `[]` | Argo CD Image Updater registries list configuration. More information [here](https://argocd-image-updater.readthedocs.io/en/stable/configuration/registries/) |
|
||||||
| config.sshConfig | object | `{}` | Argo CD Image Updater ssh client parameter configuration. |
|
| config.sshConfig.config | string | `""` | Argo CD Image Updater ssh client parameter configuration. |
|
||||||
|
| config.sshConfig.name | string | `"argocd-image-updater-ssh-config"` | Name of the sshConfig ConfigMap |
|
||||||
| createClusterRoles | bool | `true` | Create cluster roles for cluster-wide installation. |
|
| createClusterRoles | bool | `true` | Create cluster roles for cluster-wide installation. |
|
||||||
| extraArgs | list | `[]` | Extra arguments for argocd-image-updater not defined in `config.argocd`. If a flag contains both key and value, they need to be split to a new entry |
|
| extraArgs | list | `[]` | Extra arguments for argocd-image-updater not defined in `config.argocd`. If a flag contains both key and value, they need to be split to a new entry |
|
||||||
| extraEnv | list | `[]` | Extra environment variables for argocd-image-updater |
|
| extraEnv | list | `[]` | Extra environment variables for argocd-image-updater |
|
||||||
|
|
|
@ -4,7 +4,7 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: argocd-image-updater-authscripts
|
name: {{ .Values.authScripts.name }}
|
||||||
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
data:
|
data:
|
||||||
{{- toYaml .Values.authScripts.scripts | nindent 2}}
|
{{- toYaml .Values.authScripts.scripts | nindent 2}}
|
||||||
|
|
|
@ -1,11 +1,17 @@
|
||||||
|
{{- $sshConfig := omit .Values.config.sshConfig "name" }}
|
||||||
|
{{- range $key, $val := $sshConfig }}
|
||||||
|
{{- if not $val }}
|
||||||
|
{{ $_ := unset $sshConfig $key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: argocd-image-updater-ssh-config
|
name: {{ .Values.config.sshConfig.name }}
|
||||||
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
{{- with .Values.config.sshConfig }}
|
{{- with $sshConfig }}
|
||||||
data:
|
data:
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
data:
|
data:
|
||||||
{{- with .Values.config.applicationsAPIKind }}
|
{{- with .Values.config.applicationsAPIKind }}
|
||||||
|
|
|
@ -44,79 +44,79 @@ spec:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: applications_api
|
key: applications_api
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: ARGOCD_GRPC_WEB
|
- name: ARGOCD_GRPC_WEB
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: argocd.grpc_web
|
key: argocd.grpc_web
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: ARGOCD_SERVER
|
- name: ARGOCD_SERVER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: argocd.server_addr
|
key: argocd.server_addr
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: ARGOCD_INSECURE
|
- name: ARGOCD_INSECURE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: argocd.insecure
|
key: argocd.insecure
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: ARGOCD_PLAINTEXT
|
- name: ARGOCD_PLAINTEXT
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: argocd.plaintext
|
key: argocd.plaintext
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: ARGOCD_TOKEN
|
- name: ARGOCD_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: argocd.token
|
key: argocd.token
|
||||||
name: argocd-image-updater-secret
|
name: {{ .Values.config.argocd.tokenSecretName }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: IMAGE_UPDATER_LOGLEVEL
|
- name: IMAGE_UPDATER_LOGLEVEL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: log.level
|
key: log.level
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: GIT_COMMIT_USER
|
- name: GIT_COMMIT_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: git.user
|
key: git.user
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: GIT_COMMIT_EMAIL
|
- name: GIT_COMMIT_EMAIL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: git.email
|
key: git.email
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: IMAGE_UPDATER_KUBE_EVENTS
|
- name: IMAGE_UPDATER_KUBE_EVENTS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: kube.events
|
key: kube.events
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: GIT_COMMIT_SIGNING_KEY
|
- name: GIT_COMMIT_SIGNING_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: git.commit-signing-key
|
key: git.commit-signing-key
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: GIT_COMMIT_SIGNING_METHOD
|
- name: GIT_COMMIT_SIGNING_METHOD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: git.commit-signing-method
|
key: git.commit-signing-method
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
- name: GIT_COMMIT_SIGN_OFF
|
- name: GIT_COMMIT_SIGN_OFF
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: git.commit-sign-off
|
key: git.commit-sign-off
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
{{- with .Values.extraEnv }}
|
{{- with .Values.extraEnv }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
|
@ -177,13 +177,13 @@ spec:
|
||||||
path: registries.conf
|
path: registries.conf
|
||||||
- key: git.commit-message-template
|
- key: git.commit-message-template
|
||||||
path: commit.template
|
path: commit.template
|
||||||
name: argocd-image-updater-config
|
name: {{ .Values.config.name }}
|
||||||
optional: true
|
optional: true
|
||||||
name: image-updater-conf
|
name: image-updater-conf
|
||||||
{{- if .Values.authScripts.enabled }}
|
{{- if .Values.authScripts.enabled }}
|
||||||
- configMap:
|
- configMap:
|
||||||
defaultMode: 0777
|
defaultMode: 0777
|
||||||
name: argocd-image-updater-authscripts
|
name: {{ .Values.authScripts.name }}
|
||||||
name: authscripts
|
name: authscripts
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- configMap:
|
- configMap:
|
||||||
|
@ -191,7 +191,7 @@ spec:
|
||||||
optional: true
|
optional: true
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-image-updater-ssh-config
|
name: {{ .Values.config.sshConfig.name }}
|
||||||
optional: true
|
optional: true
|
||||||
name: ssh-config
|
name: ssh-config
|
||||||
- name: ssh-signing-key
|
- name: ssh-signing-key
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: argocd-image-updater-secret
|
name: {{ .Values.config.argocd.tokenSecretName }}
|
||||||
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
|
|
|
@ -109,6 +109,8 @@ volumes: []
|
||||||
# emptyDir: {}
|
# emptyDir: {}
|
||||||
|
|
||||||
config:
|
config:
|
||||||
|
# -- Name of the ConfigMap
|
||||||
|
name: argocd-image-updater-config
|
||||||
# -- API kind that is used to manage Argo CD applications (`kubernetes` or `argocd`)
|
# -- API kind that is used to manage Argo CD applications (`kubernetes` or `argocd`)
|
||||||
applicationsAPIKind: ""
|
applicationsAPIKind: ""
|
||||||
|
|
||||||
|
@ -125,6 +127,8 @@ config:
|
||||||
plaintext: false
|
plaintext: false
|
||||||
# -- If specified, the secret with Argo CD API key will be created.
|
# -- If specified, the secret with Argo CD API key will be created.
|
||||||
token: ""
|
token: ""
|
||||||
|
# -- Name of the Secret containing the token
|
||||||
|
tokenSecretName: "argocd-image-updater-secret"
|
||||||
|
|
||||||
# -- Disable kubernetes events
|
# -- Disable kubernetes events
|
||||||
disableKubeEvents: false
|
disableKubeEvents: false
|
||||||
|
@ -175,9 +179,11 @@ config:
|
||||||
# credentials: ext:/scripts/auth1.sh
|
# credentials: ext:/scripts/auth1.sh
|
||||||
# credsexpire: 10h
|
# credsexpire: 10h
|
||||||
|
|
||||||
# -- Argo CD Image Updater ssh client parameter configuration.
|
|
||||||
sshConfig:
|
sshConfig:
|
||||||
{}
|
# -- Name of the sshConfig ConfigMap
|
||||||
|
name: argocd-image-updater-ssh-config
|
||||||
|
# -- Argo CD Image Updater ssh client parameter configuration.
|
||||||
|
config: ""
|
||||||
# config: |
|
# config: |
|
||||||
# Host *
|
# Host *
|
||||||
# PubkeyAcceptedAlgorithms +ssh-rsa
|
# PubkeyAcceptedAlgorithms +ssh-rsa
|
||||||
|
@ -188,6 +194,8 @@ config:
|
||||||
authScripts:
|
authScripts:
|
||||||
# -- Whether to mount the defined scripts that can be used to authenticate with a registry, the scripts will be mounted at `/scripts`
|
# -- Whether to mount the defined scripts that can be used to authenticate with a registry, the scripts will be mounted at `/scripts`
|
||||||
enabled: false
|
enabled: false
|
||||||
|
# -- Name of the authentication scripts ConfigMap
|
||||||
|
name: argocd-image-updater-authscripts
|
||||||
# -- Map of key-value pairs where the key consists of the name of the script and the value the contents
|
# -- Map of key-value pairs where the key consists of the name of the script and the value the contents
|
||||||
scripts: {}
|
scripts: {}
|
||||||
# auth1.sh: |
|
# auth1.sh: |
|
||||||
|
|
Loading…
Reference in a new issue