Skip to content

Commit 080b417

Browse files
authored
Merge branch 'main' into release-instructions
2 parents 4883a55 + 360e01f commit 080b417

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

Diff for: CONTRIBUTING.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,21 @@ If changes are made to any Go code (like in the `controllers` dir for example),
3131
- This will check and build/compile the modified code
3232

3333
For building and pushing a new version of the operator image:
34-
- `make image-build -e IMG=<image-repo/image-name>`
35-
- `make image-push -e IMG<image-repo/image-name>`
34+
- `make image-build -e IMAGE_TAG_BASE=<image-repo/image-name> VERSION=<semver>`
35+
- `make image-push -e IMAGE_TAG_BASE=<image-repo/image-name> VERSION=<semver>`
3636

3737
For deploying onto a cluster:
3838
- First, either set `KUBECONFIG` or ensure you are logged into a cluster in your environment
3939
- `make install`
4040
- `make deploy -e IMG=<image-repo/image-name>`
4141

42+
For building and pushing a new version of the bundled operator image:
43+
- `make bundle-build -e IMAGE_TAG_BASE=<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace>`
44+
- `make bundle-push -e IMAGE_TAG_BASE=<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace>`
45+
46+
To create a new openshift-community-operator-release:
47+
- `make openshift-community-operator-release -e IMAGE_TAG_BASE=<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace>`
48+
4249
## Testing
4350
The CodeFlare Operator currently has unit tests and pre-commit checks
4451
- To enable and view pre-commit checks: `pre-commit install`

Diff for: Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# best if we could detect this. If we cannot, we need to document it somewhere.
77
# then we can add a patch in the `PHONY: bundle`
88

9-
PREVIOUS_VERSION ?= 0.0.3
10-
VERSION ?= 0.0.4
9+
PREVIOUS_VERSION ?= 0.0.0-dev
10+
VERSION ?= 0.0.0-dev
1111

1212
# INSTASCALE_VERSION defines the default version of the InstaScale controller
1313
INSTASCALE_VERSION ?= v0.0.4
@@ -170,6 +170,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
170170
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
171171
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
172172
$(KUSTOMIZE) build config/default | kubectl apply -f -
173+
git restore config/*
173174

174175
.PHONY: undeploy
175176
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
@@ -241,6 +242,7 @@ bundle: defaults manifests kustomize install-operator-sdk ## Generate bundle man
241242
cd config/manifests && $(KUSTOMIZE) edit add patch --patch '[{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.v$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
242243
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
243244
$(MAKE) validate-bundle
245+
git restore config/*
244246

245247
.PHONY: bundle-build
246248
bundle-build: bundle ## Build the bundle image.

Diff for: config/manager/kustomization.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,3 @@ configMapGenerator:
1010
name: manager-config
1111
apiVersion: kustomize.config.k8s.io/v1beta1
1212
kind: Kustomization
13-
images:
14-
- name: controller
15-
newName: quay.io/project-codeflare/codeflare-operator
16-
newTag: v0.0.2

Diff for: config/manifests/kustomization.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ resources:
77
- ../scorecard
88
apiVersion: kustomize.config.k8s.io/v1beta1
99
kind: Kustomization
10-
patches:
11-
- patch: '[{"op":"add", "path":"/metadata/annotations/containerImage", "value": "quay.io/project-codeflare/codeflare-operator:v0.0.1" }]'
12-
target:
13-
kind: ClusterServiceVersion
14-
- patch: '[{"op":"add", "path":"/metadata/annotations/containerImage", "value": "quay.io/project-codeflare/codeflare-operator:v0.0.2" }]'
15-
target:
16-
kind: ClusterServiceVersion

0 commit comments

Comments
 (0)