Skip to content

Commit 1e962d2

Browse files
authored
Remove TLSVerify/PullSecret fields (operator-framework#369)
Remove fields that will not have long term support committed to them to prepare for the v1.0 release. Removed Fields: - spec.source.image.insecureSkipTLSVerify - spec.source.image.pullSecret GH Issue Ref: operator-framework#355 Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 2e6d207 commit 1e962d2

File tree

6 files changed

+10
-223
lines changed

6 files changed

+10
-223
lines changed

api/core/v1alpha1/clustercatalog_types.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,12 @@ type ResolvedImageSource struct {
141141
type ImageSource struct {
142142
// ref contains the reference to a container image containing Catalog contents.
143143
Ref string `json:"ref"`
144-
// pullSecret contains the name of the image pull secret in the namespace that catalogd is deployed.
145-
// +optional
146-
PullSecret string `json:"pullSecret,omitempty"`
147144
// pollInterval indicates the interval at which the image source should be polled for new content,
148145
// specified as a duration (e.g., "5m", "1h", "24h", "etc".). Note that PollInterval may not be
149146
// specified for a catalog image referenced by a sha256 digest.
150147
// +kubebuilder:validation:Format:=duration
151148
// +optional
152149
PollInterval *metav1.Duration `json:"pollInterval,omitempty"`
153-
// insecureSkipTLSVerify indicates that TLS certificate validation should be skipped.
154-
// If this option is specified, the HTTPS protocol will still be used to
155-
// fetch the specified image reference.
156-
// This should not be used in a production environment.
157-
// +optional
158-
InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`
159150
}
160151

161152
func init() {

config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,13 @@ spec:
6161
description: image is the catalog image that backs the content
6262
of this catalog.
6363
properties:
64-
insecureSkipTLSVerify:
65-
description: |-
66-
insecureSkipTLSVerify indicates that TLS certificate validation should be skipped.
67-
If this option is specified, the HTTPS protocol will still be used to
68-
fetch the specified image reference.
69-
This should not be used in a production environment.
70-
type: boolean
7164
pollInterval:
7265
description: |-
7366
pollInterval indicates the interval at which the image source should be polled for new content,
7467
specified as a duration (e.g., "5m", "1h", "24h", "etc".). Note that PollInterval may not be
7568
specified for a catalog image referenced by a sha256 digest.
7669
format: duration
7770
type: string
78-
pullSecret:
79-
description: pullSecret contains the name of the image pull
80-
secret in the namespace that catalogd is deployed.
81-
type: string
8271
ref:
8372
description: ref contains the reference to a container image
8473
containing Catalog contents.

go.mod

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ require (
88
github.com/go-logr/logr v1.4.2
99
github.com/google/go-cmp v0.6.0
1010
github.com/google/go-containerregistry v0.20.2
11-
github.com/google/go-containerregistry/pkg/authn/k8schain v0.0.0-20240505154900-ff385a972813
12-
github.com/google/go-containerregistry/pkg/authn/kubernetes v0.0.0-20240505154900-ff385a972813
1311
github.com/klauspost/compress v1.17.9
1412
github.com/onsi/ginkgo/v2 v2.20.2
1513
github.com/onsi/gomega v1.34.2
@@ -28,49 +26,23 @@ require (
2826
)
2927

3028
require (
31-
cloud.google.com/go/compute/metadata v0.3.0 // indirect
32-
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
33-
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
34-
github.com/Azure/go-autorest/autorest v0.11.29 // indirect
35-
github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect
36-
github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 // indirect
37-
github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect
38-
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
39-
github.com/Azure/go-autorest/logger v0.2.1 // indirect
40-
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
4129
github.com/Microsoft/go-winio v0.6.2 // indirect
4230
github.com/Microsoft/hcsshim v0.12.5 // indirect
4331
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
4432
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
45-
github.com/aws/aws-sdk-go-v2 v1.18.0 // indirect
46-
github.com/aws/aws-sdk-go-v2/config v1.18.25 // indirect
47-
github.com/aws/aws-sdk-go-v2/credentials v1.13.24 // indirect
48-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 // indirect
49-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 // indirect
50-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 // indirect
51-
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34 // indirect
52-
github.com/aws/aws-sdk-go-v2/service/ecr v1.18.11 // indirect
53-
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.16.2 // indirect
54-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27 // indirect
55-
github.com/aws/aws-sdk-go-v2/service/sso v1.12.10 // indirect
56-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10 // indirect
57-
github.com/aws/aws-sdk-go-v2/service/sts v1.19.0 // indirect
58-
github.com/aws/smithy-go v1.13.5 // indirect
59-
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20230510185313-f5e39e5f34c7 // indirect
6033
github.com/beorn7/perks v1.0.1 // indirect
6134
github.com/cespare/xxhash/v2 v2.3.0 // indirect
62-
github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589 // indirect
6335
github.com/containerd/cgroups/v3 v3.0.3 // indirect
6436
github.com/containerd/continuity v0.4.2 // indirect
6537
github.com/containerd/errdefs v0.1.0 // indirect
6638
github.com/containerd/log v0.1.0 // indirect
6739
github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect
6840
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
69-
github.com/dimchansky/utfbom v1.1.1 // indirect
7041
github.com/docker/cli v27.2.0+incompatible // indirect
7142
github.com/docker/distribution v2.8.3+incompatible // indirect
7243
github.com/docker/docker-credential-helpers v0.8.2 // indirect
7344
github.com/emicklei/go-restful/v3 v3.11.2 // indirect
45+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
7446
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
7547
github.com/fsnotify/fsnotify v1.7.0 // indirect
7648
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
@@ -83,7 +55,6 @@ require (
8355
github.com/go-openapi/swag v0.23.0 // indirect
8456
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
8557
github.com/gogo/protobuf v1.3.2 // indirect
86-
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
8758
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
8859
github.com/golang/protobuf v1.5.4 // indirect
8960
github.com/google/cel-go v0.20.1 // indirect
@@ -96,7 +67,6 @@ require (
9667
github.com/imdario/mergo v0.3.16 // indirect
9768
github.com/inconshreveable/mousetrap v1.1.0 // indirect
9869
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
99-
github.com/jmespath/go-jmespath v0.4.0 // indirect
10070
github.com/joelanford/ignore v0.1.0 // indirect
10171
github.com/josharian/intern v1.0.0 // indirect
10272
github.com/json-iterator/go v1.1.12 // indirect
@@ -123,7 +93,6 @@ require (
12393
go.opencensus.io v0.24.0 // indirect
12494
go.uber.org/multierr v1.11.0 // indirect
12595
go.uber.org/zap v1.26.0 // indirect
126-
golang.org/x/crypto v0.27.0 // indirect
12796
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
12897
golang.org/x/net v0.29.0 // indirect
12998
golang.org/x/oauth2 v0.22.0 // indirect
@@ -143,6 +112,7 @@ require (
143112
gopkg.in/warnings.v0 v0.1.2 // indirect
144113
gopkg.in/yaml.v2 v2.4.0 // indirect
145114
gopkg.in/yaml.v3 v3.0.1 // indirect
115+
gotest.tools/v3 v3.1.0 // indirect
146116
k8s.io/klog/v2 v2.130.1 // indirect
147117
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
148118
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect

0 commit comments

Comments
 (0)