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

make K8.getKubeConfig() private #1179

Closed
Tracked by #50
jeromy-cannon opened this issue Jan 17, 2025 · 1 comment · Fixed by #1182
Closed
Tracked by #50

make K8.getKubeConfig() private #1179

jeromy-cannon opened this issue Jan 17, 2025 · 1 comment · Fixed by #1182
Assignees
Labels
P1 High priority issue. Required to be completed in the assigned milestone. released

Comments

@jeromy-cannon
Copy link
Contributor

jeromy-cannon commented Jan 17, 2025

The K8.getKubeConfig() method violates the Law of Demeter.

  • create a k8.getCurrentContext()
  • create a k8.getCurrentClusterName()
  • make k8.getKubeConfig() private
  • update places using k8.getKubeConfig() to leverage the two new methods
@jeromy-cannon jeromy-cannon added the P1 High priority issue. Required to be completed in the assigned milestone. label Jan 17, 2025
@swirlds-automation
Copy link
Contributor

🎉 This issue has been resolved in version 0.34.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority issue. Required to be completed in the assigned milestone. released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants