Skip to content

Commit

Permalink
Delete port usng patchesStrategicMerge
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvin Norling committed Aug 4, 2021
1 parent d4b5712 commit 1171bb6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
17 changes: 17 additions & 0 deletions cmd/build/helmify/delete-ports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
containers:
- name: manager
ports:
- containerPort: 8888
$patch: delete
- containerPort: 8443
$patch: delete
- containerPort: 9090
$patch: delete
7 changes: 1 addition & 6 deletions cmd/build/helmify/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ bases:
- "../../../config/overlays/mutation_webhook" # calls ../../default
patchesStrategicMerge:
- kustomize-for-helm.yaml
- delete-ports.yaml
patchesJson6902:
- target:
group: apiextensions.k8s.io
Expand Down Expand Up @@ -78,9 +79,3 @@ patchesJson6902:
path: /spec/template/spec/nodeSelector/kubernetes.io~1os
- op: remove
path: /spec/template/spec/affinity/podAntiAffinity
- op: remove
path: /spec/template/spec/containers/0/ports/3
- op: remove
path: /spec/template/spec/containers/0/ports/3
- op: remove
path: /spec/template/spec/containers/0/ports/3

0 comments on commit 1171bb6

Please sign in to comment.