diff --git a/argocd/prod/ra/user-claims-backend/app.yaml b/argocd/prod/ra/user-claims-backend/app.yaml new file mode 100644 index 00000000..c8cb1160 --- /dev/null +++ b/argocd/prod/ra/user-claims-backend/app.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: user-claims-backend + namespace: argocd +spec: + goTemplate: true + goTemplateOptions: ["missingkey=error"] + generators: + - clusters: + selector: + matchLabels: + appEnvironment: prod + template: + metadata: + name: '{{.name}}-user-claims-backend' + spec: + project: r-a-project + source: + path: components/ra/user-claims-backend/overlays/prod + repoURL: 'https://github.com/isisbusapps/gitops' + targetRevision: main + destination: + namespace: apps + name: '{{.name}}' + ignoreDifferences: + - group: apps + kind: Deployment + jqPathExpressions: + - .spec.template.spec.containers[0].image + syncPolicy: + automated: {} \ No newline at end of file diff --git a/argocd/prod/ra/user-claims-frontend/app.yaml b/argocd/prod/ra/user-claims-frontend/app.yaml new file mode 100644 index 00000000..b5676257 --- /dev/null +++ b/argocd/prod/ra/user-claims-frontend/app.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: user-claims-frontend + namespace: argocd +spec: + goTemplate: true + goTemplateOptions: ["missingkey=error"] + generators: + - clusters: + selector: + matchLabels: + appEnvironment: prod + template: + metadata: + name: '{{.name}}-user-claims-frontend' + spec: + project: r-a-project + source: + path: components/ra/user-claims-frontend/overlays/prod + repoURL: 'https://github.com/isisbusapps/gitops' + targetRevision: main + destination: + namespace: apps + name: '{{.name}}' + ignoreDifferences: + - group: apps + kind: Deployment + jqPathExpressions: + - .spec.template.spec.containers[0].image + syncPolicy: + automated: {} \ No newline at end of file diff --git a/components/ra/user-claims-backend/overlays/dev/deployment.yaml b/components/ra/user-claims-backend/overlays/dev/deployment.yaml index 5afe77fc..faf68935 100644 --- a/components/ra/user-claims-backend/overlays/dev/deployment.yaml +++ b/components/ra/user-claims-backend/overlays/dev/deployment.yaml @@ -7,7 +7,5 @@ spec: spec: containers: - name: user-claims-backend - image: ghcr.io/isisbusapps/user-claims-backend@sha256:43d30ee16d0db11080464a409839276c028b9ddcb808cd134f4e18f9db460803 - envFrom: - - secretRef: - name: user-claims-backend + image: ghcr.io/isisbusapps/user-claims-backend@sha256:5ee97cbbf2a4cd76f45259be016a54b5cee1e637c4ace9023397a51bc073a853 + diff --git a/components/ra/user-claims-backend/overlays/prod/deployment.yaml b/components/ra/user-claims-backend/overlays/prod/deployment.yaml new file mode 100644 index 00000000..24395932 --- /dev/null +++ b/components/ra/user-claims-backend/overlays/prod/deployment.yaml @@ -0,0 +1,10 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: user-claims-backend +spec: + template: + spec: + containers: + - name: user-claims-backend + image: ghcr.io/isisbusapps/user-claims-backend:2.1.0 diff --git a/components/ra/user-claims-backend/overlays/prod/kustomization.yaml b/components/ra/user-claims-backend/overlays/prod/kustomization.yaml new file mode 100644 index 00000000..4856d542 --- /dev/null +++ b/components/ra/user-claims-backend/overlays/prod/kustomization.yaml @@ -0,0 +1,11 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +bases: + - ../../base + - static-secret.yaml + +namespace: apps + +patches: + - path: deployment.yaml diff --git a/components/ra/user-claims-backend/overlays/prod/static-secret.yaml b/components/ra/user-claims-backend/overlays/prod/static-secret.yaml new file mode 100644 index 00000000..33cb4f1c --- /dev/null +++ b/components/ra/user-claims-backend/overlays/prod/static-secret.yaml @@ -0,0 +1,16 @@ +apiVersion: secrets.hashicorp.com/v1beta1 +kind: VaultStaticSecret +metadata: + name: user-claims-backend + namespace: apps +spec: + type: kv-v2 + refreshAfter: 30s + vaultAuthRef: static-auth + + mount: reviews_and_allocations + path: prod/user-claims-backend + destination: + name: user-claims-backend + overwrite: true + create: true \ No newline at end of file diff --git a/components/ra/user-claims-frontend/overlays/prod/deployment.yaml b/components/ra/user-claims-frontend/overlays/prod/deployment.yaml new file mode 100644 index 00000000..80d345e0 --- /dev/null +++ b/components/ra/user-claims-frontend/overlays/prod/deployment.yaml @@ -0,0 +1,10 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: user-claims-frontend +spec: + template: + spec: + containers: + - name: user-claims-frontend + image: ghcr.io/isisbusapps/user-claims-frontend:2.1.0 diff --git a/components/ra/user-claims-frontend/overlays/prod/kustomization.yaml b/components/ra/user-claims-frontend/overlays/prod/kustomization.yaml new file mode 100644 index 00000000..cf99270b --- /dev/null +++ b/components/ra/user-claims-frontend/overlays/prod/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +bases: + - ../../base + +namespace: apps + +patches: + - path: deployment.yaml