-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: [Helm] Select ClusterIssuer by label #1037
Conversation
Signed-off-by: Mykola Morhun <[email protected]>
Signed-off-by: Mykola Morhun <[email protected]>
src/constants.ts
Outdated
@@ -8,6 +8,9 @@ | |||
* SPDX-License-Identifier: EPL-2.0 | |||
**********************************************************************/ | |||
|
|||
// labels | |||
export const CHE_RELATED_COMPONENT_LABEL = 'app=che' |
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.
Pls remove label usage.
If am not sure about appropriate label
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.
I would like to keep the label. It gives better user experience, imo. But I agree, that the label itself should be changed
Signed-off-by: Mykola Morhun <[email protected]>
Signed-off-by: Mykola Morhun <[email protected]>
const clusterIssuersList: {items?: any[]} = res.body | ||
|
||
return clusterIssuersList.items || [] |
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.
const clusterIssuersList: {items?: any[]} = res.body | |
return clusterIssuersList.items || [] | |
return res.body.items || [] |
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.
We imply items
field at by const clusterIssuersList: {items?: any[]} = res.body
. I think it should be kept.
Signed-off-by: Mykola Morhun <[email protected]>
@@ -65,6 +67,8 @@ export class CertManagerTasks { | |||
throw new Error('Cert Manager should be deployed before.') | |||
} | |||
|
|||
ctx.certManagerK8sApiVersion = await this.kubeHelper.getCertManagerK8sApiVersion() |
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.
We should move this to Set up Eclipse Che certificates issuer
task due to enabled: ctx => ctx.certManagerInstalled,
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.
Cert Manager will be present at that step. The check is done just for case.
@mmorhun: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Signed-off-by: Mykola Morhun [email protected]
What does this PR do?
Makes chectl to select Cert-Managers's ClusterIssuer by label instead of creating own one.
The new behaviour:
What issues does this PR fix or reference?
eclipse-che/che#18450
How to test this PR?
app=che
labelPR 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.