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

Helm-based operator does not reconcile operand with base image v1.34.0 #6706

Closed
bitscuit opened this issue Mar 15, 2024 · 3 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. language/helm Issue is related to a Helm operator project triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@bitscuit
Copy link

Bug Report

What did you do?

Updated the operator-sdk base image for my helm-based operator to use v1.34.0. After installing my operator, it did not reconcile its operand. No status is shown in the CR nor are there logs in the operator pod showing that it reconciled the CR.

Link to my operator.

Steps to build and run operator for testing, assuming you cloned the repo:

  1. Ensure that you check out the community-issue branch
  2. export QUAY_REGISTRY=<your personal registry>
  3. export DEV_REGISTRY=$QUAY_REGISTRY
  4. make build-image-dev
  5. Edit the operator image in the CSV to use the image you just built
  6. make build-bundle-image
  7. make run-bundle
  8. Notice that the CR has no status, and the logs of the operator show no indication it reconciled anything

This issue exists in v1.34.1 as well. If I change the base image in the Dockerfile to v1.33.0, this error does not exist.

What did you expect to see?

The operator reconciles its operand

What did you see instead? Under which circumstances?

After creating an operand, the operator does not reconcile it

Environment

Operator type:

/language helm

Kubernetes cluster type:

$ operator-sdk version

$ operator-sdk version
operator-sdk version: "v1.29.0", commit: "78c564319585c0c348d1d7d9bbfeed1098fab006", kubernetes version: "1.26.0", go version: "go1.19.9", GOOS: "linux", GOARCH: "amd64"

$ go version (if language is Go)

$ kubectl version

Possible Solution

Additional context

Tested with v1.33.0 base image, and the issue is not present

@openshift-ci openshift-ci bot added the language/helm Issue is related to a Helm operator project label Mar 15, 2024
@bitscuit
Copy link
Author

/kind bug

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 15, 2024
@sigfodr
Copy link

sigfodr commented Apr 18, 2024

@bitscuit are you monitoring a specific namespace or all namespaces? I am having an issue similar to yours where the v1.34 base image works fine when monitoring all namespaces, but when I specify a namespace, I see the same issue. After applying my CR file, nothing happens, and nothing appears in the log.

This issue also occurs when running the nginx helm operator tutorial at https://sdk.operatorframework.io/docs/building-operators/helm/tutorial/. The last commit that works is 28a6aa093acb0580066bd8a3e686bd5238a0b9f9, and it fails in the next commit at 1fd7f4dafc954ecc79326d042b42e7d420699f44.

@acornett21 acornett21 added the triage/duplicate Indicates an issue is a duplicate of other open issue. label May 7, 2024
@acornett21
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. language/helm Issue is related to a Helm operator project triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

3 participants