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

GitOps Operator 1.6 spams DISABLE_DEX deprecation events #362

Open
benruland opened this issue Aug 17, 2022 · 1 comment
Open

GitOps Operator 1.6 spams DISABLE_DEX deprecation events #362

benruland opened this issue Aug 17, 2022 · 1 comment

Comments

@benruland
Copy link

benruland commented Aug 17, 2022

Describe the bug
OpenShift GitOps 1.6 includes deprecation of the environment variable DISABLE_DEX. The Operator now emits kubernetes events without having set the environment variable at any place:

$ oc get events -n argocd
LAST SEEN   TYPE      REASON               OBJECT                                             MESSAGE
<unknown>   Warning   DeprecationNotice    /argocd                                            `DISABLE_DEX` is deprecated, and support will be removed in Argo CD Operator v0.6.0/OpenShift GitOps v1.9.0. Dex can be enabled/disabled through `.spec.sso`
<unknown>   Warning   DeprecationNotice    /argocd                                            `DISABLE_DEX` is deprecated, and support will be removed in Argo CD Operator v0.6.0/OpenShift GitOps v1.9.0. Dex can be enabled/disabled through `.spec.sso`

These events do not include a timestamp and are hence shown at the very top in the OpenShift web console. This pollutes the UI.

Assumed root cause: When installing the operator using OLM, the environment DISABLE_DEX variable is currently set in the operator deployment by the CSV:

- name: DISABLE_DEX
value: "false"

To Reproduce
Steps to reproduce the behavior:

  1. Install OpenShift GitOps 1.6 in OpenShift 4.10 using OLM
  2. Create an Argo CD Custom Resource that includs Dex
  3. During Reconcilation Loop, in the namespace of the Argo CD CR, the above shown events can be observed

Expected behavior

  1. OpenShift GitOps Operator CSV does not include the deprecated variable
  2. Emitted deprecation events include a timestamp

Additional context

$ oc get csv openshift-gitops-operator.v1.6.0 -n openshift-operators -o jsonpath='{.spec.install.spec.deployments[0].spec.template.spec.containers[0].env[?(@.name == "DISABLE_DEX")]}'

$ oc get deployment gitops-operator-controller-manager -n openshift-operators -o yaml | grep DISABLE_DEX -A 1
        - name: DISABLE_DEX
          value: "false"
wanderboessenkool added a commit to wanderboessenkool/gitops-operator that referenced this issue Aug 23, 2022
- Remove DISABLE_DEX environment variable from the
  gitops-operator-controller-manager manifest in the
  clusterserviceversion manifest.
- Fixes redhat-developer#362
wanderboessenkool added a commit to wanderboessenkool/gitops-operator that referenced this issue Aug 23, 2022
- Remove DISABLE_DEX environment variable from the
  gitops-operator-controller-manager manifest in the
  clusterserviceversion manifest.
- Fixes redhat-developer#362

Signed-off-by: Wander Boessenkool <wander.boessenkool@hcs-company.com>
@jaideepr97
Copy link
Collaborator

jaideepr97 commented Aug 23, 2022

hi @benruland thanks for creating the issue
We are aware of this, and it is being tracked on our JIRA board
as a workaround you can remove or unset the DISABLE_DEX env var from your subscription for now

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 a pull request may close this issue.

2 participants