argocd-operator: Dex can't be disabled
Describe the bug
Hi, the documentation describing how to disable Dex is not correct. The following subscription configuration does NOT disable it:
To Reproduce
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: argocd-operator
spec:
# channel: alpha
name: argocd-operator
# source: argocd-catalog
source: operatorhubio-catalog
sourceNamespace: olm
config:
env:
- name: DISABLE_DEX
value: "true"
- name: ARGOCD_CLUSTER_CONFIG_NAMESPACES
value: argocd
Expected behavior
The configuration to stop dex from starting.
Additional context
Deployed version: v2.3.3-07ac038
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21
@Morriz Thanks a lot.
I redeployed everything fresh and could not reproduce it. I think this can be closed until we run into it again.
@Morriz @wtam2018 @saumeya
Sorry for the confusion. I should have provided more details on the steps I followed to test it.
I was able to reproduce the issue on the latest version of Argo CD Operator on my K8s cluster(
v1.23.4
).Steps Followed:
I expect operator to delete the dex pods from all the namespaces in which Argo CD is installed.
Note: After thinking hard, I understood why @saumeya was not able to reproduce the issue. I used the Argo CD CR configuration from examples folder that is similar to GitOps Operator (has
.spec.dex.openShiftOAuth: true
), I think @saumeya did not have this configuration in her CR or may be she is using the OOTB Argo CD CR that comes by installing Argo CD from OpenShift console.This issue can be fixed in two ways.
.spec.dex.openshiftOAuth: true
(or).spec.dex.openShiftOAuth: true
(if present) along with addingDISABLE_DEX
to subscription resource.I can reproduce the error. Thanks for reporting the issue 😃