Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

fix: only use 1st cfg file when logging in, dont add all ctxts (#966) #971

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

adietish
Copy link
Contributor

@adietish adietish commented Feb 3, 2025

@adietish adietish self-assigned this Feb 3, 2025
Copy link

openshift-ci bot commented Feb 3, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@@ -11,7 +11,7 @@ gradleVersion=8.5

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
platformBundledPlugins=com.intellij.java, org.jetbrains.plugins.yaml, org.jetbrains.plugins.terminal
platformPlugins=com.redhat.devtools.intellij.telemetry:1.2.1.62, com.redhat.devtools.intellij.kubernetes:1.4.0.4
platformPlugins=com.redhat.devtools.intellij.telemetry:1.2.1.62
Copy link
Contributor Author

@adietish adietish Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no dependency of openshift to kubernetes. The only thing that we may want is that people would install kubernetes plugin when installing the openshift plugin. We need to remove the kubernetes plugin 1.4 though for things to compile. Kubernetes 1.4 is using kubernetes-client 6.x and overrides the direct dependency to 7.x causing compilation to fail.

@adietish adietish changed the title fix: only use first config file when logging in, avoid oc adding cont… fix: only use 1st cfg file when logging in, dont add all ctxts (#966) Feb 4, 2025
@adietish adietish requested a review from sbouchet February 5, 2025 11:16
@adietish adietish marked this pull request as ready for review February 5, 2025 11:16
args.add("login");
args.add(url);
args.add("--insecure-skip-tls-verify");
addKubeconfigParameter(args);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main change here. Use --kubeconfig so that the contexts that are defined in the other configs files are not dumped into the first one. Only a new context for the cluster (that we're logging in) is added.

Copy link
Collaborator

@sbouchet sbouchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link

openshift-ci bot commented Feb 6, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbouchet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

openshift-ci bot commented Feb 6, 2025

New changes are detected. LGTM label has been removed.

@adietish adietish added the lgtm label Feb 6, 2025
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Feb 6, 2025
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Feb 6, 2025
Copy link

openshift-ci bot commented Feb 6, 2025

New changes are detected. LGTM label has been removed.

@adietish adietish added the lgtm label Feb 6, 2025
@adietish
Copy link
Contributor Author

adietish commented Feb 6, 2025

/override "ci/prow/e2e-openshift"

Copy link

openshift-ci bot commented Feb 6, 2025

@adietish: Overrode contexts on behalf of adietish: ci/prow/e2e-openshift

In response to this:

/override "ci/prow/e2e-openshift"

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-sigs/prow repository.

@redhat-developer redhat-developer deleted a comment from openshift-ci bot Feb 6, 2025
@redhat-developer redhat-developer deleted a comment from openshift-ci bot Feb 6, 2025
@adietish
Copy link
Contributor Author

adietish commented Feb 6, 2025

/override "Integration UI Tests with Local Kind Cluster Context Report"

Copy link

openshift-ci bot commented Feb 6, 2025

@adietish: Overrode contexts on behalf of adietish: Integration UI Tests with Local Kind Cluster Context Report

In response to this:

/override "Integration UI Tests with Local Kind Cluster Context Report"

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-sigs/prow repository.

Copy link

sonarqubecloud bot commented Feb 6, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
5.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@openshift-merge-bot openshift-merge-bot bot merged commit d3ee695 into redhat-developer:main Feb 6, 2025
18 checks passed
@adietish adietish deleted the issue-966 branch February 6, 2025 16:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using $KUBECONFIG with several files, logging into the cluster dumps all contexts into the default config file
2 participants