question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot add custom certificates for git hosts because user namespace doesn't have expected annotation

See original GitHub issue

Describe the bug

Tried to add che-git-self-signed-cert using steps from this PR-1222. Failed on step 3 because user namespace doesn’t have che.eclipse.org/workspace-namespace-owner-uid annotation.

Che version

7.45

Steps to reproduce

  1. Create a config map called che-git-self-signed-cert in the namespace where CheCluster resource is stored with contents like this:
apiVersion: v1
metadata:
  name: che-git-self-signed-cert
data:
  githost: somewhere.else
  ca.crt: <<contents of some certificate or any string really for this demonstration purposes >>
  1. Set the spec.server.gitSelfSignedCert property of the CheCluster CR to true.

  2. Observe that in all namespaces marked with the che.eclipse.org/workspace-namespace-owner-uid annotation, there is a new configmap created with a name based on the name and namespace of the CheCluster resource in the form.

Expected behavior

In all namespaces marked with the che.eclipse.org/workspace-namespace-owner-uid annotation, there is a new configmap created with a name based on the name and namespace of the CheCluster resource in the form

Runtime

OpenShift

Screenshots

No response

Installation method

OperatorHub

Environment

Linux

Logs

devworkspace-webhook-server-6dc696f87-g9l2p-webhook-server.log devworkspace-controller-manager-6c7b746c78-djkvk-devworkspace-controller.log

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
dmytro-ndpcommented, Apr 29, 2022

@metlos: thank you for the fix! Your commit above should be cherry-picked into 7.16.x branch to be available in DS 3.0.0.

1reaction
tolushacommented, Apr 28, 2022

@SkorikSergey The ConfigMap must have app.kubernetes.io/part-of=che.eclipse.org label. Otherwise che-operator won’t recognize it. Pls see doc https://github.com/eclipse/che/issues/21327#issuecomment-1109816272

Read more comments on GitHub >

github_iconTop Results From Across the Web

Referring to TLS secret from other namespace (i.e. not the ...
When trying to use a TLS certificate using <namespace>/<secretName> pattern in tls section of ingress definition, Nginx controller still ...
Read more >
Unable to resolve "unable to get local issuer certificate" using ...
This problem is occuring because git cannot complete the https handshake with the git server were the repository you are trying to access...
Read more >
Configure SSL for the GitLab Linux package
Manually configure HTTPS with your own certificates. If you use a proxy, load balancer or some other external device to terminate SSL for...
Read more >
RHSA-2022:0056 - Security Advisory - Red Hat 客户门户网站
标题. Red Hat OpenShift Container Platform release 4.10.3 is now available with updates to packages and images that fix several bugs and add...
Read more >
git-config Documentation - Git
git -config - Get and set repository or global options ... An example to use customized color from the configuration in your script:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found