Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
build(k8s): add yaml component to add admin pg sealed secret (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored May 18, 2021
1 parent c765e29 commit fe8fcc7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .k8s/__tests__/__snapshots__/kosko generate --env dev.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -699,5 +699,35 @@ metadata:
cert: wildcard
name: azure-pg-user-0123456
namespace: sample-next-app-85-master-dev2
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: 'true'
creationTimestamp: null
name: azure-pg-admin-user
namespace: sample-next-app-85-master-dev2
spec:
encryptedData:
DATABASE_URL: >-
AgAoheeEt4wFq73knAJrw/mFJnjL5p1xAKdymDX9vZw7Dq21v4AsPYH9kDazq5GD1/aWwCvcnpNtSoJmfB2s2Mh22Fl1Tcbynf0pVr+2eHtOsNFBqhMu5YICAddqervHhEfC9qLsqfMtN9DX07c8MlgY9YDdulSPAJ2XIqRe/F4I07hF2KpuKK1wyLoOvEhXDJie785B0Me13OqcD2RJlLMa6lvbhnLVbun+F1hziFBEt6guQ0rMdIjZ2kOlbhtOV8clhlIwYMuIlnmkoGepiuldEMSqurmWafs+EBJv8r2ujdE8sNMHKdKr3lGK9266Xh+VRDwvhjQAwSMbyUPGyg6KPgV+f/ERDlSW7y1FeQJnsh6rmSmgv7tG/S2G/pWsHW/TCZ2v/Amo450sg4Y4H1yaPKgXnA47oqjiZVAt4WHdZLKWcucuoXkWKp9eihuVVhBRO/jaehT9HHmdOnzm2GFbsasoeUKG8doQb+1Dd22hMKsIn3388HAyII7xdyu+Id2aEpHmMXzNtmmhsE/egXQyrB7mfuf7Q2QO92/XpNr05yPA/QqFlGAWZKusiZeHKtC5FyMG1OxU+E6vXnD2/2QI+VVJ6fXufg95MP+SCYn+N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FCD1Aadk3dWBKY3i3wOuZliHeLK2n+yKZxLiHNVq/RZnomsQNiTLiOAX9zJ30fOTJN2iumYFAjM/lQbC5tB08R
PGUSER: >-
AgArEFNe4qsmxRXh6y9lcpcn4USCCoKFKHOlDjYrDMi7/NZk2Z2GZlea04gBHqGtL2d0Fv/Z0trWGdXdeanJEwx/xKTkDTfXHp0Wyh1H2sHntLfWL6do5abJ8vZ/ZxZP/H4ym/GF3/Xmev57zqwwuO5u81OwgcHVaGWzKg4K0YnLCkBIdGd6C0FT6BlMfBp7np28V1wOt87ivr505veQr/EVlas6YyY7wzthI8jOVAypYhVadNqt5TQLYG3/ADjjhNRjZ5fti2PQ9KUkleXvPHGoIvkz7e/pMZ4eIz7asTdzrcsDoR+JT/jYCGQNZzuP8VgrCdkkyD8BmimMKpUJXpg2oQxmjGP9YJiogXfLS00BAJF/yaCazM128zkYubJrhyD1g9hPkOVVrmPBVE42slr3AsvETLUbCn976odGL/BCvt0dDqAHXJ+EZIQQdFSThaTqteZY+npmumBlo9hQRUCgWuAWHkClAAG+k5NsLyRisihuVJm7rf66ZubypIzuvsHCA3JizzR4IlvWXudb6xrk5yEDk8zaRqma4UzO31TZWpkUQwpdIKHXcrbmV4VQHCulvNy2/x8N+E48UroJhpn/xMM40oDK6PzbKpY5+ojNfYKliASslsvJ7XteaC0L3SKzS0rI8Vchr+Sdb42kAAKizEW+KmDGwnF+BVWN/wSFBuAtPyH8LwKNeUJ5FqCt0XmhpKfS/hb4wxVN8fCHLg3g5iw3gF5HEcc0of7Qpji7rckgqJh2ZxXWNg==
template:
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: 'true'
creationTimestamp: null
name: azure-pg-admin-user
type: Opaque
"
`;
8 changes: 8 additions & 0 deletions .k8s/components/yaml.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import env from "@kosko/env";
import { importYamlFolder } from "@socialgouv/kosko-charts/components/yaml";
import path from "path";

const manifests = importYamlFolder(
path.join(__dirname, "..", `environments/${env.env}/yaml`)
);
export default manifests;

0 comments on commit fe8fcc7

Please sign in to comment.