Skip to content

Commit 3b0c756

Browse files
chore: update example
1 parent 36a90fb commit 3b0c756

File tree

6 files changed

+45
-15
lines changed

6 files changed

+45
-15
lines changed

PROJECT.example.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ environments:
5353
hugi:
5454
addons:
5555
cluster-policies:
56-
enabled: false
57-
properties: {}
56+
enabled: true
57+
properties:
58+
enableNetworkPolicies: true
59+
disco-operator:
60+
enabled: true
61+
properties:
62+
isSuperCool: false
63+
requiredDefaultNotSet: null
64+
second: Hello World
5865
kyverno:
5966
enabled: true
6067
properties: {}

_example/overlays/dev/dev/hugi/app-of-apps/values.yaml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
appSuffix: "hugi-dev"
3-
appSourceBasePath: overlays/dev/dev/hugi/cluster-config
3+
appSourceBasePath: overlays/dev/dev/hugi/cluster-configs
44

55
default:
66
app:
@@ -14,8 +14,8 @@ default:
1414
namespace: openshift-gitops
1515
server: https://kubernetes.default.svc
1616
source:
17-
repoURL: https://git.external.url/repo/name.git
18-
targetRevision: develop
17+
repoURL: https://github.com/leonsteinhaeuser/openshift-gitops-cli.git
18+
targetRevision: <no value>
1919

2020
projects:
2121
hub:
@@ -24,7 +24,7 @@ projects:
2424
description: Project for cluster hub
2525
namespace: openshift-gitops
2626
sourceRepos:
27-
- https://git.external.url/repo/name.git
27+
- https://github.com/leonsteinhaeuser/openshift-gitops-cli.git
2828
destinations: |
2929
- namespace: '*'
3030
server: https://kubernetes.default.svc
@@ -34,24 +34,34 @@ projects:
3434
kind: '*'
3535
3636
applications:
37-
kyverno:
37+
cluster-policies:
38+
enabled: true
3839
annotations:
39-
{}
40+
argocd.argoproj.io/sync-wave: "0"
4041
source:
41-
path: kyverno
42+
path: cluster-policies
4243
labels:
4344
app.kubernetes.io/managed-by: argocd
44-
monitoring:
45+
disco-operator:
46+
enabled: true
4547
annotations:
46-
{}
48+
argocd.argoproj.io/sync-wave: "0"
4749
source:
48-
path: monitoring
50+
path: disco-operator
51+
labels:
52+
app.kubernetes.io/managed-by: argocd
53+
kyverno:
54+
enabled: true
55+
annotations:
56+
argocd.argoproj.io/sync-wave: "0"
57+
source:
58+
path: kyverno
4959
labels:
5060
app.kubernetes.io/managed-by: argocd
51-
-by: argocd
5261
monitoring:
62+
enabled: true
5363
annotations:
54-
{}
64+
argocd.argoproj.io/sync-wave: "0"
5565
source:
5666
path: monitoring
5767
labels:

_example/overlays/dev/dev/hugi/cluster-configs/policies/cluster-policies/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44
resources:
55
- config/abc.yaml
6+
- "../../../../../../base/base-config/cluster-policies/"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- "../../../../../../base/disco-operator/"
6+
patches:
7+
- name: Hello World
8+
file: patch.yaml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
some: yaml
3+
key: false

_example/source/templates/appofapps/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
appSuffix: "{{ .ClusterName }}-{{ .Stage }}"
3-
appSourceBasePath: overlays/{{ .Environment }}/{{ .Stage }}/{{ .ClusterName }}/cluster-config
3+
appSourceBasePath: overlays/{{ .Environment }}/{{ .Stage }}/{{ .ClusterName }}/cluster-configs
44

55
default:
66
app:
@@ -36,6 +36,7 @@ projects:
3636
applications:
3737
{{- range $key, $value := .Addons }}
3838
{{ $key }}:
39+
enabled: {{ $value.Enabled }}
3940
annotations:
4041
{{- $value.Annotations | toYaml | nindent 6 }}
4142
source:

0 commit comments

Comments
 (0)