Skip to content

Commit

Permalink
remove references to OPENSHIFT_DEFAULT_REGISTRY
Browse files Browse the repository at this point in the history
OPENSHIFT_DEFAULT_REGISTRY has been deprecated and is removed by
openshift/image-registry#378
  • Loading branch information
flavianmissi committed Sep 6, 2023
1 parent 8891815 commit 333e50e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 32 deletions.
2 changes: 1 addition & 1 deletion config/v1/0000_10_config-operator_01_image.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
items:
type: string
internalRegistryHostname:
description: internalRegistryHostname sets the hostname for the default internal image registry. The value must be in "hostname[:port]" format. This value is set by the image registry operator which controls the internal registry hostname. For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY environment variable but this setting overrides the environment variable.
description: internalRegistryHostname sets the hostname for the default internal image registry. The value must be in "hostname[:port]" format. This value is set by the image registry operator which controls the internal registry hostname.
type: string
served: true
storage: true
Expand Down
4 changes: 1 addition & 3 deletions config/v1/types_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ type ImageSpec struct {
}

type ImageStatus struct {

// internalRegistryHostname sets the hostname for the default internal image
// registry. The value must be in "hostname[:port]" format.
// This value is set by the image registry operator which controls the internal registry
// hostname. For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY
// environment variable but this setting overrides the environment variable.
// hostname.
// +optional
InternalRegistryHostname string `json:"internalRegistryHostname,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion config/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions kubecontrolplane/v1/types.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package v1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"fmt"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

configv1 "github.com/openshift/api/config/v1"
osinv1 "github.com/openshift/api/osin/v1"
)
Expand Down Expand Up @@ -76,8 +76,6 @@ func (t Arguments) String() string {
type KubeAPIServerImagePolicyConfig struct {
// internalRegistryHostname sets the hostname for the default internal image
// registry. The value must be in "hostname[:port]" format.
// For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY
// environment variable but this setting overrides the environment variable.
InternalRegistryHostname string `json:"internalRegistryHostname"`
// externalRegistryHostnames provides the hostnames for the default external image
// registry. The external hostname should be set only when the image registry
Expand Down
2 changes: 1 addition & 1 deletion kubecontrolplane/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions legacyconfig/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ type ImagePolicyConfig struct {
AllowedRegistriesForImport *AllowedRegistries `json:"allowedRegistriesForImport,omitempty"`
// InternalRegistryHostname sets the hostname for the default internal image
// registry. The value must be in "hostname[:port]" format.
// For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY
// environment variable but this setting overrides the environment variable.
InternalRegistryHostname string `json:"internalRegistryHostname,omitempty"`
// ExternalRegistryHostname sets the hostname for the default external image
// registry. The external hostname should be set only when the image registry
Expand All @@ -442,7 +440,7 @@ type RegistryLocation struct {
Insecure bool `json:"insecure,omitempty"`
}

// holds the necessary configuration options for
// holds the necessary configuration options for
type ProjectConfig struct {
// DefaultNodeSelector holds default project node label selector
DefaultNodeSelector string `json:"defaultNodeSelector"`
Expand Down Expand Up @@ -482,7 +480,7 @@ type SecurityAllocator struct {
MCSLabelsPerProject int `json:"mcsLabelsPerProject"`
}

// holds the necessary configuration options for
// holds the necessary configuration options for
type PolicyConfig struct {
// UserAgentMatchingConfig controls how API calls from *voluntarily* identifying clients will be handled. THIS DOES NOT DEFEND AGAINST MALICIOUS CLIENTS!
UserAgentMatchingConfig UserAgentMatchingConfig `json:"userAgentMatchingConfig"`
Expand Down Expand Up @@ -737,7 +735,7 @@ type OAuthConfig struct {
// AlwaysShowProviderSelection will force the provider selection page to render even when there is only a single provider.
AlwaysShowProviderSelection bool `json:"alwaysShowProviderSelection"`

//IdentityProviders is an ordered list of ways for a user to identify themselves
// IdentityProviders is an ordered list of ways for a user to identify themselves
IdentityProviders []IdentityProvider `json:"identityProviders"`

// GrantConfig describes how to handle grants
Expand Down Expand Up @@ -1563,7 +1561,6 @@ type BuildDefaultsConfig struct {
// SourceStrategyDefaultsConfig contains values that apply to builds using the
// source strategy.
type SourceStrategyDefaultsConfig struct {

// incremental indicates if s2i build strategies should perform an incremental
// build or not
Incremental *bool `json:"incremental,omitempty"`
Expand Down
6 changes: 3 additions & 3 deletions legacyconfig/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7071,7 +7071,7 @@
}
},
"internalRegistryHostname": {
"description": "internalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format. This value is set by the image registry operator which controls the internal registry hostname. For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY environment variable but this setting overrides the environment variable.",
"description": "internalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format. This value is set by the image registry operator which controls the internal registry hostname.",
"type": "string"
}
}
Expand Down Expand Up @@ -13736,7 +13736,7 @@
}
},
"internalRegistryHostname": {
"description": "internalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format. For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY environment variable but this setting overrides the environment variable.",
"description": "internalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format.",
"type": "string",
"default": ""
}
Expand Down Expand Up @@ -15109,7 +15109,7 @@
"type": "string"
},
"internalRegistryHostname": {
"description": "InternalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format. For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY environment variable but this setting overrides the environment variable.",
"description": "InternalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format.",
"type": "string"
},
"maxImagesBulkImportedPerRepository": {
Expand Down Expand Up @@ -22824,7 +22824,7 @@
}
},
"internalRegistryHostname": {
"description": "internalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format. For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY environment variable but this setting overrides the environment variable.",
"description": "internalRegistryHostname sets the hostname for the default internal image registry. The value must be in \"hostname[:port]\" format.",
"type": "string",
"default": ""
},
Expand Down
5 changes: 1 addition & 4 deletions openshiftcontrolplane/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ type ImagePolicyConfig struct {

// internalRegistryHostname sets the hostname for the default internal image
// registry. The value must be in "hostname[:port]" format.
// For backward compatibility, users can still use OPENSHIFT_DEFAULT_REGISTRY
// environment variable but this setting overrides the environment variable.
InternalRegistryHostname string `json:"internalRegistryHostname"`
// externalRegistryHostnames provides the hostnames for the default external image
// registry. The external hostname should be set only when the image registry
Expand Down Expand Up @@ -194,7 +192,7 @@ type JenkinsPipelineConfig struct {

// OpenShiftControllerName defines a string type used to represent the various
// OpenShift controllers within openshift-controller-manager. These constants serve as identifiers
// for the controllers and are used on both openshift/openshift-controller-manager
// for the controllers and are used on both openshift/openshift-controller-manager
// and openshift/cluster-openshift-controller-manager-operator repositories.
type OpenShiftControllerName string

Expand Down Expand Up @@ -365,7 +363,6 @@ type BuildDefaultsConfig struct {
// SourceStrategyDefaultsConfig contains values that apply to builds using the
// source strategy.
type SourceStrategyDefaultsConfig struct {

// incremental indicates if s2i build strategies should perform an incremental
// build or not
Incremental *bool `json:"incremental,omitempty"`
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 333e50e

Please sign in to comment.