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 · 1 comment
Open

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

apinnick opened this issue Sep 23, 2024 · 1 comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

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
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants