이미지 업데이트 자동화 API 참조 v1
image-reflector-controller가 OCI 이미지 레지스트리에서 모은 메타데이터를 바탕으로 Git을 자동 업데이트하는 데 쓰는 API 타입을 정리한 참조 문서예요. GitOps Toolkit 사용자 정의 리소스 정의 문서입니다.
출처: 문서
본문
GitOps Toolkit 사용자 정의 리소스 정의 문서.
패키지:
- image.toolkit.fluxcd.io/v1
image.toolkit.fluxcd.io/v1
Package v1에는 image API 그룹, 버전 v1의 API 타입이 있어요. 여기 있는 타입들은 image-reflector-controller가 수집한 OCI 이미지 레지스트리 메타데이터를 기반으로 git에 대한 자동 업데이트와 관련돼 있어요.
리소스 타입:
CommitSpec
(Appears on: GitSpec)
CommitSpec은 git 저장소에 변경 사항을 어떻게 커밋할지 지정해요.
| Field | Description | | authorCommitUser | Author gives the email and optionally the name to use as the author of commits. | | signingKeySigningKey | (Optional)SigningKey provides the option to sign commits with an OpenPGP or SSH signing key, referenced from a Secret. See SigningKey. | | messageTemplatestring | (Optional)MessageTemplate provides a template for the commit message, into which will be interpolated the details of the change made. Note: The Updated template field has been removed. Use Changed instead. | | messageTemplateValuesmap[string]string | (Optional)MessageTemplateValues provides additional values to be available to the templating rendering. |
CommitUser
(Appears on: CommitSpec)
| Field | Description | | namestring | (Optional)Name gives the name to provide when making a commit. | | emailstring | Email gives the email to provide when making a commit. |
CrossNamespaceSourceReference
(Appears on: ImageUpdateAutomationSpec)
CrossNamespaceSourceReference에는 클러스터 수준에서 타입이 지정된 Kubernetes 리소스 객체를 찾는 데 충분한 정보가 들어 있어요.
| Field | Description | | apiVersionstring | (Optional)API version of the referent. | | kindstring | Kind of the referent. | | namestring | Name of the referent. | | namespacestring | (Optional)Namespace of the referent, defaults to the namespace of the Kubernetes resource object that contains the reference. |
GitCheckoutSpec
(Appears on: GitSpec)
| Field | Description | | refSource /v1.GitRepositoryRef | Reference gives a branch, tag or commit to clone from the Git repository. |
GitSpec
(Appears on: ImageUpdateAutomationSpec)
| Field | Description | | checkoutGitCheckoutSpec | (Optional)Checkout gives the parameters for cloning the git repository, ready to make changes. If not present, the spec.ref field from the referenced GitRepository or its default will be used. | | commitCommitSpec | Commit specifies how to commit to the git repository. | | pushPushSpec | (Optional)Push specifies how and where to push commits made by the automation. If missing, commits are pushed (back) to .spec.checkout.branch or its default. |
ImageRef
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. |
ImageUpdateAutomation
ImageUpdateAutomation은 imageupdateautomations API의 스키마예요.
| Field | Description |
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadata field. |
| specImageUpdateAutomationSpec | sourceRefCrossNamespaceSourceReference: SourceRef refers to the resource giving access details to a git repository. |
| gitGitSpec | (Optional)GitSpec contains all the git-specific definitions. This is technically optional, but in practice mandatory until there are other kinds of source allowed. |
| intervalKubernetes meta/v1.Duration | Interval gives an lower bound for how often the automation run should be attempted. |
| policySelectorKubernetes meta/v1.LabelSelector | (Optional)PolicySelector allows to filter applied policies based on labels. By default includes all policies in namespace. |
| updateUpdateStrategy | Update gives the specification for how to update the files in the repository. This can be left empty, to use the default value. |
| suspendbool | (Optional)Suspend tells the controller to not run this automation, until it is unset (or set to false). Defaults to false. |
| statusImageUpdateAutomationStatus | |
ImageUpdateAutomationSpec
(Appears on: ImageUpdateAutomation)
ImageUpdateAutomationSpec은 ImageUpdateAutomation의 원하는 상태(desired state)를 정의해요.
| Field | Description | | sourceRefCrossNamespaceSourceReference | SourceRef refers to the resource giving access details to a git repository. | | gitGitSpec | (Optional)GitSpec contains all the git-specific definitions. This is technically optional, but in practice mandatory until there are other kinds of source allowed. | | intervalKubernetes meta/v1.Duration | Interval gives an lower bound for how often the automation run should be attempted. | | policySelectorKubernetes meta/v1.LabelSelector | (Optional)PolicySelector allows to filter applied policies based on labels. By default includes all policies in namespace. | | updateUpdateStrategy | Update gives the specification for how to update the files in the repository. This can be left empty, to use the default value. | | suspendbool | (Optional)Suspend tells the controller to not run this automation, until it is unset (or set to false). Defaults to false. |
ImageUpdateAutomationStatus
(Appears on: ImageUpdateAutomation)
ImageUpdateAutomationStatus는 ImageUpdateAutomation의 관찰된 상태(observed state)를 정의해요.
| Field | Description | | lastAutomationRunTimeKubernetes meta/v1.Time | (Optional)LastAutomationRunTime records the last time the controller ran this automation through to completion (even if no updates were made). | | lastPushCommitstring | (Optional)LastPushCommit records the SHA1 of the last commit made by the controller, for this automation object | | lastPushTimeKubernetes meta/v1.Time | (Optional)LastPushTime records the time of the last pushed change. | | observedGenerationint64 | (Optional) | | conditions[]Kubernetes meta/v1.Condition | (Optional) | | observedPoliciesObservedPolicies | (Optional)ObservedPolicies is the list of observed ImagePolicies that were considered by the ImageUpdateAutomation update process. | | observedSourceRevisionstring | (Optional)ObservedSourceRevision is the last observed source revision. This can be used to determine if the source has been updated since last observation. | | ReconcileRequestStatusgithub.com/fluxcd/pkg/apis/meta.ReconcileRequestStatus | (Members of ReconcileRequestStatus are embedded into this type.) |
ObservedPolicies
(map[string]./api/v1.ImageRef alias)
(Appears on: ImageUpdateAutomationStatus)
ObservedPolicies는 정책 이름과 그 최신 ImageRef의 ImageRef를 담은 맵이에요.
PushSpec
(Appears on: GitSpec)
PushSpec은 커밋을 어디에 어떻게 푸시할지 지정해요.
| Field | Description | | branchstring | (Optional)Branch specifies that commits should be pushed to the branch named. The branch is created using .spec.checkout.branch as the starting point, if it doesn't already exist. | | refspecstring | (Optional)Refspec specifies the Git Refspec to use for a push operation. If both Branch and Refspec are provided, then the commit is pushed to the branch and also using the specified refspec. Deletion refspecs and refspecs prefixed with '+' are not supported. For more details about Git Refspecs, see: https://git-scm.com/book/en/v2/Git-Internals-The-Refspec | | optionsmap[string]string | (Optional)Options specifies the push options that are sent to the Git server when performing a push operation. For details, see: https://git-scm.com/docs/git-push#Documentation/git-push.txt---push-optionltoptiongt |
SigningKey
(Appears on: CommitSpec)
SigningKey는 컨트롤러가 만드는 커밋을 위한 OpenPGP 또는 SSH 서명 키를 담고 있는 Kubernetes Secret을 참조해요.
| Field | Description | | secretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference | SecretRef references a Secret containing the signing key. For type 'gpg', the Secret must contain a 'git.asc' (ASCII-armored OpenPGP keypair) and may contain a 'passphrase'. For type 'ssh', the Secret must contain an 'identity' (an SSH private key in any format golang.org/x/crypto/ssh.ParsePrivateKey accepts; typically the OpenSSH format produced by 'ssh-keygen') and may contain a 'password' (the key's passphrase). The SSH conventions match the GitRepository SSH transport-auth Secret format, allowing a single Secret to serve both transport and signing when the ImageUpdateAutomation lives in the same namespace as the GitRepository. The Secret itself must live in the same namespace as the ImageUpdateAutomation. Supported SSH key algorithms: ed25519, ecdsa-sha2-nistp256/384/521, and rsa (>= 2048-bit). | | typeSigningKeyType | (Optional)Type selects the signing-key format expected in the referenced Secret. When empty, the controller defaults to 'gpg'. |
SigningKeyType
(string alias)
(Appears on: SigningKey)
SigningKeyType은 SigningKey가 참조하는 서명 키의 형식이에요.
UpdateStrategy
(Appears on: ImageUpdateAutomationSpec)
UpdateStrategy는 Git 저장소를 업데이트하는 여러 전략의 합집합이에요. 각 전략의 매개변수(있다면)는 여기에 인라인할 수 있어요.
| Field | Description | | strategyUpdateStrategyName | (Optional)Strategy names the strategy to be used. | | pathstring | (Optional)Path to the directory containing the manifests to be updated. Defaults to 'None', which translates to the root path of the GitRepositoryRef. |
UpdateStrategyName
(string alias)
(Appears on: UpdateStrategy)
UpdateStrategyName은 .update.strategy에 들어가는 이름의 타입이에요. 바로 아래 const에 있는 값에 유의하세요.
이 페이지는 gen-crd-api-reference-docs로 자동 생성됐어요.