Skip to content

Commit

Permalink
easy-secrets-gen.sh: stop using deprecated --dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
skrobul committed Feb 21, 2024
1 parent 41923bf commit 2de9e4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/easy-secrets-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd $(git rev-parse --show-toplevel)

kubectl --namespace openstack \
create secret generic mariadb \
--dry-run \
--dry-run=client \
-o yaml \
--type Opaque \
--from-literal=root-password="$(./scripts/pwgen.sh)" \
Expand All @@ -13,7 +13,7 @@ kubectl --namespace openstack \

kubectl --namespace nautobot \
create secret generic nautobot-env \
--dry-run \
--dry-run=client \
-o yaml \
--type Opaque \
--from-literal=NAUTOBOT_SECRET_KEY="$(./scripts/pwgen.sh)" \
Expand All @@ -23,7 +23,7 @@ kubectl --namespace nautobot \

kubectl --namespace nautobot \
create secret generic nautobot-redis \
--dry-run \
--dry-run=client \
-o yaml \
--type Opaque \
--from-literal=redis-password="$(./scripts/pwgen.sh)" \
Expand All @@ -34,25 +34,25 @@ kubectl --namespace openstack \
--type Opaque \
--from-literal=username="keystone" \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml \
--dry-run=client -o yaml \
> secret-keystone-rabbitmq-password.yaml
kubectl --namespace openstack \
create secret generic keystone-db-password \
--type Opaque \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml \
--dry-run=client -o yaml \
> secret-keystone-db-password.yaml
kubectl --namespace openstack \
create secret generic keystone-admin \
--type Opaque \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml \
--dry-run=client -o yaml \
> secret-keystone-admin.yaml
kubectl --namespace openstack \
create secret generic keystone-credential-keys \
--type Opaque \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml \
--dry-run=client -o yaml \
> secret-keystone-credential-keys.yaml

kubeseal \
Expand Down

0 comments on commit 2de9e4c

Please sign in to comment.