Skip to content

Commit

Permalink
removed unwanted code
Browse files Browse the repository at this point in the history
Signed-off-by: Shriram Sharma <[email protected]>
  • Loading branch information
shriramsharma committed Aug 27, 2024
1 parent d08e503 commit 0817e59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions admiral/pkg/clusters/virtualservice_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

type ingressTLSDestination struct {
host string
port uint32
}

const (
vsRoutingLabel = "admiral.io/vs-routing"
// This can be stable/active/root service
defaultFQDN = "default"

previewFQDN = "preview"
canaryFQDN = "canary"
)

// NewVirtualServiceHandler returns a new instance of VirtualServiceHandler after verifying
Expand Down
7 changes: 7 additions & 0 deletions admiral/pkg/clusters/virtualservice_routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ import (
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
defaultFQDN = "default"

previewFQDN = "preview"
canaryFQDN = "canary"
)

// getBaseVirtualServiceForIngress generates the base virtual service for the ingress gateway
// The destinations should be added separately, this func does not have the context of the destinations.
func getBaseVirtualServiceForIngress(hosts, sniHosts []string) (*v1alpha3.VirtualService, error) {
Expand Down
1 change: 1 addition & 0 deletions admiral/pkg/controller/secret/secretcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func NewController(

var secretResolver resolver.SecretResolver
var err error

if admiralProfile == common.AdmiralProfileDefault {
log.Info("Initializing default secret resolver")
secretResolver, err = resolver.NewDefaultResolver()
Expand Down

0 comments on commit 0817e59

Please sign in to comment.