INNER CODE UNIT · Go
init
megaease/easemesh · operator/main.go:68
func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
utilruntime.Must(meshv1beta1.AddToScheme(scheme))
// +kubebuilder:scaffold:scheme
}
// ConfigSpec is the config specification.
type ConfigSpec struct {
ImageRegistryURL string `yaml:"image-registry-url" jsonschema:"required"`
ClusterName string `yaml:"cluster-name" jsonschema:"required"`
ClusterJoinURLs []string `yaml:"cluster-join-urls" jsonschema:"required"`
APIAddr string `yaml:"api-addr" jsonschema:"required"`
MetricsAddr string `yaml:"metrics-bind-address" jsonschema:"required"`
EnableLeaderElection bool `yaml:"leader-elect" jsonschema:"required"`
ProbeAddr string `yaml:"health-probe-bind-address" jsonschema:"required"`
WebhookPort uint16 `yaml:"webhook-port" jsonschema:"required"`
CertDir string `yaml:"cert-dir" jsonschema:"required"`