From 9a41bdb14fc85a8c46e1f95befefa25475a162b9 Mon Sep 17 00:00:00 2001 From: Cory Latschkowski Date: Tue, 28 Nov 2023 23:26:16 -0700 Subject: [PATCH] add: minio overlay - known secret --- .../minio/overlays/known-password/exclude-job.yaml | 5 +++++ .../overlays/known-password/exclude-rb-connect.yaml | 5 +++++ .../overlays/known-password/exclude-rb-secret.yaml | 5 +++++ .../minio/overlays/known-password/exclude-sa.yaml | 5 +++++ .../minio/overlays/known-password/kustomization.yaml | 12 ++++++++++++ .../minio/overlays/known-password/secret.yaml | 9 +++++++++ 6 files changed, 41 insertions(+) create mode 100644 components/configs/kustomized/minio/overlays/known-password/exclude-job.yaml create mode 100644 components/configs/kustomized/minio/overlays/known-password/exclude-rb-connect.yaml create mode 100644 components/configs/kustomized/minio/overlays/known-password/exclude-rb-secret.yaml create mode 100644 components/configs/kustomized/minio/overlays/known-password/exclude-sa.yaml create mode 100644 components/configs/kustomized/minio/overlays/known-password/kustomization.yaml create mode 100644 components/configs/kustomized/minio/overlays/known-password/secret.yaml diff --git a/components/configs/kustomized/minio/overlays/known-password/exclude-job.yaml b/components/configs/kustomized/minio/overlays/known-password/exclude-job.yaml new file mode 100644 index 00000000..1f14fa21 --- /dev/null +++ b/components/configs/kustomized/minio/overlays/known-password/exclude-job.yaml @@ -0,0 +1,5 @@ +$patch: delete +apiVersion: batch/v1 +kind: Job +metadata: + name: create-minio-root-user diff --git a/components/configs/kustomized/minio/overlays/known-password/exclude-rb-connect.yaml b/components/configs/kustomized/minio/overlays/known-password/exclude-rb-connect.yaml new file mode 100644 index 00000000..de022a2d --- /dev/null +++ b/components/configs/kustomized/minio/overlays/known-password/exclude-rb-connect.yaml @@ -0,0 +1,5 @@ +$patch: delete +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: data-connection-setup \ No newline at end of file diff --git a/components/configs/kustomized/minio/overlays/known-password/exclude-rb-secret.yaml b/components/configs/kustomized/minio/overlays/known-password/exclude-rb-secret.yaml new file mode 100644 index 00000000..6cbe50be --- /dev/null +++ b/components/configs/kustomized/minio/overlays/known-password/exclude-rb-secret.yaml @@ -0,0 +1,5 @@ +$patch: delete +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: minio-secrets diff --git a/components/configs/kustomized/minio/overlays/known-password/exclude-sa.yaml b/components/configs/kustomized/minio/overlays/known-password/exclude-sa.yaml new file mode 100644 index 00000000..8c537e35 --- /dev/null +++ b/components/configs/kustomized/minio/overlays/known-password/exclude-sa.yaml @@ -0,0 +1,5 @@ +$patch: delete +apiVersion: v1 +kind: ServiceAccount +metadata: + name: minio-manage diff --git a/components/configs/kustomized/minio/overlays/known-password/kustomization.yaml b/components/configs/kustomized/minio/overlays/known-password/kustomization.yaml new file mode 100644 index 00000000..ea00800e --- /dev/null +++ b/components/configs/kustomized/minio/overlays/known-password/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../base + - secret.yaml + +patches: + - path: exclude-job.yaml + - path: exclude-rb-connect.yaml + - path: exclude-rb-secret.yaml + - path: exclude-sa.yaml diff --git a/components/configs/kustomized/minio/overlays/known-password/secret.yaml b/components/configs/kustomized/minio/overlays/known-password/secret.yaml new file mode 100644 index 00000000..74362795 --- /dev/null +++ b/components/configs/kustomized/minio/overlays/known-password/secret.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: v1 +kind: Secret +metadata: + name: minio-root-user +type: Opqaue +stringData: + MINIO_ROOT_USER: minioadmin + MINIO_ROOT_PASSWORD: minioadmin \ No newline at end of file