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

Add guidelines about difference between 'oc create' and 'oc apply' #82253

Open
apinnick opened this issue Sep 23, 2024 · 0 comments
Open

Add guidelines about difference between 'oc create' and 'oc apply' #82253

apinnick opened this issue Sep 23, 2024 · 0 comments

Comments

@apinnick
Copy link
Contributor

apinnick commented Sep 23, 2024

Which section(s) is the issue in?

Declarative config examples

What needs fixing?

AFAIK, the imperative command 'oc create' fails if the user uses it to update a resource that already exists. Yet, I see 'oc create' used in exactly such a situation. I think it would be safer to use 'oc apply' in most cases, since it will create and update resources. I am not sure that most writers understand the difference between 'oc create' and 'oc apply'. Some guidance would help.

@apinnick apinnick changed the title Suggest adding note or warning to "Declarative config examples" Add guidelines about difference between 'oc create' and 'oc apply' Sep 23, 2024
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

1 participant