From ada42eeaa71f4749d4c7a5ece4f8f20c9c064138 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Fri, 8 Jul 2022 16:03:44 +0300 Subject: [PATCH] Remove `spec.verify` from the API Signed-off-by: Stefan Prodan --- api/v1beta2/ocirepository_types.go | 5 --- api/v1beta2/zz_generated.deepcopy.go | 5 --- ...rce.toolkit.fluxcd.io_ocirepositories.yaml | 24 ------------- docs/api/source.md | 34 ------------------- 4 files changed, 68 deletions(-) diff --git a/api/v1beta2/ocirepository_types.go b/api/v1beta2/ocirepository_types.go index eac3f1c4..b35ccca5 100644 --- a/api/v1beta2/ocirepository_types.go +++ b/api/v1beta2/ocirepository_types.go @@ -69,11 +69,6 @@ type OCIRepositorySpec struct { // +optional CertSecretRef *meta.LocalObjectReference `json:"certSecretRef,omitempty"` - // Verification specifies the configuration to verify the autheticity - // of an OCI Artifact. - // +optional - Verification *OCIRepositoryVerification `json:"verify,omitempty"` - // The interval at which to check for image updates. // +required Interval metav1.Duration `json:"interval"` diff --git a/api/v1beta2/zz_generated.deepcopy.go b/api/v1beta2/zz_generated.deepcopy.go index d7213100..80779996 100644 --- a/api/v1beta2/zz_generated.deepcopy.go +++ b/api/v1beta2/zz_generated.deepcopy.go @@ -707,11 +707,6 @@ func (in *OCIRepositorySpec) DeepCopyInto(out *OCIRepositorySpec) { *out = new(meta.LocalObjectReference) **out = **in } - if in.Verification != nil { - in, out := &in.Verification, &out.Verification - *out = new(OCIRepositoryVerification) - **out = **in - } out.Interval = in.Interval if in.Timeout != nil { in, out := &in.Timeout, &out.Timeout diff --git a/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml b/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml index 7ce11503..b7eb96c1 100644 --- a/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml +++ b/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml @@ -122,30 +122,6 @@ spec: on a remote container registry. pattern: ^oci:// type: string - verify: - description: Verification specifies the configuration to verify the - autheticity of an OCI Artifact. - properties: - provider: - description: Provider specifies the technology used to sign the - OCI Artifact. - enum: - - cosign - type: string - secretRef: - description: SecretRef specifies the Kubernetes Secret containing - the trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - - secretRef - type: object required: - interval - url diff --git a/docs/api/source.md b/docs/api/source.md index 1ecf0a13..f45c5ca0 100644 --- a/docs/api/source.md +++ b/docs/api/source.md @@ -1022,21 +1022,6 @@ you are using a self-signed server certificate.

-verify
- - -OCIRepositoryVerification - - - - -(Optional) -

Verification specifies the configuration to verify the autheticity -of an OCI Artifact.

- - - - interval
@@ -2678,21 +2663,6 @@ you are using a self-signed server certificate.

-verify
- -
-OCIRepositoryVerification - - - - -(Optional) -

Verification specifies the configuration to verify the autheticity -of an OCI Artifact.

- - - - interval
@@ -2838,10 +2808,6 @@ github.com/fluxcd/pkg/apis/meta.ReconcileRequestStatus

OCIRepositoryVerification

-

-(Appears on: -OCIRepositorySpec) -

OCIRepositoryVerification verifies the authenticity of an OCI Artifact