Skip to content

Commit

Permalink
Generated changes for image import reference-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
soltysh committed Mar 10, 2017
1 parent 70f9f87 commit 471845c
Show file tree
Hide file tree
Showing 15 changed files with 310 additions and 230 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 17 additions & 13 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -27449,12 +27449,29 @@
"$ref": "v1.TagImportPolicy",
"description": "ImportPolicy is the policy controlling how the image is imported"
},
"referencePolicy": {
"$ref": "v1.TagReferencePolicy",
"description": "ReferencePolicy defines how other components should consume the image"
},
"includeManifest": {
"type": "boolean",
"description": "IncludeManifest determines if the manifest for each image is returned in the response"
}
}
},
"v1.TagReferencePolicy": {
"id": "v1.TagReferencePolicy",
"description": "TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"description": "Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable."
}
}
},
"v1.ImageStreamImportStatus": {
"id": "v1.ImageStreamImportStatus",
"description": "ImageStreamImportStatus contains information about the status of an image stream import.",
Expand Down Expand Up @@ -27562,19 +27579,6 @@
}
}
},
"v1.TagReferencePolicy": {
"id": "v1.TagReferencePolicy",
"description": "TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"description": "Type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated Docker registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable."
}
}
},
"v1.ImageStreamStatus": {
"id": "v1.ImageStreamStatus",
"description": "ImageStreamStatus contains information about the state of this image stream.",
Expand Down
4 changes: 4 additions & 0 deletions api/swagger-spec/openshift-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -51573,6 +51573,10 @@
"description": "IncludeManifest determines if the manifest for each image is returned in the response",
"type": "boolean"
},
"referencePolicy": {
"description": "ReferencePolicy defines how other components should consume the image",
"$ref": "#/definitions/v1.TagReferencePolicy"
},
"to": {
"description": "To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used",
"$ref": "#/definitions/v1.LocalObjectReference"
Expand Down
2 changes: 2 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -10912,6 +10912,8 @@ _oc_import-image()
local_nonpersistent_flags+=("--from=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--as=")
flags+=("--certificate-authority=")
flags_with_completion+=("--certificate-authority")
Expand Down
2 changes: 2 additions & 0 deletions contrib/completions/bash/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -16148,6 +16148,8 @@ _openshift_cli_import-image()
local_nonpersistent_flags+=("--from=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--as=")
flags+=("--azure-container-registry-config=")
flags+=("--certificate-authority=")
Expand Down
2 changes: 2 additions & 0 deletions contrib/completions/zsh/oc
Original file line number Diff line number Diff line change
Expand Up @@ -11060,6 +11060,8 @@ _oc_import-image()
local_nonpersistent_flags+=("--from=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--as=")
flags+=("--certificate-authority=")
flags_with_completion+=("--certificate-authority")
Expand Down
2 changes: 2 additions & 0 deletions contrib/completions/zsh/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -16296,6 +16296,8 @@ _openshift_cli_import-image()
local_nonpersistent_flags+=("--from=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--as=")
flags+=("--azure-container-registry-config=")
flags+=("--certificate-authority=")
Expand Down
Loading

0 comments on commit 471845c

Please sign in to comment.