Skip to content

Commit

Permalink
feat: add hcp vault deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsteinhaeuser committed Nov 28, 2024
1 parent 86e7ed0 commit b50a05d
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To do this, execute the following patch command:
```bash
oc -n openshift-gitops patch argocds.argoproj.io openshift-gitops \
--type merge \
--patch '{"spec":{"sourceNamespaces":["openshift-gitops","example-application-basic","example-application-basic-servicemesh","example-application-progressive","example-application-helm-basic","example-application-helm-progressive"]}}'
--patch '{"spec":{"sourceNamespaces":["openshift-gitops","example-application-basic","example-application-basic-servicemesh","example-application-progressive","example-application-helm-basic","example-application-helm-progressive","hcp-operators"]}}'
```

The `openshift-gitops` namespace is the `default` namespace and might not be necessary to add to the `sourceNamespaces` list. However, it is added here for completeness.
Expand Down
3 changes: 3 additions & 0 deletions management_project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
- name: in-cluster
namespace: example-application-progressive
server: https://kubernetes.default.svc
- name: in-cluster
namespace: hcp-operators
server: https://kubernetes.default.svc
- name: in-cluster
namespace: example-application-helm-progressive
server: https://kubernetes.default.svc
Expand Down
14 changes: 14 additions & 0 deletions ocp/deployments/helm_hcp_namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/description: ""
openshift.io/display-name: ""
openshift.io/requester: kubeadmin
#openshift.io/sa.scc.mcs: s0:c26,c20
#openshift.io/sa.scc.supplemental-groups: 65535/10000
#openshift.io/sa.scc.uid-range: 65535/10000
argocd.argoproj.io/sync-wave: "-1"
labels:
argocd.argoproj.io/managed-by: openshift-gitops
name: hcp-operators
48 changes: 48 additions & 0 deletions ocp/deployments/helm_hcp_vault.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: hcp-vault
namespace: &ns hcp-operators
labels:
argocd.argoproj.io/sync-wave: "-1"
spec:
destination:
namespace: *ns
server: https://kubernetes.default.svc
project: hashicorp
source:
chart: vault
repoURL: https://helm.releases.hashicorp.com
targetRevision: 0.29.1
helm:
releaseName: hcp-vault
valuesObject:
global:
openshift: true
injector:
image:
repository: "registry.connect.redhat.com/hashicorp/vault-k8s"
tag: "1.5.0-ubi"
agentImage:
repository: "registry.connect.redhat.com/hashicorp/vault"
tag: "1.18.1-ubi"
server:
image:
repository: "registry.connect.redhat.com/hashicorp/vault"
tag: "1.18.1-ubi"
readinessProbe:
path: "/v1/sys/health?uninitcode=204"
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 5
syncOptions:
- PruneLast=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true

0 comments on commit b50a05d

Please sign in to comment.