Skip to content
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

fix: add finalizers to canaries #1219

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

vbelouso
Copy link
Contributor

@vbelouso vbelouso commented Jun 14, 2022

Hi,
I have an issue when using Flagger in OpenShift.
Installation command:

helm upgrade -i flagger flagger/flagger \
--namespace=istio-system \
--set crd.create=false \
--set meshProvider=istio \
--set metricsServer=http://prometheus:9090

After installation and creation test Canary I see an error message in Flagger pod.

{"level":"info","ts":"2022-06-14T10:01:23.876Z","caller":"controller/events.go:45",
"msg":"reconcileService failed: service catalog-canary.istioinaction create error: 
services \"catalog-canary\" is forbidden: cannot set blockOwnerDeletion if an ownerReference 
refers to a resource you can't set finalizers on: , <nil>","canary":"catalog-release.istioinaction"}

The error was fixed after adding the canaries/finalizers resource to the ClusterRole flagger.

Test environment:
OpenShift v4.8.39 (Kubernetes 1.21)
Flagger 1.21.0

Signed-off-by: Vladimir Belousov vbelouso@redhat.com

@vbelouso vbelouso requested a review from stefanprodan as a code owner June 14, 2022 10:30
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vbelouso
Copy link
Contributor Author

@stefanprodan
Copy link
Member

Yes all 3 files must be kept in sync.

@stefanprodan
Copy link
Member

Please squash both commits and add a sign-off

Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>
@vbelouso vbelouso force-pushed the canaries-finalizers branch from c0e8645 to 21923d6 Compare June 14, 2022 12:19
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @vbelouso

@stefanprodan stefanprodan merged commit aa48ad4 into fluxcd:main Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants