Skip to content

Commit dcfb0ee

Browse files
committed
kyverno: bump to v1.15.2 on staging
Upgrade kyverno from v1.13.4 to v1.15.2 on the staging clusters. Part-of: KFLUXINFRA-1963 Signed-off-by: Andy Sadler <ansadler@redhat.com>
1 parent 7d79f68 commit dcfb0ee

File tree

4 files changed

+27
-61
lines changed

4 files changed

+27
-61
lines changed

components/kyverno/staging/stone-stage-p01/kustomization.yaml

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,22 @@ kind: Kustomization
44
namespace: konflux-kyverno
55

66
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
318

329
# set resources to jobs
3310
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

components/kyverno/staging/stone-stage-p01/kyverno-helm-generator.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ metadata:
44
name: kyverno
55
name: kyverno
66
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
118
namespace: konflux-kyverno
129
valuesFile: kyverno-helm-values.yaml
1310
releaseName: kyverno

components/kyverno/staging/stone-stg-rh01/kustomization.yaml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,6 @@ namespace: konflux-kyverno
66
generators:
77
- kyverno-helm-generator.yaml
88

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-
329
# set resources to jobs
3310
patches:
3411
- path: job_resources.yaml
@@ -37,3 +14,12 @@ patches:
3714
version: v1
3815
kind: Job
3916
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

components/kyverno/staging/stone-stg-rh01/kyverno-helm-generator.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ metadata:
44
name: kyverno
55
name: kyverno
66
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
118
namespace: konflux-kyverno
129
valuesFile: kyverno-helm-values.yaml
1310
releaseName: kyverno

0 commit comments

Comments
 (0)