이미지 리플렉터 API 참조 v1 (Image reflector API reference v1)
GitOps Toolkit Custom Resource Definitions 문서예요. image.toolkit.fluxcd.io/v1 API 그룹의 타입을 설명하며, OCI 이미지 리포지토리의 메타데이터를 클러스터로 반영하는 데 쓰입니다.
출처: 문서
본문
패키지(Packages):
- image.toolkit.fluxcd.io/v1
image.toolkit.fluxcd.io/v1
패키지 v1은 image API 그룹, 버전 v1의 API 타입을 포함합니다. 이 타입들은 OCI 이미지 리포지토리에서 클러스터로 메타데이터를 반영(reflect)하는 것과 관련이 있어서, 예를 들어 자동화를 위해 참조할 수 있습니다.
리소스 타입(Resource Types):
AlphabeticalPolicy
(Appears on: ImagePolicyChoice)
AlphabeticalPolicy는 알파벳순 정렬 정책을 지정합니다.
| Field | Description | | orderstring | (Optional)Order specifies the sorting order of the tags. Given the letters of the alphabet as tags, ascending order would select Z, and descending order would select A. |
ImagePolicy
ImagePolicy는 imagepolicies API의 스키마입니다.
| Field | Description | | metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadata field. | | specImagePolicySpec | — | | imageRepositoryRefgithub.com/fluxcd/pkg/apis/meta.NamespacedObjectReference | ImageRepositoryRef points at the object specifying the image being scanned | | policyImagePolicyChoice | Policy gives the particulars of the policy to be followed in selecting the most recent image | | filterTagsTagFilter | (Optional)FilterTags enables filtering for only a subset of tags based on a set of rules. If no rules are provided, all the tags from the repository will be ordered and compared. | | digestReflectionPolicyReflectionPolicy | DigestReflectionPolicy governs the setting of the .status.latestRef.digest field.Never: The digest field will always be set to the empty string.IfNotPresent: The digest field will be set to the digest of the elected latest image if the field is empty and the image did not change.Always: The digest field will always be set to the digest of the elected latest image.Default: Never. | | intervalKubernetes meta/v1.Duration | (Optional)Interval is the length of time to wait between refreshing the digest of the latest tag when the reflection policy is set to "Always".Defaults to 10m. | | suspendbool | (Optional)This flag tells the controller to suspend subsequent policy reconciliations. It does not apply to already started reconciliations. Defaults to false. |
status — ImagePolicyStatus
ImagePolicyChoice
(Appears on: ImagePolicySpec)
ImagePolicyChoice는 제공할 수 있는 모든 정책 유형의 합집합(union)입니다.
| Field | Description | | semverSemVerPolicy | (Optional)SemVer gives a semantic version range to check against the tags available. | | alphabeticalAlphabeticalPolicy | (Optional)Alphabetical set of rules to use for alphabetical ordering of the tags. | | numericalNumericalPolicy | (Optional)Numerical set of rules to use for numerical ordering of the tags. |
ImagePolicySpec
(Appears on: ImagePolicy)
ImagePolicySpec은 ImagePolicy를 계산하기 위한 파라미터를 정의합니다.
| Field | Description | | imageRepositoryRefgithub.com/fluxcd/pkg/apis/meta.NamespacedObjectReference | ImageRepositoryRef points at the object specifying the image being scanned | | policyImagePolicyChoice | Policy gives the particulars of the policy to be followed in selecting the most recent image | | filterTagsTagFilter | (Optional)FilterTags enables filtering for only a subset of tags based on a set of rules. If no rules are provided, all the tags from the repository will be ordered and compared. | | digestReflectionPolicyReflectionPolicy | DigestReflectionPolicy governs the setting of the .status.latestRef.digest field.Never: The digest field will always be set to the empty string.IfNotPresent: The digest field will be set to the digest of the elected latest image if the field is empty and the image did not change.Always: The digest field will always be set to the digest of the elected latest image.Default: Never. | | intervalKubernetes meta/v1.Duration | (Optional)Interval is the length of time to wait between refreshing the digest of the latest tag when the reflection policy is set to "Always".Defaults to 10m. | | suspendbool | (Optional)This flag tells the controller to suspend subsequent policy reconciliations. It does not apply to already started reconciliations. Defaults to false. |
ImagePolicyStatus
(Appears on: ImagePolicy)
ImagePolicyStatus는 ImagePolicy의 관찰된 상태를 정의합니다.
| Field | Description | | latestRefImageRef | LatestRef gives the first in the list of images scanned by the image repository, when filtered and ordered according to the policy. | | observedPreviousRefImageRef | (Optional)ObservedPreviousRef is the observed previous LatestRef. It is used to keep track of the previous and current images. | | observedGenerationint64 | (Optional) | | conditions[]Kubernetes meta/v1.Condition | (Optional) | | ReconcileRequestStatusgithub.com/fluxcd/pkg/apis/meta.ReconcileRequestStatus | (Members of ReconcileRequestStatus are embedded into this type.) |
ImageRef
(Appears on: ImagePolicyStatus)
ImageRef는 이미지 참조를 나타냅니다.
| Field | Description | | namestring | Name is the bare image's name. | | tagstring | Tag is the image's tag. | | digeststring | (Optional)Digest is the image's digest. |
ImageRepository
ImageRepository는 imagerepositories API의 스키마입니다.
| Field | Description | | metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadata field. | | specImageRepositorySpec | — | | imagestring | Image is the name of the image repository | | intervalKubernetes meta/v1.Duration | Interval is the length of time to wait between scans of the image repository. | | timeoutKubernetes meta/v1.Duration | (Optional)Timeout for image scanning. Defaults to 'Interval' duration. | | secretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | (Optional)SecretRef can be given the name of a secret containing credentials to use for the image registry. The secret should be created with kubectl create secret docker-registry, or the equivalent. | | proxySecretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | (Optional)ProxySecretRef specifies the Secret containing the proxy configuration to use while communicating with the container registry. | | serviceAccountNamestring | (Optional)ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate the image pull if the service account has attached pull secrets. | | certSecretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | (Optional)CertSecretRef can be given the name of a Secret containing either or both ofa PEM-encoded client certificate (tls.crt) and private key (tls.key);a PEM-encoded CA certificate (ca.crt)and whichever are supplied, will be used for connecting to the registry. The client cert and key are useful if you are authenticating with a certificate; the CA cert is useful if you are using a self-signed server certificate. The Secret must be of type Opaque or kubernetes.io/tls.Note: Support for the caFile, certFile and keyFile keys has been deprecated. | | suspendbool | (Optional)This flag tells the controller to suspend subsequent image scans. It does not apply to already started scans. Defaults to false. | | accessFromgithub.com/fluxcd/pkg/apis/acl.AccessFrom | (Optional)AccessFrom defines an ACL for allowing cross-namespace references to the ImageRepository object based on the caller's namespace labels. | | exclusionList[]string | (Optional)ExclusionList is a list of regex strings used to exclude certain tags from being stored in the database. | | providerstring | (Optional)The provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. When not specified, defaults to 'generic'. | | insecurebool | (Optional)Insecure allows connecting to a non-TLS HTTP container registry. |
status — ImageRepositoryStatus
ImageRepositorySpec
(Appears on: ImageRepository)
ImageRepositorySpec은 이미지 리포지토리(예: fluxcd/flux)를 스캔하기 위한 파라미터를 정의합니다.
| Field | Description | | imagestring | Image is the name of the image repository | | intervalKubernetes meta/v1.Duration | Interval is the length of time to wait between scans of the image repository. | | timeoutKubernetes meta/v1.Duration | (Optional)Timeout for image scanning. Defaults to 'Interval' duration. | | secretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | (Optional)SecretRef can be given the name of a secret containing credentials to use for the image registry. The secret should be created with kubectl create secret docker-registry, or the equivalent. | | proxySecretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | (Optional)ProxySecretRef specifies the Secret containing the proxy configuration to use while communicating with the container registry. | | serviceAccountNamestring | (Optional)ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate the image pull if the service account has attached pull secrets. | | certSecretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | (Optional)CertSecretRef can be given the name of a Secret containing either or both ofa PEM-encoded client certificate (tls.crt) and private key (tls.key);a PEM-encoded CA certificate (ca.crt)and whichever are supplied, will be used for connecting to the registry. The client cert and key are useful if you are authenticating with a certificate; the CA cert is useful if you are using a self-signed server certificate. The Secret must be of type Opaque or kubernetes.io/tls.Note: Support for the caFile, certFile and keyFile keys has been deprecated. | | suspendbool | (Optional)This flag tells the controller to suspend subsequent image scans. It does not apply to already started scans. Defaults to false. | | accessFromgithub.com/fluxcd/pkg/apis/acl.AccessFrom | (Optional)AccessFrom defines an ACL for allowing cross-namespace references to the ImageRepository object based on the caller's namespace labels. | | exclusionList[]string | (Optional)ExclusionList is a list of regex strings used to exclude certain tags from being stored in the database. | | providerstring | (Optional)The provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. When not specified, defaults to 'generic'. | | insecurebool | (Optional)Insecure allows connecting to a non-TLS HTTP container registry. |
ImageRepositoryStatus
(Appears on: ImageRepository)
ImageRepositoryStatus는 ImageRepository의 관찰된 상태를 정의합니다.
| Field | Description | | conditions[]Kubernetes meta/v1.Condition | (Optional) | | observedGenerationint64 | (Optional)ObservedGeneration is the last reconciled generation. | | canonicalImageNamestring | (Optional)CanonicalName is the name of the image repository with all the implied bits made explicit; e.g., docker.io/library/alpine rather than alpine. | | lastScanResultScanResult | (Optional)LastScanResult contains the number of fetched tags. | | observedExclusionList[]string | ObservedExclusionList is a list of observed exclusion list. It reflects the exclusion rules used for the observed scan result in status.lastScanResult. | | ReconcileRequestStatusgithub.com/fluxcd/pkg/apis/meta.ReconcileRequestStatus | (Members of ReconcileRequestStatus are embedded into this type.) |
NumericalPolicy
(Appears on: ImagePolicyChoice)
NumericalPolicy는 숫자 정렬 정책을 지정합니다.
| Field | Description | | orderstring | (Optional)Order specifies the sorting order of the tags. Given the integer values from 0 to 9 as tags, ascending order would select 9, and descending order would select 0. |
ReflectionPolicy
(string alias) (Appears on: ImagePolicySpec)
ReflectionPolicy는 레지스트리의 값을 특정 리소스 필드에 반영할지, 언제 반영할지에 대한 정책을 설명합니다.
ScanResult
(Appears on: ImageRepositoryStatus)
ScanResult는 이미지 리포지토리의 마지막 스캔에 대한 정보를 포함합니다. TODO: v1에서 LatestTags를 제외한 모든 필드를 required로 만들기.
| Field | Description | | revisionstring | (Optional)Revision is a stable hash of the scanned tags. | | tagCountint | TagCount is the number of tags found in the last scan. | | scanTimeKubernetes meta/v1.Time | (Optional)ScanTime is the time when the last scan was performed. | | latestTags[]string | (Optional)LatestTags is a small sample of the tags found in the last scan. It's the first 10 tags when sorting all the tags in descending alphabetical order. |
SemVerPolicy
(Appears on: ImagePolicyChoice)
SemVerPolicy는 시맨틱 버전 정책을 지정합니다.
| Field | Description | | rangestring | Range gives a semver range for the image tag; the highest version within the range that's a tag yields the latest image. |
TagFilter
(Appears on: ImagePolicySpec)
TagFilter는 정의된 규칙 집합에 기반해 태그를 거르는 것을 가능하게 합니다.
| Field | Description | | patternstring | (Optional)Pattern specifies a regular expression pattern used to filter for image tags. | | extractstring | (Optional)Extract allows a capture group to be extracted from the specified regular expression pattern, useful before tag evaluation. |
이 페이지는 gen-crd-api-reference-docs로 자동 생성되었습니다.