From 9b06b21cf034e7f16d4ea8aef9b3c3d42c67d4df Mon Sep 17 00:00:00 2001 From: John Eckhart Date: Wed, 19 Aug 2020 23:08:11 -0400 Subject: [PATCH] Add namespace to kustomizations to support kustomize 3.5+ --- native/kustomization.yaml | 2 ++ native/native-image-zookeeper.yaml | 2 ++ nonroot/kustomization.yaml | 6 ++++++ nonroot/nonroot-image-kafka.yaml | 1 + nonroot/nonroot-image-zookeeper.yaml | 2 ++ 5 files changed, 13 insertions(+) diff --git a/native/kustomization.yaml b/native/kustomization.yaml index 6a489db7..65aa81cf 100644 --- a/native/kustomization.yaml +++ b/native/kustomization.yaml @@ -8,10 +8,12 @@ patchesJson6902: version: v1 kind: StatefulSet name: pzoo + namespace: kafka path: distroless.yaml - target: group: apps version: v1 kind: StatefulSet name: zoo + namespace: kafka path: distroless.yaml \ No newline at end of file diff --git a/native/native-image-zookeeper.yaml b/native/native-image-zookeeper.yaml index 5d38e65d..08e7684d 100644 --- a/native/native-image-zookeeper.yaml +++ b/native/native-image-zookeeper.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: pzoo + namespace: kafka spec: template: spec: @@ -17,6 +18,7 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: zoo + namespace: kafka spec: template: spec: diff --git a/nonroot/kustomization.yaml b/nonroot/kustomization.yaml index a3526dfb..d84b99e0 100644 --- a/nonroot/kustomization.yaml +++ b/nonroot/kustomization.yaml @@ -11,34 +11,40 @@ patchesJson6902: version: v1 kind: StatefulSet name: kafka + namespace: kafka path: fsgroup-65534.yaml - target: group: apps version: v1 kind: StatefulSet name: pzoo + namespace: kafka path: fsgroup-65534.yaml - target: group: apps version: v1 kind: StatefulSet name: zoo + namespace: kafka path: fsgroup-65534.yaml - target: group: apps version: v1 kind: StatefulSet name: kafka + namespace: kafka path: entrypoint-from-image.yaml - target: group: apps version: v1 kind: StatefulSet name: pzoo + namespace: kafka path: entrypoint-from-image.yaml - target: group: apps version: v1 kind: StatefulSet name: zoo + namespace: kafka path: entrypoint-from-image.yaml diff --git a/nonroot/nonroot-image-kafka.yaml b/nonroot/nonroot-image-kafka.yaml index 9bfb41f3..6846d3c9 100644 --- a/nonroot/nonroot-image-kafka.yaml +++ b/nonroot/nonroot-image-kafka.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: kafka + namespace: kafka spec: template: spec: diff --git a/nonroot/nonroot-image-zookeeper.yaml b/nonroot/nonroot-image-zookeeper.yaml index 8db695a9..e17708e0 100644 --- a/nonroot/nonroot-image-zookeeper.yaml +++ b/nonroot/nonroot-image-zookeeper.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: pzoo + namespace: kafka spec: template: spec: @@ -18,6 +19,7 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: zoo + namespace: kafka spec: template: spec: