Skip to content

Commit

Permalink
Revert "Revert "ITHC - Neuvector: enable workload identity (#24687)" (#…
Browse files Browse the repository at this point in the history
…24701)" (#24718)

This reverts commit e955c7e.
  • Loading branch information
danielwilsonkainos authored Sep 7, 2023
1 parent 03dcd04 commit 09011c8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/neuvector/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../base/workload-identity
- ../fluentbit-log/fluentbit-log.yaml
- ../neuvector/neuvector.yaml
- ../identity/identity.yaml
namespace: neuvector
patches:
- path: workload-identity.yaml
9 changes: 9 additions & 0 deletions apps/neuvector/base/workload-identity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: ${NAMESPACE}
namespace: ${NAMESPACE}
annotations:
azure.workload.identity/client-id: ${WORKLOAD_IDENTITY_ID}
labels:
azure.workload.identity/use: "true"
10 changes: 10 additions & 0 deletions apps/neuvector/ithc/base/kustomize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: neuvector
namespace: flux-system
spec:
path: ./apps/neuvector/ithc/base
postBuild:
substitute:
WORKLOAD_IDENTITY_ID: "d0fe9aae-68b9-4c4a-9afb-9b6422a571b0"
3 changes: 2 additions & 1 deletion clusters/ithc/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ patches:
target:
kind: Kustomization
annotationSelector: hmcts.github.com/kustomize-defaults != disabled
- path: ../../../apps/cnp/ithc/base/kustomize.yaml
- path: ../../../apps/cnp/ithc/base/kustomize.yaml
- path: ../../../apps/neuvector/ithc/base/kustomize.yaml
2 changes: 1 addition & 1 deletion clusters/sbox/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ patches:
target:
annotationSelector: hmcts.github.com/kustomize-defaults != disabled
kind: Kustomization
- path: ../../../apps/cnp/sbox/base/kustomize.yaml
- path: ../../../apps/cnp/sbox/base/kustomize.yaml

0 comments on commit 09011c8

Please sign in to comment.