-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update to operator-sdk v1.39.1 #115
base: main
Are you sure you want to change the base?
Conversation
@rajchiluveru , thanks for starting this!
Commands to create the projects with operator-sdk can be found on the README of each operator. Here's the info: https://github.com/openshift-kni/example-cnf?tab=readme-ov-file#how-operators-are-created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes to be made
LABEL name="NFV Example CNF App MAC Operator" \ | ||
maintainer="telcoci" \ | ||
vendor="fredco" \ | ||
version="v0.2.22" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file cannot be modified, you only need to bump the version and release here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still required
Off next week, dismissing my review just not to block the merge of this change if working
Just for future reviews, since I'll be off:
Here's an example to follow Also, @rajchiluveru , note the following:
|
cnf-app-mac-operator/.gitignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this file deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this file deleted?
LABEL name="NFV Example CNF App MAC Operator" \ | ||
maintainer="telcoci" \ | ||
vendor="fredco" \ | ||
version="v0.2.22" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still required
cnf-app-mac-operator/Makefile
Outdated
# (i.e. docker build --platform linux/arm64 ). However, you must enable docker buildKit for it. | ||
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/ | ||
.PHONY: docker-build | ||
docker-build: test ## Build docker image with the manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependency with test
task is required, you cannot delete it. That's why the build PR Github action is failing right now.
cnf-app-mac-operator/Makefile
Outdated
@@ -220,7 +220,7 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in | |||
$(KUSTOMIZE) build config/default | $(CLUSTER_CLI) apply -f - | |||
|
|||
.PHONY: undeploy | |||
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. | |||
undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't delete kustomize dependency as well, this is needed
@@ -34,6 +34,7 @@ import ( | |||
"k8s.io/client-go/tools/remotecommand" | |||
ctrl "sigs.k8s.io/controller-runtime" | |||
"sigs.k8s.io/controller-runtime/pkg/client" | |||
"sigs.k8s.io/controller-runtime/pkg/log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this package really needed? If no function is using it, it's not needed, else a warning will appear when compiling the binary
@@ -1,4 +1,4 @@ | |||
FROM quay.io/operator-framework/ansible-operator:v1.36.1 | |||
FROM quay.io/operator-framework/ansible-operator:v1.37.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version/release below need to be bumped too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the original values we have, this doesn't need to be changed.
@@ -7,4 +7,4 @@ metadata: | |||
features.operators.openshift.io/token-auth-aws: "false" | |||
features.operators.openshift.io/token-auth-azure: "false" | |||
features.operators.openshift.io/token-auth-gcp: "false" | |||
olm.skipRange: ">=0.2.22 <=0.2.25" | |||
olm.skipRange: ">=0.2.22 <=0.2.26" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lower range must be updated to 0.2.23 too
No description provided.