Class ImagePolicySpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ImagePolicySpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ImagePolicySpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ImagePolicySpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ImagePolicySpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ImagePolicySpec is the specification of the ImagePolicy CRD.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImagePolicySpec()No args constructor for use in serializationImagePolicySpec(Policy policy, List<String> scopes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagePolicySpecBuilderedit()Map<String,Object>getAdditionalProperties()PolicygetPolicy()ImagePolicySpec is the specification of the ImagePolicy CRD.List<String>getScopes()scopes is a required field that defines the list of image identities assigned to a policy.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPolicy(Policy policy)ImagePolicySpec is the specification of the ImagePolicy CRD.voidsetScopes(List<String> scopes)scopes is a required field that defines the list of image identities assigned to a policy.ImagePolicySpecBuildertoBuilder()
-
-
-
Method Detail
-
getPolicy
public Policy getPolicy()
ImagePolicySpec is the specification of the ImagePolicy CRD.
-
setPolicy
public void setPolicy(Policy policy)
ImagePolicySpec is the specification of the ImagePolicy CRD.
-
getScopes
public List<String> getScopes()
scopes is a required field that defines the list of image identities assigned to a policy. Each item refers to a scope in a registry implementing the "Docker Registry HTTP API V2". Scopes matching individual images are named Docker references in the fully expanded form, either using a tag or digest. For example, docker.io/library/busybox:latest (not busybox:latest). More general scopes are prefixes of individual-image scopes, and specify a repository (by omitting the tag or digest), a repository namespace, or a registry host (by only specifying the host name and possibly a port number) or a wildcard expression starting with `*.`, for matching all subdomains (not including a port number). Wildcards are only supported for subdomain matching, and may not be used in the middle of the host, i.e. *.example.com is a valid case, but example*.*.com is not. This support no more than 256 scopes in one object. If multiple scopes match a given image, only the policy requirements for the most specific scope apply. The policy requirements for more general scopes are ignored. In addition to setting a policy appropriate for your own deployed applications, make sure that a policy on the OpenShift image repositories quay.io/openshift-release-dev/ocp-release, quay.io/openshift-release-dev/ocp-v4.0-art-dev (or on a more general scope) allows deployment of the OpenShift images required for cluster operation. If a scope is configured in both the ClusterImagePolicy and the ImagePolicy, or if the scope in ImagePolicy is nested under one of the scopes from the ClusterImagePolicy, only the policy from the ClusterImagePolicy will be applied. For additional details about the format, please refer to the document explaining the docker transport field, which can be found at: https://github.com/containers/image/blob/main/docs/containers-policy.json.5.md#docker
-
setScopes
public void setScopes(List<String> scopes)
scopes is a required field that defines the list of image identities assigned to a policy. Each item refers to a scope in a registry implementing the "Docker Registry HTTP API V2". Scopes matching individual images are named Docker references in the fully expanded form, either using a tag or digest. For example, docker.io/library/busybox:latest (not busybox:latest). More general scopes are prefixes of individual-image scopes, and specify a repository (by omitting the tag or digest), a repository namespace, or a registry host (by only specifying the host name and possibly a port number) or a wildcard expression starting with `*.`, for matching all subdomains (not including a port number). Wildcards are only supported for subdomain matching, and may not be used in the middle of the host, i.e. *.example.com is a valid case, but example*.*.com is not. This support no more than 256 scopes in one object. If multiple scopes match a given image, only the policy requirements for the most specific scope apply. The policy requirements for more general scopes are ignored. In addition to setting a policy appropriate for your own deployed applications, make sure that a policy on the OpenShift image repositories quay.io/openshift-release-dev/ocp-release, quay.io/openshift-release-dev/ocp-v4.0-art-dev (or on a more general scope) allows deployment of the OpenShift images required for cluster operation. If a scope is configured in both the ClusterImagePolicy and the ImagePolicy, or if the scope in ImagePolicy is nested under one of the scopes from the ClusterImagePolicy, only the policy from the ClusterImagePolicy will be applied. For additional details about the format, please refer to the document explaining the docker transport field, which can be found at: https://github.com/containers/image/blob/main/docs/containers-policy.json.5.md#docker
-
edit
public ImagePolicySpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ImagePolicySpecBuilder>
-
toBuilder
public ImagePolicySpecBuilder toBuilder()
-
-