mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
fix(setup): Use single-line command
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: cluster_setup
|
name: cluster_setup
|
||||||
version: 0.6.2
|
version: 0.6.3
|
||||||
type: application
|
type: application
|
||||||
description: "Initial cluster setup"
|
description: "Initial cluster setup"
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -9,7 +9,7 @@ maintainers:
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: Fixed missing namespace values
|
description: Use single-line command
|
||||||
artifacthub.io/signKey: |
|
artifacthub.io/signKey: |
|
||||||
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
||||||
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
||||||
|
|||||||
@@ -81,16 +81,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- command:
|
- command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
args:
|
||||||
- -c
|
- -c
|
||||||
- |-
|
- TOKEN=`aws ecr get-login-password --region $REGION | cut -d' ' -f6`; kubectl delete secret -n {{ .name }} --ignore-not-found $SECRET_NAME; kubectl create secret -n {{ .name }} docker-registry $SECRET_NAME --docker-server=$ECR_REPOSITORY --docker-username=AWS --docker-password=$TOKEN; kubectl patch serviceaccount default -p '{"imagePullSecrets":[{"name":"$SECRET_NAME"}]}' -n {{ .name }}
|
||||||
TOKEN=`aws ecr get-login-password --region ${REGION} | cut -d' ' -f6`
|
|
||||||
kubectl delete secret -n {{ .name }} --ignore-not-found $SECRET_NAME
|
|
||||||
kubectl create secret -n {{ .name }} docker-registry $SECRET_NAME \
|
|
||||||
--docker-server=$ECR_REPOSITORY \
|
|
||||||
--docker-username=AWS \
|
|
||||||
--docker-password=$TOKEN \
|
|
||||||
--namespace={{ .name }}
|
|
||||||
kubectl patch serviceaccount default -p '{"imagePullSecrets":[{"name":"'$SECRET_NAME'"}]}' -n {{ .name }}
|
|
||||||
env:
|
env:
|
||||||
- name: SECRET_NAME
|
- name: SECRET_NAME
|
||||||
value: 'ecrcred'
|
value: 'ecrcred'
|
||||||
|
|||||||
Reference in New Issue
Block a user