File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ ifeq ($(USE_IMAGE_DIGESTS), true)
72
72
endif
73
73
74
74
# Image URL to use all building/pushing image targets
75
- IMG ?= quay.io/metal3-io/ironic-standalone-operator:latest
75
+ IMG_NO_TAG ?= quay.io/metal3-io/ironic-standalone-operator
76
+ IMG ?= $(IMG_NO_TAG ) :latest
76
77
77
78
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
78
79
ifeq (,$(shell go env GOBIN) )
@@ -332,6 +333,6 @@ release:
332
333
@if [ -z " ${RELEASE_TAG} " ]; then echo " RELEASE_TAG is not set" ; exit 1; fi
333
334
@if ! [ -z " $$ (git status --porcelain)" ]; then echo " You have uncommitted changes" ; exit 1; fi
334
335
git checkout " ${RELEASE_TAG} "
335
- sed -i -Ee " / image/s/(latest|release-[0-9 \\ .]+)/ $( RELEASE_TAG ) / " ./config/default/manager_image_patch.yaml
336
+ cd config/manager && $( KUSTOMIZE ) edit set image quay.io/metal3-io/ironic-standalone-operator= " $( IMG_NO_TAG ) : ${RELEASE_TAG} "
336
337
$(MAKE ) release-manifests
337
338
$(MAKE ) release-notes
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ resources:
12
12
# - ../prometheus
13
13
14
14
patches :
15
- - path : manager_image_patch.yaml
16
15
- path : manager_webhook_patch.yaml
17
16
- path : webhookcainjection_patch.yaml
18
17
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ Create a development branch (e.g. `prepare-0.x`) from the newly created branch:
90
90
branch of the Ironic image.
91
91
92
92
- Change the branch of IrSO itself from ` latest ` to ` release-0.x ` in two
93
- places: [ IMG in Makefile] [ img-makefile ] and in the file
94
- ` config/default/manager_image_patch.yaml ` .
93
+ places: [ IMG in Makefile] [ img-makefile ] and
94
+ [ Kustomize configuration ] [ kustomize ] .
95
95
96
96
- Commit your changes, push the new branch and create a pull request:
97
97
- The commit and PR title should be
@@ -105,6 +105,7 @@ Wait for the pull request to be merged before proceeding.
105
105
106
106
[ default-version ] : https://github.com/metal3-io/ironic-standalone-operator/blob/b630805cdd782a51845fc16086e5f64fa77e29af/pkg/ironic/version.go#L14-L15
107
107
[ img-makefile ] : https://github.com/metal3-io/ironic-standalone-operator/blob/b630805cdd782a51845fc16086e5f64fa77e29af/Makefile#L74-L75
108
+ [ kustomize ] : https://github.com/metal3-io/ironic-standalone-operator/blob/b630805cdd782a51845fc16086e5f64fa77e29af/config/manager/manager.yaml#L47
108
109
109
110
### Creating Release Notes
110
111
You can’t perform that action at this time.
0 commit comments