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

Load k8s resources from a manifest file and operate on those resources. #349

Closed
swarupdonepudi opened this issue Sep 26, 2017 · 3 comments
Closed

Comments

@swarupdonepudi
Copy link

This will make it easy for users of the client library to replicate kubectl create -f <manifest.yml> functionality in python modules. Java client offers this functionality with client.load("manifest.yml) function.

@SmilentRhino
Copy link

  1. Official java client and python client are generated by swagger code-gen, kubernetes-client/gen, the structure of two java client libraries are quite different.

  2. But if you just want the create function, you can do the function mapping, find the write function name by parsing the manifest.yaml and swagger.json.
    Here is a sample:
    https://github.com/SmilentRhino/kubenetes_ops_scripts/blob/master/kube_create_draft.py
    The code is ugly, and can't use directly, just to provide some thoughts.

  3. IMHO, golang is the only right way for managing kubernetes now. There is not equial of kubectl apply now in other library.
    kubectl apply can act as a diff tool, which is quite import for managing kubernetes as code.

  4. You might be interested in helm and [ksonnet)(https://github.com/ksonnet)

@micw523
Copy link
Contributor

micw523 commented Nov 9, 2018

/close via #655

@swarupdonepudi
Copy link
Author

I am closing this issue since it has already been merged. Thanks @micw523

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

No branches or pull requests

3 participants