From 2db406470ac4f4d639b2cd5966ef2f43a4e3a401 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 11 Dec 2023 09:50:13 +0100 Subject: [PATCH] feat(hydra-ldap): rename resources from werther to hydra-ldap --- .../{werther => hydra-ldap}/kustomization.yaml | 4 ++-- .../resources/deployment.yaml | 13 +++++-------- .../{werther => hydra-ldap}/resources/service.yaml | 10 +++++----- 3 files changed, 12 insertions(+), 15 deletions(-) rename components/{werther => hydra-ldap}/kustomization.yaml (94%) rename components/{werther => hydra-ldap}/resources/deployment.yaml (81%) rename components/{werther => hydra-ldap}/resources/service.yaml (51%) diff --git a/components/werther/kustomization.yaml b/components/hydra-ldap/kustomization.yaml similarity index 94% rename from components/werther/kustomization.yaml rename to components/hydra-ldap/kustomization.yaml index 0e88a49..34b655e 100644 --- a/components/werther/kustomization.yaml +++ b/components/hydra-ldap/kustomization.yaml @@ -6,7 +6,7 @@ resources: - ./resources/service.yaml configMapGenerator: - - name: werther-env + - name: hydra-ldap-env literals: - WERTHER_DEV_MODE=false - WERTHER_LDAP_ROLE_CLAIM="https://hydra/claims/roles" @@ -20,7 +20,7 @@ configMapGenerator: - WERTHER_LDAP_CONNECTION_TIMEOUT="10s" secretGenerator: - - name: werther-ldap-sc + - name: hydra-ldap-sc literals: - WERTHER_LDAP_BINDDN="cn=reader,o=test,c=fr" - WERTHER_LDAP_BINDPW=ThisMustBeAbsolutelyChanged diff --git a/components/werther/resources/deployment.yaml b/components/hydra-ldap/resources/deployment.yaml similarity index 81% rename from components/werther/resources/deployment.yaml rename to components/hydra-ldap/resources/deployment.yaml index 8b26d62..40a821e 100644 --- a/components/werther/resources/deployment.yaml +++ b/components/hydra-ldap/resources/deployment.yaml @@ -1,23 +1,20 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: werther + name: hydra-ldap namespace: default labels: - app.kubernetes.io/name: werther - app.kubernetes.io/instance: werther + app.kubernetes.io/name: hydra-ldap app.kubernetes.io/version: "v1.2.2" spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/name: werther - app.kubernetes.io/instance: werther + app.kubernetes.io/name: hydra-ldap template: metadata: labels: - app.kubernetes.io/name: werther - app.kubernetes.io/instance: werther + app.kubernetes.io/name: hydra-ldap app.kubernetes.io/version: "v1.2.2" spec: containers: @@ -26,7 +23,7 @@ spec: imagePullPolicy: IfNotPresent envFrom: - configMapRef: - name: werther-env + name: hydra-ldap-env env: - name: WERTHER_WEB_DIR value: "/usr/share/werther/login/" diff --git a/components/werther/resources/service.yaml b/components/hydra-ldap/resources/service.yaml similarity index 51% rename from components/werther/resources/service.yaml rename to components/hydra-ldap/resources/service.yaml index 52065e2..4adbddb 100644 --- a/components/werther/resources/service.yaml +++ b/components/hydra-ldap/resources/service.yaml @@ -2,16 +2,16 @@ apiVersion: v1 kind: Service metadata: labels: - io.kompose.service: werther - name: werther + io.kompose.service: hydra-ldap + name: hydra-ldap spec: type: ClusterIP ports: - - name: werther + - name: hydra-ldap port: 8080 - targetPort: werther-http + targetPort: hydra-ldap-http protocol: TCP selector: - app.kubernetes.io/name: werther + app.kubernetes.io/name: hydra-ldap status: loadBalancer: {}