Commit 666ed4f 1 parent 819984d commit 666ed4f Copy full SHA for 666ed4f
File tree 3 files changed +50
-4
lines changed
internal/plugins/helm/v1/scaffolds/internal/templates
testdata/helm/memcached-operator
3 files changed +50
-4
lines changed Original file line number Diff line number Diff line change
1
+ # entries is a list of entries to include in
2
+ # release notes and/or the migration guide
3
+ entries :
4
+ - description : >
5
+ The make uninstall and undeploy command from the generated Makefile
6
+ now properly handle missing kustomized resources.
7
+
8
+ # kind is one of:
9
+ # - addition
10
+ # - change
11
+ # - deprecation
12
+ # - removal
13
+ # - bugfix
14
+ kind: "bugfix"
15
+
16
+ # Is this a breaking change?
17
+ breaking: false
18
+
19
+ # NOTE: ONLY USE `pull_request_override` WHEN ADDING THIS
20
+ # FILE FOR A PREVIOUSLY MERGED PULL_REQUEST!
21
+ #
22
+ # The generator auto-detects the PR number from the commit
23
+ # message in which this file was originally added.
24
+ #
25
+ # What is the pull request number (without the "#")?
26
+ # pull_request_override: 0
27
+
28
+
29
+ # Migration can be defined to automatically add a section to
30
+ # the migration guide. This is required for breaking changes.
31
+ # migration:
32
+ # header: Header text for the migration section
33
+ # body: |
34
+ # Body of the migration section. This should be formatted as markdown and can
35
+ # span multiple lines.
36
+ #
37
+ # Using the YAML string '|' operator means that newlines in this string will
38
+ # be honored and interpretted as newlines in the rendered markdown.
Original file line number Diff line number Diff line change @@ -118,13 +118,17 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
118
118
119
119
##@ Deployment
120
120
121
+ ifndef ignore-not-found
122
+ ignore-not-found = false
123
+ endif
124
+
121
125
.PHONY: install
122
126
install: kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
123
127
$(KUSTOMIZE) build config/crd | kubectl apply -f -
124
128
125
129
.PHONY: uninstall
126
130
uninstall: kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
127
- $(KUSTOMIZE) build config/crd | kubectl delete -f -
131
+ $(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) - f -
128
132
129
133
.PHONY: deploy
130
134
deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
@@ -133,7 +137,7 @@ deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/c
133
137
134
138
.PHONY: undeploy
135
139
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
136
- $(KUSTOMIZE) build config/default | kubectl delete -f -
140
+ $(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) - f -
137
141
138
142
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
139
143
ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
Original file line number Diff line number Diff line change @@ -103,13 +103,17 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
103
103
104
104
# #@ Deployment
105
105
106
+ ifndef ignore-not-found
107
+ ignore-not-found = false
108
+ endif
109
+
106
110
.PHONY : install
107
111
install : kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
108
112
$(KUSTOMIZE ) build config/crd | kubectl apply -f -
109
113
110
114
.PHONY : uninstall
111
115
uninstall : kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
112
- $(KUSTOMIZE ) build config/crd | kubectl delete -f -
116
+ $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found= $( ignore-not-found ) - f -
113
117
114
118
.PHONY : deploy
115
119
deploy : kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
@@ -118,7 +122,7 @@ deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/c
118
122
119
123
.PHONY : undeploy
120
124
undeploy : # # Undeploy controller from the K8s cluster specified in ~/.kube/config.
121
- $(KUSTOMIZE ) build config/default | kubectl delete -f -
125
+ $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found= $( ignore-not-found ) - f -
122
126
123
127
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
124
128
ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
You can’t perform that action at this time.
0 commit comments