Skip to content

Commit

Permalink
feat: add helm basic deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsteinhaeuser committed Nov 18, 2024
1 parent 398ef64 commit 2cdf7c1
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ocp/deployments/helm_basic_application_number.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: number-service
namespace: example-application-helm-basic
labels:
argocd.argoproj.io/sync-wave: "1"
spec:
destination:
namespace: example-application-helm-basic
server: https://kubernetes.default.svc
project: helm-basic
source:
repoURL: git@github.com:leonsteinhaeuser/rh-ocp-examples.git
targetRevision: HEAD
path: ocp/helm-charts/number-service
helm:
valueFiles:
- ../deployments/helm/basic/number-service.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 5
syncOptions:
- PruneLast=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
33 changes: 33 additions & 0 deletions ocp/deployments/helm_basic_application_view.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: view-service
namespace: example-application-helm-basic
labels:
argocd.argoproj.io/sync-wave: "1"
spec:
destination:
namespace: example-application-helm-basic
server: https://kubernetes.default.svc
project: helm-basic
source:
repoURL: git@github.com:leonsteinhaeuser/rh-ocp-examples.git
targetRevision: HEAD
path: ocp/helm-charts/view-service
helm:
valueFiles:
- ../deployments/helm/basic/view-service.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 5
syncOptions:
- PruneLast=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
21 changes: 21 additions & 0 deletions ocp/deployments/helm_basic_argo_project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: helm-basic
labels:
argocd.argoproj.io/sync-wave: "0"
spec:
sourceNamespaces:
- example-application-helm-basic
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- name: in-cluster
namespace: example-application-helm-basic
server: https://kubernetes.default.svc
namespaceResourceWhitelist:
- group: '*'
kind: '*'
sourceRepos:
- git@github.com:leonsteinhaeuser/rh-ocp-examples.git
14 changes: 14 additions & 0 deletions ocp/deployments/helm_basic_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: example-application-helm-basic

0 comments on commit 2cdf7c1

Please sign in to comment.