Closed whg517 closed 1 month ago
wo can fix it :
diff --git a/Makefile b/Makefile
index e1e8a5a..fe0320b 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@ VERSION ?= 0.0.1
# To re-generate a bundle for other specific channels without changing the standard setup, you can:
# - use the CHANNELS as arg of the bundle target (e.g make bundle CHANNELS=candidate,fast,stable)
# - use environment variables to overwrite this value (e.g export CHANNELS="candidate,fast,stable")
+CHANNELS ?= "stable"
ifneq ($(origin CHANNELS), undefined)
BUNDLE_CHANNELS := --channels=$(CHANNELS)
endif
@@ -32,6 +33,7 @@ endif
# To re-generate a bundle for any other default channel without changing the default setup, you can:
# - use the DEFAULT_CHANNEL as arg of the bundle target (e.g make bundle DEFAULT_CHANNEL=stable)
# - use environment variables to overwrite this value (e.g export DEFAULT_CHANNEL="stable")
+DEFAULT_CHANNEL ?= "stable"
ifneq ($(origin DEFAULT_CHANNEL), undefined)
BUNDLE_DEFAULT_CHANNEL := --default-channel=$(DEFAULT_CHANNEL)
endif
channel is alpha
when CHANNELS
is not defined show below, is it?
path is: bundle/metadata/annotations.yaml
:
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.33.0
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v4
@whg517
Is it better to use the code below, i used the ?=
assignment operator symbol
diff --git a/Makefile b/Makefile
index abb06ce..f430fd6 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ VERSION ?= 0.0.1
# To re-generate a bundle for other specific channels without changing the standard setup, you can:
# - use the CHANNELS as arg of the bundle target (e.g make bundle CHANNELS=candidate,fast,stable)
# - use environment variables to overwrite this value (e.g export CHANNELS="candidate,fast,stable")
+CHANNELS ?= stable
ifneq ($(origin CHANNELS), undefined)
BUNDLE_CHANNELS := --channels=$(CHANNELS)
endif
@@ -19,6 +20,7 @@ endif
# To re-generate a bundle for any other default channel without changing the default setup, you can:
# - use the DEFAULT_CHANNEL as arg of the bundle target (e.g make bundle DEFAULT_CHANNEL=stable)
# - use environment variables to overwrite this value (e.g export DEFAULT_CHANNEL="stable")
+DEFAULT_CHANNEL ?= stable
ifneq ($(origin DEFAULT_CHANNEL), undefined)
BUNDLE_DEFAULT_CHANNEL := --default-channel=$(DEFAULT_CHANNEL)
Describe the bug
Because channels are not defined in the Makefile, the default channels are used when the bundle is generated.
https://github.com/zncdatadev/trino-operator/blob/ef1c50493aaf6da0994495e7be49c1797f0e2b8a/Makefile#L8-L25
Have you searched existing issues? 🔎
Reproduction
https://github.com/zncdatadev/trino-operator/blob/ef1c50493aaf6da0994495e7be49c1797f0e2b8a/Makefile#L8-L25
wo can fix it :
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it