Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions argocd/prod/ra/user-claims-backend/app.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
32 changes: 32 additions & 0 deletions argocd/prod/ra/user-claims-frontend/app.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ spec:
containers:
- name: user-claims-backend
image: ghcr.io/isisbusapps/user-claims-backend@sha256:5ee97cbbf2a4cd76f45259be016a54b5cee1e637c4ace9023397a51bc073a853
envFrom:
- secretRef:
name: approved-experiments

10 changes: 10 additions & 0 deletions components/ra/user-claims-backend/overlays/prod/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../base
- static-secret.yaml

namespace: apps

patches:
- path: deployment.yml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and in the frontend, the file extension needs updating to match the recent change to .yaml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch ive changed that

Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../base

namespace: apps

patches:
- path: deployment.yml