File tree 4 files changed +20
-11
lines changed
charts/weave-policy-agent
4 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 1
1
dependencies:
2
2
- name: policy-agent
3
3
repository: https://weaveworks.github.io/policy-agent
4
- version: 1.0 .0
5
- digest: sha256:fcebc5474323b1f9bfb4c69aeca70df90a9195ed22716cfb7e918e82b5d575bb
6
- generated: "2022-08-18T14:32:41.175031628 +02:00"
4
+ version: 1.1 .0
5
+ digest: sha256:059e286d2d51653e6bd8bafe60538d2896d6ed62f9a66e7fe4288c912f7447db
6
+ generated: "2022-09-20T15:05:23.605515697 +02:00"
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
description : A Weaveworks Helm chart for Kubernetes to configure the policy agent
3
3
name : weave-policy-agent
4
- appVersion : " 1.0 .0"
5
- version : 0.6.0
4
+ appVersion : " 1.1 .0"
5
+ version : 0.6.1
6
6
kubeVersion : " >=1.16.0-0"
7
7
icon : https://www.magalix.com/hubfs/Imported%20images/logo-02.png%3Fwidth=560%26name=logo-02-Dec-18-2020-11-24-41-75-AM.png
8
8
type : application
@@ -28,5 +28,5 @@ annotations:
28
28
29
29
dependencies :
30
30
- name : policy-agent
31
- version : " 1.0 .0"
31
+ version : " 1.1 .0"
32
32
repository : " https://weaveworks.github.io/policy-agent"
Original file line number Diff line number Diff line change 1
1
{{- if .Values.policySource.enabled }}
2
+ {{- if not .Values.policySource.sourceRef }}
2
3
apiVersion : source.toolkit.fluxcd.io/v1beta1
3
4
kind : GitRepository
4
5
metadata :
5
6
name : policy-library
6
- namespace : flux-system
7
+ namespace : {{ .Release.Namespace }}
7
8
spec :
8
9
interval : 10s
9
10
url : {{ .Values.policySource.url }}
@@ -20,19 +21,24 @@ spec:
20
21
secretRef :
21
22
name : {{ .Values.policySource.secretRef }}
22
23
{{- end }}
23
-
24
+ {{- end }}
24
25
---
25
26
apiVersion : kustomize.toolkit.fluxcd.io/v1beta1
26
27
kind : Kustomization
27
28
metadata :
28
29
name : policy-library
29
- namespace : flux-system
30
+ namespace : {{ .Release.Namespace }}
30
31
spec :
31
32
interval : 10m0s
33
+ {{- if not .Values.policySource.sourceRef }}
32
34
sourceRef :
33
35
kind : GitRepository
34
36
name : policy-library
35
- namespace : flux-system
37
+ namespace : {{ .Release.Namespace }}
38
+ {{- else }}
39
+ sourceRef :
40
+ {{- toYaml .Values.policySource.sourceRef | nindent 4 }}
41
+ {{- end }}
36
42
path : {{ .Values.policySource.path }}
37
43
prune : true
38
44
validation : client
Original file line number Diff line number Diff line change 1
1
policy-agent :
2
- image : magalixcorp/policy-agent
3
2
failurePolicy : Ignore
4
3
5
4
# If you don't want to use cert-manager, set useCertManager to false and provide your own certs
@@ -42,3 +41,7 @@ policySource:
42
41
# branch:
43
42
# path: ./ # Could be a path to the policies dir or a kustomization.yaml file
44
43
# secretRef: policy-library-auth # (Optional): Name of the K8s secret with private repo auth credentials
44
+ # sourceRef: # Could specify a name for an existing GitSource reference instead of creating a new one
45
+ # kind: GitRepository
46
+ # name: policy-library
47
+ # namespace: flux-system
You can’t perform that action at this time.
0 commit comments