SuccessChanges

Summary

  1. Add lookupPolicy.local to ImageStream and ImageStreamTag (commit: 8c6ad91) (details)
  2. Resolve ImageStreamTag reference properly (commit: 7470bd0) (details)
  3. Allow pods and other Kube objects to easily reference imagestreams (commit: 78da8c7) (details)
  4. Add `oc set image-lookup` command (commit: 8b95e00) (details)
  5. Add --dry-run to import-image and cleanup describe output (commit: e0b865f) (details)
  6. generated: completions (commit: f06a368) (details)
  7. If the stream tag is not found, replace with a local tag reference (commit: e0a924e) (details)
  8. Extended test for local name resolution (commit: 30d02d5) (details)
Commit 8c6ad917cff8180e5f8e2822f1fccd9849385e4a by Clayton Coleman
Add lookupPolicy.local to ImageStream and ImageStreamTag
Will be used to indicate the stream wishes to substitute image
references locally.
(commit: 8c6ad91)
The file was modifiedpkg/image/api/v1/conversion.go (diff)
The file was modifiedpkg/image/api/v1/swagger_doc.go (diff)
The file was modifiedpkg/image/api/v1/types.go (diff)
The file was modifiedpkg/image/api/zz_generated.deepcopy.go (diff)
The file was modifiedpkg/openapi/zz_generated.openapi.go (diff)
The file was modifiedapi/protobuf-spec/github_com_openshift_origin_pkg_image_api_v1.proto (diff)
The file was modifiedpkg/image/api/v1/zz_generated.deepcopy.go (diff)
The file was modifiedpkg/image/api/validation/validation.go (diff)
The file was modifiedpkg/image/api/v1/generated.proto (diff)
The file was modifiedpkg/image/api/v1/generated.pb.go (diff)
The file was modifiedpkg/image/api/v1/zz_generated.conversion.go (diff)
The file was modifiedapi/swagger-spec/oapi-v1.json (diff)
The file was modifiedpkg/image/api/types.go (diff)
The file was modifiedapi/swagger-spec/openshift-openapi-spec.json (diff)
Commit 7470bd028de901dddf32ec942da8fe840d974c65 by Clayton Coleman
Resolve ImageStreamTag reference properly
Also ensure labels and annotations for image stream tag are returned.
(commit: 7470bd0)
The file was modifiedpkg/image/registry/imagestreamtag/rest.go (diff)
The file was modifiedpkg/image/api/helper.go (diff)
Commit 78da8c7aac8d1b874f578e602c0743eda3aba9ba by Clayton Coleman
Allow pods and other Kube objects to easily reference imagestreams
Allow image streams that are flagged a certain way to force image names
like NAME and NAME:TAG (matching a real ISTag in the current namespace)
on pods to be resolved.  This is opt in to avoid breaking existing
users, but judiciously applied would allow a user doing:
    oc run --image=mysql mysql
to get the image stream tag "mysql:latest" resolved on their pods.
This experimentally flags Pods, RS, RC, StatefulSets, and Deployments
for this behavior. Deployments and StatefulSets may not be appropriate.
Cross-namespace security here has to be considered carefully. It
probably can't be done without the willing consent of the namespace
owner (which rules out openshift/ruby) because a malicious actor could
intercept pods running against "randomnamespace/foo" on the hub just by
taking "randomnamespace". NS owner would have to signal they want that
somehow, which is too complex for now.
(commit: 78da8c7)
The file was modifiedpkg/image/admission/imagepolicy/api/v1/defaults.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/api/validation/validation.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/api/v1/swagger_doc.go (diff)
The file was modifiedpkg/cmd/server/api/serialization_test.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/api/types.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/imagepolicy_test.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/rules/rules.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/api/v1/types.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/imagepolicy.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/accept.go (diff)
Commit 8b95e00371330f3c4574ccde8a3a2193de594e78 by Clayton Coleman
Add `oc set image-lookup` command
Allows a caller to toggle the lookup state of an image stream.
(commit: 8b95e00)
The file was modifiedpkg/cmd/cli/cmd/set/set.go (diff)
The file was modifiedpkg/cmd/cli/cmd/importimage.go (diff)
The file was modifiedpkg/cmd/cli/cmd/create/imagestream.go (diff)
The file was addedpkg/cmd/cli/cmd/set/imagelookup.go
Commit e0b865f8e8eded5c2ff31eb066afa95aa6285323 by Clayton Coleman
Add --dry-run to import-image and cleanup describe output
Prints images out as well on import, so that users can see what will be
imported.
(commit: e0b865f)
The file was modifiedpkg/cmd/cli/cmd/tag.go (diff)
The file was modifiedpkg/cmd/cli/describe/helpers.go (diff)
The file was modifiedpkg/cmd/cli/cmd/importimage.go (diff)
The file was modifiedpkg/cmd/cli/describe/describer.go (diff)
The file was modifiedpkg/cmd/cli/describe/describer_test.go (diff)
The file was modifieddocs/man/man1/.files_generated_openshift (diff)
The file was modifiedcontrib/completions/bash/openshift (diff)
The file was modifieddocs/man/man1/.files_generated_oc (diff)
The file was modifiedcontrib/completions/zsh/oc (diff)
The file was addeddocs/man/man1/oc-set-image-lookup.1
The file was modifiedcontrib/completions/zsh/openshift (diff)
The file was modifiedcontrib/completions/bash/oc (diff)
The file was addeddocs/man/man1/openshift-cli-set-image-lookup.1
Commit e0a924eed2644067a084f86aa1012f91d1bd0f8b by Clayton Coleman
If the stream tag is not found, replace with a local tag reference
Ensures that a typo'd tag does not suddenly pull unexpected images.
(commit: e0a924e)
The file was modifiedpkg/image/admission/imagepolicy/imagepolicy.go (diff)
The file was modifiedpkg/image/admission/imagepolicy/imagepolicy_test.go (diff)
Commit 30d02d5385950cd66e88ce5f053a1786bb3f226b by Clayton Coleman
Extended test for local name resolution
(commit: 30d02d5)
The file was modifiedtest/extended/imageapis/limitrange_admission.go (diff)
The file was addedtest/extended/images/resolve.go
The file was modifiedtest/extended/imageapis/quota_admission.go (diff)
The file was modifiedtest/extended/util/test.go (diff)
The file was modifiedtest/extended/images/prune.go (diff)