diff --git a/config/example-config-ssh-config.yaml b/config/example-config-ssh-config.yaml new file mode 100644 index 00000000..cb1ec1e9 --- /dev/null +++ b/config/example-config-ssh-config.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-image-updater-ssh-config + namespace: argocd +data: + config: | + Host * + PubkeyAcceptedAlgorithms +ssh-rsa + HostkeyAlgorithms +ssh-rsa diff --git a/manifests/base/config/argocd-image-updater-ssh-config.yaml b/manifests/base/config/argocd-image-updater-ssh-config.yaml new file mode 100644 index 00000000..5c1c4aa2 --- /dev/null +++ b/manifests/base/config/argocd-image-updater-ssh-config.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-image-updater-ssh-config + labels: + app.kubernetes.io/name: argocd-image-updater-ssh-config + app.kubernetes.io/part-of: argocd-image-updater diff --git a/manifests/base/config/kustomization.yaml b/manifests/base/config/kustomization.yaml index 9605515a..b1014027 100644 --- a/manifests/base/config/kustomization.yaml +++ b/manifests/base/config/kustomization.yaml @@ -3,4 +3,5 @@ kind: Kustomization resources: - argocd-image-updater-cm.yaml -- argocd-image-updater-secret.yaml \ No newline at end of file +- argocd-image-updater-secret.yaml +- argocd-image-updater-ssh-config.yaml diff --git a/manifests/base/deployment/argocd-image-updater-deployment.yaml b/manifests/base/deployment/argocd-image-updater-deployment.yaml index 12ddd83e..b5b82607 100644 --- a/manifests/base/deployment/argocd-image-updater-deployment.yaml +++ b/manifests/base/deployment/argocd-image-updater-deployment.yaml @@ -104,6 +104,8 @@ spec: name: image-updater-conf - mountPath: /app/config/ssh name: ssh-known-hosts + - mountPath: /app/.ssh + name: ssh-config serviceAccountName: argocd-image-updater volumes: - configMap: @@ -119,3 +121,7 @@ spec: name: argocd-ssh-known-hosts-cm optional: true name: ssh-known-hosts + - configMap: + name: argocd-image-updater-ssh-config + optional: true + name: ssh-config diff --git a/manifests/install.yaml b/manifests/install.yaml index 08125113..775ae246 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -66,6 +66,14 @@ metadata: name: argocd-image-updater-config --- apiVersion: v1 +kind: ConfigMap +metadata: + labels: + app.kubernetes.io/name: argocd-image-updater-ssh-config + app.kubernetes.io/part-of: argocd-image-updater + name: argocd-image-updater-ssh-config +--- +apiVersion: v1 kind: Secret metadata: labels: @@ -179,6 +187,8 @@ spec: name: image-updater-conf - mountPath: /app/config/ssh name: ssh-known-hosts + - mountPath: /app/.ssh + name: ssh-config serviceAccountName: argocd-image-updater volumes: - configMap: @@ -194,3 +204,7 @@ spec: name: argocd-ssh-known-hosts-cm optional: true name: ssh-known-hosts + - configMap: + name: argocd-image-updater-ssh-config + optional: true + name: ssh-config