Fixes stutter: istio.IsIstioInstalled -> istio.IsInstalled

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
joshvanl 2021-04-29 11:42:21 +01:00
parent 00ceff3421
commit 01716e2907
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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) {

View File

@ -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