File tree Expand file tree Collapse file tree 4 files changed +27
-61
lines changed
components/kyverno/staging Expand file tree Collapse file tree 4 files changed +27
-61
lines changed Original file line number Diff line number Diff line change @@ -4,36 +4,22 @@ kind: Kustomization
4
4
namespace : konflux-kyverno
5
5
6
6
generators :
7
- - kyverno-helm-generator.yaml
8
-
9
- replacements :
10
- # enforce serviceAccountName is used instead of serviceAccount in Jobs
11
- # TODO: these replacements can be removed when bumping to kyverno:1.14
12
- # https://github.com/kyverno/kyverno/pull/12158
13
- - source :
14
- group : batch
15
- version : v1
16
- kind : Job
17
- name : konflux-kyverno-migrate-resources
18
- namespace : konflux-kyverno
19
- fieldPath : spec.template.spec.serviceAccount
20
- targets :
21
- - select :
22
- group : batch
23
- version : v1
24
- kind : Job
25
- namespace : konflux-kyverno
26
- name : konflux-kyverno-migrate-resources
27
- fieldPaths :
28
- - spec.template.spec.serviceAccountName
29
- options :
30
- create : true
7
+ - kyverno-helm-generator.yaml
31
8
32
9
# set resources to jobs
33
10
patches :
34
- - path : job_resources.yaml
35
- target :
36
- group : batch
37
- version : v1
38
- kind : Job
39
- name : konflux-kyverno-migrate-resources
11
+ - path : job_resources.yaml
12
+ target :
13
+ group : batch
14
+ kind : Job
15
+ name : konflux-kyverno-migrate-resources
16
+ version : v1
17
+ - patch : |
18
+ - op: add
19
+ path: /spec/unhealthyPodEvictionPolicy
20
+ value: AlwaysAllow
21
+ target :
22
+ group : policy
23
+ version : v1
24
+ kind : PodDisruptionBudget
25
+ labelSelector : app.kubernetes.io/part-of=konflux-kyverno
Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ metadata:
4
4
name : kyverno
5
5
name : kyverno
6
6
repo : https://kyverno.github.io/kyverno/
7
- # TODO: when bumping to kyverno:1.14 we can remove ServiceAccountName
8
- # replacements from the kustomization.yaml file
9
- # https://github.com/kyverno/kyverno/pull/12158
10
- version : 3.3.7
7
+ version : 3.5.2
11
8
namespace : konflux-kyverno
12
9
valuesFile : kyverno-helm-values.yaml
13
10
releaseName : kyverno
Original file line number Diff line number Diff line change @@ -6,29 +6,6 @@ namespace: konflux-kyverno
6
6
generators :
7
7
- kyverno-helm-generator.yaml
8
8
9
- replacements :
10
- # enforce serviceAccountName is used instead of serviceAccount in Jobs
11
- # TODO: these replacements can be removed when bumping to kyverno:1.14
12
- # https://github.com/kyverno/kyverno/pull/12158
13
- - source :
14
- group : batch
15
- version : v1
16
- kind : Job
17
- name : konflux-kyverno-migrate-resources
18
- namespace : konflux-kyverno
19
- fieldPath : spec.template.spec.serviceAccount
20
- targets :
21
- - select :
22
- group : batch
23
- version : v1
24
- kind : Job
25
- namespace : konflux-kyverno
26
- name : konflux-kyverno-migrate-resources
27
- fieldPaths :
28
- - spec.template.spec.serviceAccountName
29
- options :
30
- create : true
31
-
32
9
# set resources to jobs
33
10
patches :
34
11
- path : job_resources.yaml
@@ -37,3 +14,12 @@ patches:
37
14
version : v1
38
15
kind : Job
39
16
name : konflux-kyverno-migrate-resources
17
+ - patch : |
18
+ - op: add
19
+ path: /spec/unhealthyPodEvictionPolicy
20
+ value: AlwaysAllow
21
+ target:
22
+ group: policy
23
+ version: v1
24
+ kind: PodDisruptionBudget
25
+ labelSelector: app.kubernetes.io/part-of=konflux-kyverno
Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ metadata:
4
4
name : kyverno
5
5
name : kyverno
6
6
repo : https://kyverno.github.io/kyverno/
7
- # TODO: when bumping to kyverno:1.14 we can remove ServiceAccountName
8
- # replacements from the kustomization.yaml file
9
- # https://github.com/kyverno/kyverno/pull/12158
10
- version : 3.3.7
7
+ version : 3.5.2
11
8
namespace : konflux-kyverno
12
9
valuesFile : kyverno-helm-values.yaml
13
10
releaseName : kyverno
You can’t perform that action at this time.
0 commit comments