Skip to content
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: defaulting to in-cluster is misleading for disconnected clusters #10132

Merged
merged 4 commits into from Oct 10, 2022

Conversation

rbreeze
Copy link
Member

@rbreeze rbreeze commented Jul 28, 2022

Signed-off-by: Remington Breeze remington@breeze.software

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

Signed-off-by: Remington Breeze <remington@breeze.software>
@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Base: 45.62% // Head: 45.62% // No change to project coverage 👍

Coverage data is based on head (b6d2754) compared to base (cac0de1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10132   +/-   ##
=======================================
  Coverage   45.62%   45.62%           
=======================================
  Files         236      236           
  Lines       28699    28699           
=======================================
  Hits        13093    13093           
  Misses      13805    13805           
  Partials     1801     1801           
Impacted Files Coverage Δ
util/settings/settings.go 51.25% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jessesuen
Copy link
Member

jessesuen commented Jul 28, 2022

Maybe this is a dumb question but will it have any impact of not showing the in-cluster cluster correctly (e.g. showing them as Unknown)?

@rbreeze
Copy link
Member Author

rbreeze commented Jul 28, 2022

Not a dumb question at all, I'll have to double check to make sure that's not the case. Thanks for catching that.

It appears the local cluster is explicitly named in-cluster in the API:

localCluster = appv1.Cluster{

which would lead me to believe this name var would be populated explicitly as well, but I want to test to confirm first.

@crenshaw-dev
Copy link
Collaborator

@rbreeze did you have a chance to test? Would be happy to review.

@rbreeze
Copy link
Member Author

rbreeze commented Sep 26, 2022

@crenshaw-dev tested! in-cluster is explicitly set when the cluster is in fact in-cluster.

@rbreeze rbreeze enabled auto-merge (squash) October 10, 2022 18:23
@rbreeze rbreeze merged commit 16613fe into argoproj:master Oct 10, 2022
@rbreeze rbreeze deleted the in-cluster-unknown branch October 10, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants