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

How to "create" #101

Open
jessequinn opened this issue May 11, 2021 · 6 comments
Open

How to "create" #101

jessequinn opened this issue May 11, 2021 · 6 comments

Comments

@jessequinn
Copy link

Reading through your code, i can see that you are using apply cmd from the https://pkg.go.dev/k8s.io/kubectl/pkg/cmd. May be there is a work around, however, in our case we cannot use kubectl apply on our yaml. We have a CRD, a customer resource definition, that fails due to overall size. Therefore, we have to use kubectl create and kubectl replace. Would it be possible to add an additional option(s) to allow for create and possibly replace rather than just apply?

Thanks,

@jessequinn
Copy link
Author

i see a PR #93 from @vigohe however, that has not been put in a release correct?

@alon-dotan-starkware
Copy link
Contributor

I also need this ability, any way I can help to push it forward?
Thanks,

@vigohe
Copy link

vigohe commented Jun 16, 2021

@alon-dotan-starkware you can check my fork, does not work after the first apply if you modify something

@alon-dotan-starkware
Copy link
Contributor

@vigohe
Currently im bit struggling to build and install it locally... any chance you can share detailed instructions to build and install the plugin locally?
Thanks

@alon-dotan-starkware
Copy link
Contributor

@vigohe
Im getting the following error No argument or block type is named "force_replace". when try to use the replace flag

@alon-dotan-starkware
Copy link
Contributor

@vigohe @gavinbunney I managed to overcome this issue with the following PR #118
If someone can take a look at the PR I will highly appreciate it,
Thanks

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