Skip to content

Commit

Permalink
chore: support kustomize v5 (#2702)
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Kohama <khm.mb0@gmail.com>
  • Loading branch information
khmjp authored and whynowy committed Aug 31, 2023
1 parent ee3303e commit 9fb0296
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 61 deletions.
4 changes: 2 additions & 2 deletions manifests/base/controller-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- controller-config.yaml
- controller-manager-deployment.yaml
- controller-config.yaml
- controller-manager-deployment.yaml
6 changes: 3 additions & 3 deletions manifests/base/crds/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argoproj.io_eventbus.yaml
- argoproj.io_eventsources.yaml
- argoproj.io_sensors.yaml
- argoproj.io_eventbus.yaml
- argoproj.io_eventsources.yaml
- argoproj.io_sensors.yaml
14 changes: 7 additions & 7 deletions manifests/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- crds
- argo-events-sa.yaml
- controller-manager
- crds
- argo-events-sa.yaml
- controller-manager

images:
- name: quay.io/argoproj/argo-events
newTag: v1.8.0
- name: quay.io/argoproj/argo-events
newTag: v1.8.0

patchesStrategicMerge:
- |-
patches:
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
5 changes: 2 additions & 3 deletions manifests/cluster-install/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base
- rbac
- ../base
- rbac

namespace: argo-events

10 changes: 5 additions & 5 deletions manifests/cluster-install/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argo-events-aggregate-to-admin.yaml
- argo-events-aggregate-to-edit.yaml
- argo-events-aggregate-to-view.yaml
- argo-events-cluster-role.yaml
- argo-events-binding.yaml
- argo-events-aggregate-to-admin.yaml
- argo-events-aggregate-to-edit.yaml
- argo-events-aggregate-to-view.yaml
- argo-events-cluster-role.yaml
- argo-events-binding.yaml
5 changes: 2 additions & 3 deletions manifests/extensions/validating-webhook/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ resources:
namespace: argo-events

images:
- name: quay.io/argoproj/argo-events
newTag: v1.8.0

- name: quay.io/argoproj/argo-events
newTag: v1.8.0
16 changes: 8 additions & 8 deletions manifests/namespace-install/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base
- rbac
- ../base
- rbac

namespace: argo-events

patches:
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --namespaced
target:
kind: Deployment
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --namespaced
target:
kind: Deployment
4 changes: 2 additions & 2 deletions manifests/namespace-install/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argo-events-role.yaml
- argo-events-role-binding.yaml
- argo-events-role.yaml
- argo-events-role-binding.yaml
4 changes: 2 additions & 2 deletions test/manifests/kafka/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- kafka.yaml
- zookeeper.yaml
- kafka.yaml
- zookeeper.yaml
54 changes: 28 additions & 26 deletions test/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../manifests/cluster-install
- ../../manifests/extensions/validating-webhook
- ../../manifests/cluster-install
- ../../manifests/extensions/validating-webhook

patches:
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
value: IfNotPresent
target:
kind: Deployment
name: controller-manager
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
value: IfNotPresent
target:
kind: Deployment
name: events-webhook
- patch: |-
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: IMAGE_PULL_POLICY
value: IfNotPresent
target:
kind: Deployment
name: controller-manager
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
value: IfNotPresent
target:
kind: Deployment
name: events-webhook
- patch: |-
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: IMAGE_PULL_POLICY
value: IfNotPresent
target:
kind: Deployment
name: controller-manager
target:
kind: Deployment
name: controller-manager

namespace: argo-events

commonLabels:
"app.kubernetes.io/part-of": "argo-events"
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/part-of: argo-events

0 comments on commit 9fb0296

Please sign in to comment.