Skip to content
Open
Show file tree
Hide file tree
Changes from all 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: {}
8 changes: 4 additions & 4 deletions components/ra/user-claims-backend/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ commonLabels:
namespace: apps

resources:
- deployment.yml
- service.yml
- httproute.yml
- static-secret.yml
- deployment.yaml
- service.yaml
- httproute.yaml
- static-secret.yaml
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

Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ bases:
namespace: apps

patches:
- path: deployment.yml
- path: deployment.yaml

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.yaml
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
6 changes: 3 additions & 3 deletions components/ra/user-claims-frontend/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ commonLabels:
namespace: apps

resources:
- deployment.yml
- service.yml
- httproute.yml
- deployment.yaml
- service.yaml
- httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ bases:
namespace: apps

patches:
- path: deployment.yml
- path: 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,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../base

namespace: apps

patches:
- path: deployment.yaml