Skip to content

Commit

Permalink
Move ovndb client type to neutron
Browse files Browse the repository at this point in the history
  • Loading branch information
olliewalsh committed Feb 21, 2024
1 parent fc61039 commit 4433035
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions modules/common/service/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ const (
ProtocolHTTPS Protocol = "https"
// ProtocolNone -
ProtocolNone Protocol = ""
// OvnDbCA - fake endpoint for OVN DB internal CA
OvnDbCA Endpoint = "ovndb"
)

func (e *Endpoint) String() string {
Expand Down
14 changes: 1 addition & 13 deletions modules/common/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ type APIService struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec
// Internal GenericService - holds the secret for the internal endpoint
Internal GenericService `json:"internal,omitempty"`

// +kubebuilder:validation:optional
// +operator-sdk:csv:customresourcedefinitions:type=spec
// OVNDb GenericService - holds the secret for the OVNDb client cert
OvnDb GenericService `json:"ovndb,omitempty"`
}

// GenericService contains server-specific TLS secret or issuer
Expand Down Expand Up @@ -168,7 +163,7 @@ func (a *APIService) ValidateCertSecrets(
) (string, ctrl.Result, error) {
var svc GenericService
certHashes := map[string]env.Setter{}
for _, endpt := range []service.Endpoint{service.EndpointInternal, service.EndpointPublic, service.OvnDbCA} {
for _, endpt := range []service.Endpoint{service.EndpointInternal, service.EndpointPublic} {
switch endpt {
case service.EndpointPublic:
if !a.Enabled(service.EndpointPublic) {
Expand All @@ -183,13 +178,6 @@ func (a *APIService) ValidateCertSecrets(
}

svc = a.Internal

case service.OvnDbCA:
if !a.Enabled(service.EndpointInternal) {
continue
}

svc = a.OvnDb
}

hash, ctrlResult, err := svc.ValidateCertSecret(ctx, h, namespace)
Expand Down
1 change: 0 additions & 1 deletion modules/common/tls/zz_generated.deepcopy.go

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

0 comments on commit 4433035

Please sign in to comment.