Fixes stutter: istio.IsIstioInstalled -> istio.IsInstalled
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
parent
00ceff3421
commit
01716e2907
@ -71,7 +71,7 @@ func Run(opts *options.ControllerOptions, stopCh <-chan struct{}) {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
ctx.IstioEnabled, err = istio.IsIstioInstalled(ctx)
|
||||
ctx.IstioEnabled, err = istio.IsInstalled(ctx)
|
||||
if err != nil {
|
||||
log.Error(err, "failed to discover if Istio is available")
|
||||
os.Exit(1)
|
||||
|
||||
@ -26,7 +26,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
|
||||
cmacme "github.com/jetstack/cert-manager/pkg/apis/acme/v1"
|
||||
"github.com/jetstack/cert-manager/pkg/issuer/acme/http/internal/istio"
|
||||
"github.com/jetstack/cert-manager/pkg/internal/apis/istio"
|
||||
)
|
||||
|
||||
func TestEnsureIstio(t *testing.T) {
|
||||
|
||||
@ -24,7 +24,7 @@ import (
|
||||
"github.com/jetstack/cert-manager/pkg/internal/apis/istio"
|
||||
)
|
||||
|
||||
func IsIstioInstalled(ctx *controller.Context) (bool, error) {
|
||||
func IsInstalled(ctx *controller.Context) (bool, error) {
|
||||
groups, err := ctx.Client.Discovery().ServerGroups()
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user