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
Copy file name to clipboardexpand all lines: main.go
+17-17
Original file line number
Diff line number
Diff line change
@@ -53,23 +53,23 @@ import (
53
53
)
54
54
55
55
var (
56
-
master=flag.String("master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
57
-
kubeConfig=flag.String("kubeConfig", "", "Path to a kube config. Only required if out-of-cluster.")
58
-
installCRDs=flag.Bool("install-crds", true, "Whether to install CRDs")
59
-
controllerThreads=flag.Int("controller-threads", 10, "Number of worker threads used by the SparkApplication controller.")
60
-
resyncInterval=flag.Int("resync-interval", 30, "Informer resync interval in seconds.")
61
-
namespace=flag.String("namespace", apiv1.NamespaceAll, "The Kubernetes namespace to manage. Will manage custom resource objects of the managed CRD types for the whole cluster if unset.")
62
-
enableWebhook=flag.Bool("enable-webhook", false, "Whether to enable the mutating admission webhook for admitting and patching Spark pods.")
63
-
webhookConfigName=flag.String("webhook-config-name", "spark-webhook-config", "The name of the MutatingWebhookConfiguration object to create.")
64
-
webhookCertDir=flag.String("webhook-cert-dir", "/etc/webhook-certs", "The directory where x509 certificate and key files are stored.")
65
-
webhookSvcNamespace=flag.String("webhook-svc-namespace", "spark-operator", "The namespace of the Service for the webhook server.")
66
-
webhookSvcName=flag.String("webhook-svc-name", "spark-webhook", "The name of the Service for the webhook server.")
67
-
webhookPort=flag.Int("webhook-port", 8080, "Service port of the webhook server.")
68
-
enableMetrics=flag.Bool("enable-metrics", false, "Whether to enable the metrics endpoint.")
69
-
metricsPort=flag.String("metrics-port", "10254", "Port for the metrics endpoint.")
master=flag.String("master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
57
+
kubeConfig=flag.String("kubeConfig", "", "Path to a kube config. Only required if out-of-cluster.")
58
+
installCRDs=flag.Bool("install-crds", true, "Whether to install CRDs")
59
+
controllerThreads=flag.Int("controller-threads", 10, "Number of worker threads used by the SparkApplication controller.")
60
+
resyncInterval=flag.Int("resync-interval", 30, "Informer resync interval in seconds.")
61
+
namespace=flag.String("namespace", apiv1.NamespaceAll, "The Kubernetes namespace to manage. Will manage custom resource objects of the managed CRD types for the whole cluster if unset.")
62
+
enableWebhook=flag.Bool("enable-webhook", false, "Whether to enable the mutating admission webhook for admitting and patching Spark pods.")
63
+
webhookConfigName=flag.String("webhook-config-name", "spark-webhook-config", "The name of the MutatingWebhookConfiguration object to create.")
64
+
webhookCertDir=flag.String("webhook-cert-dir", "/etc/webhook-certs", "The directory where x509 certificate and key files are stored.")
65
+
webhookSvcNamespace=flag.String("webhook-svc-namespace", "spark-operator", "The namespace of the Service for the webhook server.")
66
+
webhookSvcName=flag.String("webhook-svc-name", "spark-webhook", "The name of the Service for the webhook server.")
67
+
webhookPort=flag.Int("webhook-port", 8080, "Service port of the webhook server.")
68
+
enableMetrics=flag.Bool("enable-metrics", false, "Whether to enable the metrics endpoint.")
69
+
metricsPort=flag.String("metrics-port", "10254", "Port for the metrics endpoint.")
0 commit comments