15.3. 검증 상태

사전 진행은 클러스터에서 각 모듈의 상태 및 진행 상황을 보고하여 유효성을 검증합니다.

type CRStatus struct {
	// Status of Module CR verification: true (verified), false (verification failed),
	// error (error during verification process), unknown (verification has not started yet)
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=True;False
	VerificationStatus string `json:"verificationStatus"` 1
	// StatusReason contains a string describing the status source.
	// +optional
	StatusReason string `json:"statusReason,omitempty"` 2
	// Current stage of the verification process:
	// image (image existence verification), build(build process verification)
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Image;Build;Sign;Requeued;Done
	VerificationStage string `json:"verificationStage"` 3
	// LastTransitionTime is the last time the CR status transitioned from one status to another.
	// This should be when the underlying status changed.  If that is not known, then using the time when the API field changed is acceptable.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	LastTransitionTime metav1.Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"` 4
}

다음 필드는 각 모듈에 적용됩니다.

1
VerificationStatus - true 또는 false, validated 또는 not입니다.
2
StatusReason - 상태에 대한 자세한 설명
3
검증 - 실행 중인 검증 단계 (이미지, 빌드, 서명)에 대해 설명합니다.
4
LastTransitionTime - 상태에 대한 마지막 업데이트 시간입니다.