-
Notifications
You must be signed in to change notification settings - Fork 146
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
K8SPSMDB-1183 bundle generations for psmdb #1681
base: main
Are you sure you want to change the base?
Conversation
bundle.annotations.yaml >"${bundle_directory}/metadata/annotations.yaml" | ||
|
||
# certified-operators | ||
elif [ ${DISTRIBUTION} == 'redhat' ]; then |
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.
[shellcheck (suggestion)] reported by reviewdog 🐶
elif [ ${DISTRIBUTION} == 'redhat' ]; then | |
elif [ "${DISTRIBUTION}" == 'redhat' ]; then |
commit: ce0549c |
|
||
KUSTOMIZE = $(REPO_ROOT)/bin/kustomize | ||
kustomize: ## Download kustomize locally if necessary. | ||
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected]) |
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.
can we update this? I see in github there is v5.5.0 version
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.
we use this version for all our operators in all our makefile. I can check can we update it or not)
tools: tools/$(SYSTEM)/kubectl | ||
tools/$(SYSTEM)/kubectl: | ||
install -d '$(dir $@)' | ||
curl -fSL -o '$@' 'https://dl.k8s.io/release/$(shell curl -Ls https://dl.k8s.io/release/stable-1.21.txt)/bin/$(OS_KERNEL)/$(OS_MACHINE)/kubectl' |
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.
can we update this? stable-1.21
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.
which one do you want to use?
tools: tools/$(SYSTEM)/operator-sdk | ||
tools/$(SYSTEM)/operator-sdk: | ||
install -d '$(dir $@)' | ||
curl -fSL -o '$@' 'https://github.com/operator-framework/operator-sdk/releases/download/v1.19.1/operator-sdk_$(OS_KERNEL)_$(OS_MACHINE)' |
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.
can we update this?
tools: tools/$(SYSTEM)/opm | ||
tools/$(SYSTEM)/opm: | ||
install -d '$(dir $@)' | ||
curl -fSL -o '$@' 'https://github.com/operator-framework/operator-registry/releases/download/v1.33.0/$(OS_KERNEL)-$(OS_MACHINE)-opm' |
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.
can we update this? Also, shoud this be aligned with the version from operator-sdk?
endif | ||
|
||
KUSTOMIZE = $(REPO_ROOT)/bin/kustomize | ||
kustomize: ## Download kustomize locally if necessary. |
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 does not work for me, when I execute make bundles
I get an error in this line:
/bin/bash: ..repos/percona-server-mongodb-operator/bin/kustomize: No such file or directory
Yes, I don't have kustomize in bin/ folder, but this go-get-tool
should be able to download it
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.
I see, I will check it too. And I agree that go-get-tool should download it.
@@ -0,0 +1,6 @@ | |||
1. Set VERSION env variable |
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.
Operator version in format "1.18.0" ?
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.
yes.
@@ -0,0 +1,6 @@ | |||
1. Set VERSION env variable | |||
2. Update rbac and operator in config |
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.
what does this mean?
@@ -0,0 +1,6 @@ | |||
1. Set VERSION env variable | |||
2. Update rbac and operator in config | |||
2. Choose the mode (cluster or namespace) and update bundle/kustomization.yaml and makefile with necessary mode. |
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 we need to update in two places?
also please add a PR description, it'd be great if you put some usage example |
CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
compare/*-oc.yml
)?Config/Logging/Testability