-
Notifications
You must be signed in to change notification settings - Fork 20
Update operator scripts for upstream repos #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
12b680e
8e85057
e5c0824
861c675
dd3fbf5
c94a966
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,19 @@ | |
| # To re-generate a bundle for another specific version without changing the standard setup, you can: | ||
| # - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2) | ||
| # - use environment variables to overwrite this value (e.g export VERSION=0.0.2) | ||
| VERSION ?= 0.8.0 | ||
| VERSION ?= 0.8.1-rc.1 | ||
|
|
||
| # REPLACES defines the previous operator version this release replaces in the OLM upgrade graph. | ||
| # Used to generate the release-config.yaml for FBC auto-release. | ||
| # Set to empty for the first release in a channel. | ||
| # See: https://redhat-openshift-ecosystem.github.io/operator-pipelines/users/fbc_autorelease/ | ||
| REPLACES ?= jumpstarter-operator.v0.8.0 | ||
|
|
||
| # FBC_CHANNELS defines the FBC catalog channels for this release. | ||
| FBC_CHANNELS ?= alpha | ||
|
|
||
| # OPENSHIFT_VERSIONS defines the Red Hat OpenShift version range injected into bundle metadata. | ||
| OPENSHIFT_VERSIONS ?= v4.18-v4.21 | ||
|
|
||
| # CHANNELS define the bundle channels used in the bundle. | ||
| # Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable") | ||
|
|
@@ -305,7 +317,27 @@ bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metada | |
| $(OPERATOR_SDK) generate kustomize manifests -q | ||
| cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG) | ||
| $(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS) | ||
| @# Inject Red Hat OpenShift version range into bundle metadata (not handled by operator-sdk) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool |
||
| @if ! grep -q 'com.redhat.openshift.versions' bundle/metadata/annotations.yaml; then \ | ||
| echo ' com.redhat.openshift.versions: $(OPENSHIFT_VERSIONS)' >> bundle/metadata/annotations.yaml; \ | ||
| fi | ||
| $(OPERATOR_SDK) bundle validate ./bundle | ||
| @# Generate release-config.yaml for FBC auto-release | ||
| @echo "---" > bundle/release-config.yaml | ||
| @echo "catalog_templates:" >> bundle/release-config.yaml | ||
| @echo " - template_name: basic.yaml" >> bundle/release-config.yaml | ||
| @echo " channels: [$(FBC_CHANNELS)]" >> bundle/release-config.yaml | ||
| ifneq ($(REPLACES),) | ||
| @echo " replaces: $(REPLACES)" >> bundle/release-config.yaml | ||
| @REPLACES_VER=$$(echo "$(REPLACES)" | sed 's/jumpstarter-operator\.v//'); \ | ||
| echo " skipRange: '>=$${REPLACES_VER} <$(VERSION)'" >> bundle/release-config.yaml | ||
| endif | ||
| @echo "Generated bundle/release-config.yaml" | ||
|
|
||
| .PHONY: contribute | ||
| contribute: bundle ## Update community-operators repos with the current bundle. | ||
| cd contribute && \ | ||
| ./update-contributions.sh | ||
|
|
||
| .PHONY: bundle-build | ||
| bundle-build: ## Build the bundle image. | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.