-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat: Traefik plugin #938
feat: Traefik plugin #938
Conversation
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Skipping CI for Draft Pull Request. |
# Conflicts: # Dockerfile
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
# Conflicts: # bundle/nightly/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml # bundle/nightly/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml
/retest |
Signed-off-by: Michal Vala <mvala@redhat.com>
# Conflicts: # Dockerfile
# Conflicts: # bundle/nightly/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml # bundle/nightly/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml # config/manager/manager.yaml
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
# Conflicts: # bundle/nightly/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml # bundle/nightly/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml # config/manager/manager.yaml
/retest |
OpenShift tests are not working right now.. until #947 is merged |
…atibility Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
/retest |
@@ -23,7 +24,8 @@ RUN mkdir -p $GOPATH/restic && \ | |||
curl -sSLo- https://api.github.com/repos/restic/restic/tarball/${RESTIC_TAG} | tar --strip-components=1 -xz -C $GOPATH/restic && \ | |||
cd $GOPATH/restic && go mod vendor && \ | |||
curl -sSLo /tmp/asset-devworkspace-operator.zip https://api.github.com/repos/devfile/devworkspace-operator/zipball/${DEV_WORKSPACE_CONTROLLER_VERSION} && \ | |||
curl -sSLo /tmp/asset-devworkspace-che-operator.zip https://api.github.com/repos/che-incubator/devworkspace-che-operator/zipball/${DEV_WORKSPACE_CHE_OPERATOR_VERSION} | |||
curl -sSLo /tmp/asset-devworkspace-che-operator.zip https://api.github.com/repos/che-incubator/devworkspace-che-operator/zipball/${DEV_WORKSPACE_CHE_OPERATOR_VERSION} && \ | |||
curl -sSLo /tmp/asset-header-rewrite-traefik-plugin.zip https://api.github.com/repos/che-incubator/header-rewrite-traefik-plugin/zipball/${DEV_HEADER_REWRITE_TRAEFIK_PLUGIN} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This requires changed in downstream
https://github.com/redhat-developer/codeready-workspaces-images/blob/crw-2-rhel-8/codeready-workspaces-operator/get-sources.sh#L78-L92
/cc @nickboldt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I've opened a PR redhat-developer/devspaces-images#63
However, I have no idea about the process and how to test that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, I'll merge it. But still blocked in https://issues.redhat.com/browse/CRW-1956 (all the huge changes in che-operator 7.34/main have not yet been implemented in downstream sync scripts) so can't test this yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I'm assuming that in downstream CSV I'll just remove RELATED_IMAGE_single_host_gateway_native_user_mode
because we're not including 2 versions of traefik in the product when one of those is unreleased RC.
I hope the plan is to eventually use traefik 2.5 in both related images?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I'm assuming that in downstream CSV I'll just remove
RELATED_IMAGE_single_host_gateway_native_user_mode
because we're not including 2 versions of traefik in the product when one of those is unreleased RC.
Imho it won't work, che-operator code will complain that it does not know the env variable. I believe you can keep it empty. But why don't keep it there? Yes, it's RC version, but whole nativeUserMode is experimental. Alternatively I think you can set it empty, then nativeUserMode: true
won't work.
I hope the plan is to eventually use traefik 2.5 in both related images?
yes, plan is to have only one stable Traefik in Che, once Traefik 2.5 is released.
/retest |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: skabashnyuk, sparkoo, tolusha The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What does this PR do?
updates deployment of
nativeUserMode
with using traefik plugin to rewrite authorization headerScreenshot/screencast of this PR
What issues does this PR fix or reference?
eclipse-che/che#20070
How to test this PR?
che-gateway-config-header-rewrite-plugin
that should containheaderRewrite.go
with plugin codePR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.