-
Notifications
You must be signed in to change notification settings - Fork 97
fix: ensure ca-certs-merged CM is resynced when disableWorkspaceCaBundleMount changed
#2041
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
Conversation
|
Skipping CI for Draft Pull Request. |
Signed-off-by: Anatolii Bazko <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2041 +/- ##
==========================================
+ Coverage 58.22% 58.32% +0.10%
==========================================
Files 90 90
Lines 12401 12312 -89
==========================================
- Hits 7220 7181 -39
+ Misses 4679 4634 -45
+ Partials 502 497 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
disableWorkspaceCaBundleMount updated
disableWorkspaceCaBundleMount updatedca-certs-merged CM is resynced when disableWorkspaceCaBundleMount updated
ca-certs-merged CM is resynced when disableWorkspaceCaBundleMount updatedca-certs-merged CM is resynced when disableWorkspaceCaBundleMount changed
akurinnoy
left a comment
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.
LGTM
|
Tested it with following steps and it worked as expected ✔️ :
cat > /tmp/cr-patch.yaml <<EOF
apiVersion: org.eclipse.che/v2
kind: CheCluster
spec: {}
EOF
kubectl get cm ca-certs-merged -neclipse-che -o yaml
...
kind: ConfigMap
metadata:
annotations:
controller.devfile.io/mount-as: subpath
controller.devfile.io/mount-path: /etc/pki/ca-trust/extracted/pem
kubectl edit checluster -n eclipse-che
# Add the following to devEnvironments
trustedCerts:
disableWorkspaceCaBundleMount: true
kubectl get cm ca-certs-merged -neclipse-che -o yaml
...
kind: ConfigMap
metadata:
annotations:
controller.devfile.io/mount-access-mode: "0444"
controller.devfile.io/mount-as: file
controller.devfile.io/mount-path: /public-certs |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rohanKanojia, tolusha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What does this PR do?
tls-ca-bundle.pemfileScreenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
eclipse-che/che#23533
How to test this PR?
on Minikube
disableWorkspaceCaBundleMountfieldEnsure that
ca-certs-mergedCM annotations updated as accordingly.PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or referenceandHow to test this PRcompletedReviewers
Reviewers, please comment how you tested the PR when approving it.