Skip to content

Commit 2c1674c

Browse files
committed
Generated changes for image import reference-policy
1 parent dbab606 commit 2c1674c

15 files changed

+310
-230
lines changed

api/protobuf-spec/github_com_openshift_origin_pkg_image_api_v1.proto

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/swagger-spec/oapi-v1.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27449,12 +27449,29 @@
2744927449
"$ref": "v1.TagImportPolicy",
2745027450
"description": "ImportPolicy is the policy controlling how the image is imported"
2745127451
},
27452+
"referencePolicy": {
27453+
"$ref": "v1.TagReferencePolicy",
27454+
"description": "ReferencePolicy defines how other components should consume the image"
27455+
},
2745227456
"includeManifest": {
2745327457
"type": "boolean",
2745427458
"description": "IncludeManifest determines if the manifest for each image is returned in the response"
2745527459
}
2745627460
}
2745727461
},
27462+
"v1.TagReferencePolicy": {
27463+
"id": "v1.TagReferencePolicy",
27464+
"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.",
27465+
"required": [
27466+
"type"
27467+
],
27468+
"properties": {
27469+
"type": {
27470+
"type": "string",
27471+
"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."
27472+
}
27473+
}
27474+
},
2745827475
"v1.ImageStreamImportStatus": {
2745927476
"id": "v1.ImageStreamImportStatus",
2746027477
"description": "ImageStreamImportStatus contains information about the status of an image stream import.",
@@ -27562,19 +27579,6 @@
2756227579
}
2756327580
}
2756427581
},
27565-
"v1.TagReferencePolicy": {
27566-
"id": "v1.TagReferencePolicy",
27567-
"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.",
27568-
"required": [
27569-
"type"
27570-
],
27571-
"properties": {
27572-
"type": {
27573-
"type": "string",
27574-
"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."
27575-
}
27576-
}
27577-
},
2757827582
"v1.ImageStreamStatus": {
2757927583
"id": "v1.ImageStreamStatus",
2758027584
"description": "ImageStreamStatus contains information about the state of this image stream.",

api/swagger-spec/openshift-openapi-spec.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51573,6 +51573,10 @@
5157351573
"description": "IncludeManifest determines if the manifest for each image is returned in the response",
5157451574
"type": "boolean"
5157551575
},
51576+
"referencePolicy": {
51577+
"description": "ReferencePolicy defines how other components should consume the image",
51578+
"$ref": "#/definitions/v1.TagReferencePolicy"
51579+
},
5157651580
"to": {
5157751581
"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",
5157851582
"$ref": "#/definitions/v1.LocalObjectReference"

contrib/completions/bash/oc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10912,6 +10912,8 @@ _oc_import-image()
1091210912
local_nonpersistent_flags+=("--from=")
1091310913
flags+=("--insecure")
1091410914
local_nonpersistent_flags+=("--insecure")
10915+
flags+=("--reference-policy=")
10916+
local_nonpersistent_flags+=("--reference-policy=")
1091510917
flags+=("--as=")
1091610918
flags+=("--certificate-authority=")
1091710919
flags_with_completion+=("--certificate-authority")

contrib/completions/bash/openshift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16148,6 +16148,8 @@ _openshift_cli_import-image()
1614816148
local_nonpersistent_flags+=("--from=")
1614916149
flags+=("--insecure")
1615016150
local_nonpersistent_flags+=("--insecure")
16151+
flags+=("--reference-policy=")
16152+
local_nonpersistent_flags+=("--reference-policy=")
1615116153
flags+=("--as=")
1615216154
flags+=("--azure-container-registry-config=")
1615316155
flags+=("--certificate-authority=")

contrib/completions/zsh/oc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11060,6 +11060,8 @@ _oc_import-image()
1106011060
local_nonpersistent_flags+=("--from=")
1106111061
flags+=("--insecure")
1106211062
local_nonpersistent_flags+=("--insecure")
11063+
flags+=("--reference-policy=")
11064+
local_nonpersistent_flags+=("--reference-policy=")
1106311065
flags+=("--as=")
1106411066
flags+=("--certificate-authority=")
1106511067
flags_with_completion+=("--certificate-authority")

contrib/completions/zsh/openshift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16296,6 +16296,8 @@ _openshift_cli_import-image()
1629616296
local_nonpersistent_flags+=("--from=")
1629716297
flags+=("--insecure")
1629816298
local_nonpersistent_flags+=("--insecure")
16299+
flags+=("--reference-policy=")
16300+
local_nonpersistent_flags+=("--reference-policy=")
1629916301
flags+=("--as=")
1630016302
flags+=("--azure-container-registry-config=")
1630116303
flags+=("--certificate-authority=")

0 commit comments

Comments
 (0)