You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flag.StringVar(&namespace, "namespace", "", "Namespace that flagger would watch canary object.")
113
-
flag.StringVar(&meshProvider, "mesh-provider", "istio", "Service mesh provider, can be istio, linkerd, appmesh, contour, gloo, nginx, skipper, traefik, apisix, osm or kuma.")
115
+
flag.StringVar(&meshProvider, "mesh-provider", "istio", "Service mesh provider, can be istio, linkerd, appmesh, contour, knative, gloo, nginx, skipper, traefik, apisix, osm or kuma.")
114
116
flag.StringVar(&selectorLabels, "selector-labels", "app,name,app.kubernetes.io/name", "List of pod labels that Flagger uses to create pod selectors.")
115
117
flag.StringVar(&ingressAnnotationsPrefix, "ingress-annotations-prefix", "nginx.ingress.kubernetes.io", "Annotations prefix for NGINX ingresses.")
116
118
flag.StringVar(&ingressClass, "ingress-class", "", "Ingress class used for annotating HTTPProxy objects.")
@@ -166,6 +168,11 @@ func main() {
166
168
logger.Fatalf("Error building flagger clientset: %s", err.Error())
167
169
}
168
170
171
+
knativeClient, err:=knative.NewForConfig(cfg)
172
+
iferr!=nil {
173
+
logger.Fatalf("Error building knative clientset: %s", err.Error())
174
+
}
175
+
169
176
// use a remote cluster for routing if a service mesh kubeconfig is specified
0 commit comments