Skip to content

Commit

Permalink
Use namePrefix
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Ishii <[email protected]>
  • Loading branch information
masa213f committed Aug 12, 2021
1 parent d64fcca commit 4478b4d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/controller/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: meows-controller
name: controller
namespace: system
spec:
selector:
Expand Down
2 changes: 2 additions & 0 deletions config/controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ images:
- name: quay.io/cybozu/meows-controller
newTag: 0.2.0

namePrefix: meows-

commonLabels:
app.kubernetes.io/name: meows
app.kubernetes.io/component: controller
Expand Down
10 changes: 9 additions & 1 deletion config/controller/kustomizeconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ nameReference:
- kind: Certificate
group: cert-manager.io
path: spec/issuerRef/name

- kind: Service
version: v1
fieldSpecs:
- kind: MutatingWebhookConfiguration
group: admissionregistration.k8s.io
path: webhooks/clientConfig/service/name
- kind: ValidatingWebhookConfiguration
group: admissionregistration.k8s.io
path: webhooks/clientConfig/service/name

namespace:
- kind: MutatingWebhookConfiguration
Expand Down
2 changes: 1 addition & 1 deletion kindtest/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CURL := curl -sSLf

KUSTOMIZE_VERSION := 3.8.7
KUSTOMIZE_VERSION := 4.1.3
K8S_VERSION := 1.19.7
KIND_VERSION := 0.11.1
CERT_MANAGER_VERSION := 1.3.1
Expand Down

0 comments on commit 4478b4d

Please sign in to comment.