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

Setting devWorkspace controllerImage has no effect for airgapped environment #21268

Closed
Tracked by #21395
thenrich opened this issue Mar 16, 2022 · 4 comments
Closed
Tracked by #21395
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator area/devworkspace-operator engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@thenrich
Copy link

Describe the bug

Setting the following in the checluster CRD has no effect:

spec:
  devWorkspace:
    controllerImage: path/to/controller/image

The default devWorkspace controller image is still used.

Che version

7.44@latest

Steps to reproduce

  1. Deploy Che with chectl server:deploy -a operator -b my.domain.org -p k8s --skip-oidc-provider-check --che-operator-cr-patch-yaml=che-cr-patch.yaml --che-operator-image=custom-operator-image

che-cr-patch.yaml:

spec:
  auth:
    externalIdentityProvider: true
    identityProviderURL: ...
    nativeUserMode: true
    oAuthClientName: kubernetes
    oAuthSecret: ...
    openShiftoAuth: false
    updateAdminPassword: true
  devWorkspace:
    controllerImage: path/to/custom/image
  database:
    postgresImage: path/to/custom/image
  server:
    customCheProperties:
      CHE_OIDC_USERNAME__CLAIM: email
    airGapContainerRegistryHostname: custom_host
    airGapContainerRegistryOrganization: custom_org
    devfileRegistryImage:path/to/custom/image
    singleHostGatewayImage: path/to/custom/image
  1. Che deploys successfully and comes online with several custom images
  2. Once devworkspace-controller namespace becomes available, kubectl -n devworkspace-controller describe pods shows the devworkspace-controller container with the default quay.io image and kube-rbac-proxy -- not the image defined by spec.auth.devWorkspace.controllerImage or the airgap host/org.

Expected behavior

devworkspace-controller should honor the controllerImage or use the airgapped registry hostname/org

Runtime

Kubernetes (vanilla)

Screenshots

No response

Installation method

chectl/latest

Environment

Linux, Amazon

Eclipse Che Logs

No response

Additional context

No response

@thenrich thenrich added the kind/bug Outline of a bug - must adhere to the bug report template. label Mar 16, 2022
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 16, 2022
@tolusha
Copy link
Contributor

tolusha commented Mar 16, 2022

Here is a fix overriding controller image eclipse-che/che-operator#1341
Regarding others devworkspace image, I would recommend to patch DW deployment.
Maybe @amisevsk can shed light if DWO can work in an air gapped environment.

@thenrich
Copy link
Author

Thanks @tolusha. I had to make several other changes to get kube-rbac-proxy and the RELATED_IMAGEs to work as well -- see https://github.com/eclipse-che/che-operator/pull/1342/files

@tolusha
Copy link
Contributor

tolusha commented Mar 16, 2022

@thenrich
Thank you! Could you open that PR against main branch?
I will close mine in favor if yours.

@nickboldt nickboldt added severity/P1 Has a major impact to usage or development of the system. area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. team/deploy area/devworkspace-operator and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 17, 2022
@tolusha tolusha mentioned this issue May 13, 2022
49 tasks
@tolusha tolusha added this to the 7.49 milestone May 23, 2022
@tolusha tolusha closed this as completed May 23, 2022
@amisevsk
Copy link
Contributor

Maybe @amisevsk can shed light if DWO can work in an air gapped environment.

I believe DWO has all the pieces required for airgap support, and IIRC @ScrewTSW tested it out a few times without issue, so it shouldn't be a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator area/devworkspace-operator engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants