Skip to content

Commit

Permalink
parasol insurance dev
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-torres committed Jun 6, 2024
1 parent b90f025 commit d808621
Show file tree
Hide file tree
Showing 14 changed files with 231 additions and 1 deletion.
43 changes: 43 additions & 0 deletions bootstrap/overlays/parasol-insurance-dev/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: openshift-gitops

resources:
- ../../base
- ../../../components/argocd/apps/overlays/parasol-insurance-dev

patches:
# set the repo and branch for applications
- path: patch-application-repo-revision.yaml
target:
group: argoproj.io
kind: Application

replacements:
- source:
kind: Application
fieldPath: spec.source.repoURL
targets:
- select:
kind: ApplicationSet
fieldPaths:
- spec.template.spec.source.repoURL
- select:
kind: ApplicationSet
name: tenants
fieldPaths:
- spec.generators.*.git.repoURL
- source:
kind: Application
fieldPath: spec.source.targetRevision
targets:
- select:
kind: ApplicationSet
fieldPaths:
- spec.template.spec.source.targetRevision
- select:
kind: ApplicationSet
name: tenants
fieldPaths:
- spec.generators.*.git.revision

Check failure on line 43 in bootstrap/overlays/parasol-insurance-dev/kustomization.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

43:43 [new-line-at-end-of-file] no new line character at the end of file
45 changes: 45 additions & 0 deletions clusters/overlays/parasol-insurance-dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: openshift-gitops

resources:
- ../../base
- ../../../components/argocd/apps/overlays/parasol-insurance-dev

patches:
# set the repo and branch for applications
- path: patch-application-repo-revision.yaml
target:
group: argoproj.io
kind: Application

replacements:
# copy the repo from the application to the applicationsets
- source:
kind: Application
fieldPath: spec.source.repoURL
targets:
- select:
kind: ApplicationSet
fieldPaths:
- spec.template.spec.source.repoURL
- select:
kind: ApplicationSet
name: tenants
fieldPaths:
- spec.generators.*.git.repoURL
# copy the branch from the application to the applicationsets
- source:
kind: Application
fieldPath: spec.source.targetRevision
targets:
- select:
kind: ApplicationSet
fieldPaths:
- spec.template.spec.source.targetRevision
- select:
kind: ApplicationSet
name: tenants
fieldPaths:
- spec.generators.*.git.revision
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- op: remove
path: /spec/syncPolicy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- op: replace
path: /spec/source/repoURL
value: 'https://github.com/diego-torres/ai-accelerator.git'
- op: replace
path: /spec/source/targetRevision
value: main
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- op: remove
path: /spec/template/spec/syncPolicy
2 changes: 1 addition & 1 deletion components/argocd/apps/base/tenants-applicationset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
generators:
- git:
repoURL: 'https://github.com/redhat-ai-services/ai-accelerator.git'
repoURL: 'https://github.com/diego-torres/ai-accelerator.git'
revision: main
directories:
- path: tenants/*/*/overlays/patch-me-see-overlay
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- path: patch-cluster-config-app-of-apps.yaml
target:
kind: Application
name: cluster-config-app-of-apps
- path: patch-operators-list.yaml
target:
kind: ApplicationSet
name: cluster-operators
- path: patch-configs-list.yaml
target:
kind: ApplicationSet
name: cluster-configs
- path: patch-tenants-applicationset.yaml
target:
kind: ApplicationSet
name: tenants
- path: patch-tenants-applicationset.yaml
target:
kind: ApplicationSet
name: tenants
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cluster-config-app-of-apps
spec:
source:
path: clusters/overlays/parasol-insurance-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-configs
spec:
generators:
- list:
elements:
- cluster: local
url: https://kubernetes.default.svc
values:
name: user-workload-monitoring
path: components/cluster-configs/user-workload-monitoring/overlays/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-operators
spec:
generators:
- list:
elements:
- cluster: local
url: https://kubernetes.default.svc
values:
name: authorino-operator
path: components/operators/authorino-operator/operator/overlays/managed-services
- cluster: local
url: https://kubernetes.default.svc
values:
name: jaeger-operator
path: components/operators/jaeger/operator/overlays/stable
- cluster: local
url: https://kubernetes.default.svc
values:
name: kiali-operator
path: components/operators/kiali/operator/overlays/stable
- cluster: local
url: https://kubernetes.default.svc
values:
name: openshift-ai-operator
path: components/operators/openshift-ai/aggregate/overlays/fast
- cluster: local
url: https://kubernetes.default.svc
values:
name: openshift-elasticsearch-operator
path: components/operators/openshift-elasticsearch/operator/overlays/stable
- cluster: local
url: https://kubernetes.default.svc
values:
name: openshift-gitops-operator
path: components/operators/openshift-gitops/aggregate/overlays/rhdp
- cluster: local
url: https://kubernetes.default.svc
values:
name: openshift-pipelines-operator
path: components/operators/openshift-pipelines/operator/overlays/latest
- cluster: local
url: https://kubernetes.default.svc
values:
name: openshift-serverless-operator
path: components/operators/openshift-serverless/operator/overlays/stable
- cluster: local
url: https://kubernetes.default.svc
values:
name: openshift-servicemesh-operator
path: components/operators/openshift-servicemesh/operator/overlays/stable

# - cluster: local
# url: https://kubernetes.default.svc
# values:
# name: openshift-logging-operator
# path: components/operators/openshift-logging/aggregate/overlays/default
# - cluster: local
# url: https://kubernetes.default.svc
# values:
# name: web-terminal-operator
# path: components/operators/web-terminal-operator/operator/overlays/fast
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- op: replace
path: /spec/generators/0/git/directories/0/path
value: tenants/*/*/overlays/parasol-insurance-dev
5 changes: 5 additions & 0 deletions tenants/parasol-insurance/namespaces/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- parasol-insurance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: parasol-insurance
labels:
- includeSelectors: false
pairs:
opendatahub.io/dashboard: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

0 comments on commit d808621

Please sign in to comment.