File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,20 @@ If changes are made to any Go code (like in the `controllers` dir for example),
31
31
- This will check and build/compile the modified code
32
32
33
33
For building and pushing a new version of the operator image:
34
- - ` make image-build -e IMG_TAG_BASE =<image-repo/image-name> VERSION=<semver> `
35
- - ` make image-push -e IMG_TAG_BASE =<image-repo/image-name> VERSION=<semver> `
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> `
36
36
37
37
For deploying onto a cluster:
38
38
- First, either set ` KUBECONFIG ` or ensure you are logged into a cluster in your environment
39
39
- ` make install `
40
40
- ` make deploy -e IMG=<image-repo/image-name> `
41
41
42
42
For building and pushing a new version of the bundled operator image:
43
- - ` make bundle-build -e IMG_TAG_BASE =<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace> `
44
- - ` make bundle-push -e IMG_TAG_BASE =<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace> `
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
45
46
46
To create a new openshift-community-operator-release:
47
- - ` make openshift-community-operator-release -e IMG_TAG_BASE =<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace> `
47
+ - ` make openshift-community-operator-release -e IMAGE_TAG_BASE =<image-repo/image-name> VERSION=<new semver> PREVIOUS_VERSION=<semver to replace> `
48
48
49
49
## Testing
50
50
The CodeFlare Operator currently has unit tests and pre-commit checks
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
170
170
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
171
171
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
172
172
$(KUSTOMIZE ) build config/default | kubectl apply -f -
173
+ git restore config/*
173
174
174
175
.PHONY : undeploy
175
176
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
241
242
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.v$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
242
243
$(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle $(BUNDLE_GEN_FLAGS )
243
244
$(MAKE ) validate-bundle
245
+ git restore config/*
244
246
245
247
.PHONY : bundle-build
246
248
bundle-build : bundle # # Build the bundle image.
You can’t perform that action at this time.
0 commit comments