diff --git a/api/v1alpha1/gitrepository_types.go b/api/v1alpha1/gitrepository_types.go index 286812f7..02f4b407 100644 --- a/api/v1alpha1/gitrepository_types.go +++ b/api/v1alpha1/gitrepository_types.go @@ -45,7 +45,7 @@ type GitRepositorySpec struct { // +optional Reference *GitRepositoryRef `json:"ref,omitempty"` - // Verify PGP signature for the commit that HEAD points to. + // Verify OpenPGP signature for the commit that HEAD points to. // +optional Verification *GitRepositoryVerification `json:"verify,omitempty"` } @@ -70,10 +70,9 @@ type GitRepositoryRef struct { Commit string `json:"commit"` } -// GitRepositoryStatus defines the observed state of the GitRepository. -// GitRepositoryVerification defines the GPG signature verification process +// GitRepositoryVerification defines the OpenPGP signature verification process. type GitRepositoryVerification struct { - // Mode describes what git object should be verified. + // Mode describes what git object should be verified, currently ('head'). // +kubebuilder:validation:Enum=head Mode string `json:"mode"` @@ -81,7 +80,7 @@ type GitRepositoryVerification struct { SecretRef corev1.LocalObjectReference `json:"secretRef,omitempty"` } -// GitRepositoryStatus defines the observed state of GitRepository +// GitRepositoryStatus defines the observed state of Git repository. type GitRepositoryStatus struct { // +optional Conditions []SourceCondition `json:"conditions,omitempty"` diff --git a/controllers/gitrepository_controller.go b/controllers/gitrepository_controller.go index f9af5418..16a749ff 100644 --- a/controllers/gitrepository_controller.go +++ b/controllers/gitrepository_controller.go @@ -282,7 +282,7 @@ func (r *GitRepositoryReconciler) sync(ctx context.Context, repository sourcev1. var secret corev1.Secret err = r.Client.Get(ctx, name, &secret) if err != nil { - err = fmt.Errorf("GPG public keys secret error: %w", err) + err = fmt.Errorf("PGP public keys secret error: %w", err) return sourcev1.GitRepositoryNotReady(repository, sourcev1.GitOperationFailedReason, err.Error()), err }