Skip to content

Commit a80f73d

Browse files
authored
Merge pull request #265 from openinfradev/policy-serving
policy: add a decapod app for policies 다른 것들과 충돌이 없으므로 임의 merge 하겠습니다.
2 parents 9d487ae + deea99d commit a80f73d

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

policy/base/kustomization.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resources:
2+
- resources.yaml
3+
4+
transformers:
5+
- site-values.yaml

policy/base/resources.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
apiVersion: helm.fluxcd.io/v1
3+
kind: HelmRelease
4+
metadata:
5+
labels:
6+
name: opa-gatekeeper
7+
name: opa-gatekeeper
8+
spec:
9+
chart:
10+
type: helmrepo
11+
repository: https://harbor-cicd.taco-cat.xyz/chartrepo/tks
12+
name: gatekeeper
13+
version: 3.11.0
14+
origin: https://open-policy-agent.github.io/gatekeeper/charts
15+
helmVersion: v3
16+
releaseName: opa-gatekeeper
17+
targetNamespace: taco-system
18+
values:
19+
enableDeleteOperations: true
20+
---
21+
apiVersion: helm.fluxcd.io/v1
22+
kind: HelmRelease
23+
metadata:
24+
labels:
25+
name: policy-resources
26+
name: policy-resources
27+
spec:
28+
chart:
29+
type: helmrepo
30+
repository: https://harbor-cicd.taco-cat.xyz/chartrepo/tks
31+
name: policy-resources
32+
version: 1.0.0
33+
origin: https://openinfradev.github.io/helm-charts/policy-resources
34+
helmVersion: v3
35+
releaseName: policy-resources
36+
targetNamespace: taco-system
37+
values: {}

policy/base/site-values.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: openinfradev.github.com/v1
2+
kind: HelmValuesTransformer
3+
metadata:
4+
name: site
5+
6+
global:
7+
# Specify nodes to install workload
8+
nodeSelector:
9+
taco-lma: enabled
10+
# Specify cluster name. It is useful in multi-cluster env.
11+
clusterName: cluster.local
12+
# Storageclass to install persistant
13+
storageClassName: taco-storage
14+
15+
charts:
16+
- name: opa-gatekeeper
17+
override:
18+
prometheusOperator.nodeSelector: $(nodeSelector)
19+
20+
- name: policy-resources

0 commit comments

Comments
 (0)