forked from redhat-cop/operationalizing-openshift-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcluster-gitops.yaml
More file actions
54 lines (54 loc) · 1.4 KB
/
cluster-gitops.yaml
File metadata and controls
54 lines (54 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: v1
kind: Template
objects:
- apiVersion: v1
kind: Namespace
metadata:
name: cluster-config
- apiVersion: v1
kind: ServiceAccount
metadata:
name: eunomia-runner
namespace: ${CLUSTER_CONFIG_NAMESPACE}
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: eunomia-runner-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: eunomia-runner
namespace: ${CLUSTER_CONFIG_NAMESPACE}
- apiVersion: eunomia.kohls.io/v1alpha1
kind: GitOpsConfig
metadata:
name: cluster-config
namespace: ${CLUSTER_CONFIG_NAMESPACE}
spec:
templateSource:
uri: ${CLUSTER_CONFIG_REPO_URL}
ref: ${CLUSTER_CONFIG_REPO_REF}
contextDir: ${CLUSTER_CONFIG_REPO_DIR}
triggers:
- type: Change
#- type: Periodic
#cron: '*/1 * * * *'
serviceAccountRef: eunomia-runner
templateProcessorImage: ${TEMPLATE_PROCESSOR_IMAGE}
resourceHandlingMode: None
resourceDeletionMode: None
parameters:
- name: CLUSTER_CONFIG_NAMESPACE
value: cluster-config
- name: CLUSTER_CONFIG_REPO_URL
value: https://github.com/philippselle/operationalizing-openshift-lab
- name: CLUSTER_CONFIG_REPO_REF
value: master
- name: CLUSTER_CONFIG_REPO_DIR
value: ''
- name: TEMPLATE_PROCESSOR_IMAGE
value: quay.io/kohlstechnology/eunomia-applier:v0.0.1