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

Simplify configuration #125

Closed
wants to merge 3 commits into from
Closed

Simplify configuration #125

wants to merge 3 commits into from

Conversation

kke
Copy link
Contributor

@kke kke commented May 22, 2019

Addresses parts of #121

  • The Dry-Struct -mapped K8s::Config is replaced with an unvalidated and unstructured hash. Validating kubeconfig -files is not in the scope of k8s-client. In the future, this can lead to dropping the dry-dependencies, making the client easier to use in projects that have dry-dependecies of their own, which seem to generate a lot of dependency issues.
  • Instead of RecursiveOpenStruct, the config uses a simple selfmade hash-extension that pretty much works the same. Later the dependency can be dropped and api-responses returned as these dot-notated hashes.
  • Tries the /etc/kubernetes/admin.conf and /etc/kubernetes/kubelet.conf when autoconfiguring, making k8s-client work with zero config when running on kube nodes.
  • Some of the config code was copied and adapted from Pharos::Kube::Config which handles pretty much the same task with considerably less code than k8s before this pr.

Specs pass but still needs some cleanup and yardoc fixes.

@kke kke added chore enhancement New feature or request labels May 22, 2019
@kke kke marked this pull request as ready for review August 7, 2019 10:31
@kke
Copy link
Contributor Author

kke commented Aug 7, 2019

Outdated and weird, reimplement some other way.

@kke kke closed this Aug 7, 2019
@kke kke deleted the chore/simplify_config branch August 7, 2019 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant