Description of problem:
'oc create istag/$ISTAG --dry-run=server' is unexpectedly creating the object from the server this is not expected behavior. - Attempted to create the `istag` resource object by using the `dry-run=server` option. However, the object(image) was actually created from the server. - Conversely, when applied the same `dry-run=server` parameter to other resources, they remained intact and were not created.
Version-Release number of selected component (if applicable):
OCP 4.15
How reproducible:
Try creating the `istag` resource using the `--dry-run=server` option with the server strategy.
Steps to Reproduce:
1. Example with resource ImageStreamTag istag ~~~ $ oc create imagestream dryrun-test --dry-run=server -o yaml -n test1 $ oc get is dryrun-test -n test1 NAME IMAGE REPOSITORY TAGS UPDATED dryrun-test image-registry.xxxxxx.svc:5000/test1/dryrun-test ~~~ ~~~
Actual results:
For `istag` resource, whenever tried to create the image with option `dry-run=server`. It actually got created from the server.
Expected results:
After creating the `istag` using the `--dry-run=server` option with the server strategy, the `istag` object should not create on the server.
Additional info:
This is one bug was not fixed in PR https://github.com/openshift/openshift-apiserver/pull/511
- clones
-
OCPBUGS-35855 'oc delete istag/$ISTAG --dry-run=server' is unexpectedly deleting the object from the server
-
- Verified
-