var ( TemplatesCrdFiles = []string{ "templates/policy/authorization-policy.yaml", "templates/policy/httproute.yaml", "templates/policy/meshtls-authentication.yaml", "templates/policy/network-authentication.yaml", "templates/policy/server-authorization.yaml", "templates/policy/server.yaml", "templates/serviceprofile.yaml", "templates/gateway.networking.k8s.io_httproutes.yaml", "templates/gateway.networking.k8s.io_grpcroutes.yaml", "templates/workload/external-workload.yaml", } TemplatesControlPlane = []string{ "templates/namespace.yaml", "templates/identity-rbac.yaml", "templates/destination-rbac.yaml", "templates/heartbeat-rbac.yaml", "templates/podmonitor.yaml", "templates/proxy-injector-rbac.yaml", "templates/psp.yaml", "templates/config.yaml", "templates/config-rbac.yaml", "templates/identity.yaml", "templates/destination.yaml", "templates/heartbeat.yaml", "templates/proxy-injector.yaml", } )
RootCmd represents the root Cobra command
var RootCmd = &cobra.Command{ Use: "linkerd", Short: "linkerd manages the Linkerd service mesh", Long: `linkerd manages the Linkerd service mesh.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if verbose { log.SetLevel(log.DebugLevel) } else { log.SetLevel(log.PanicLevel) } controlPlaneNamespaceFromEnv := os.Getenv(flags.EnvOverrideNamespace) if controlPlaneNamespace == defaultLinkerdNamespace && controlPlaneNamespaceFromEnv != "" { controlPlaneNamespace = controlPlaneNamespaceFromEnv } if !alphaNumDash.MatchString(controlPlaneNamespace) { return fmt.Errorf("%s is not a valid namespace", controlPlaneNamespace) } return nil }, }
ControllerMetricsOptions holds values for command line flags that apply to the controller-metrics command.
type ControllerMetricsOptions struct {
// contains filtered or unexported fields
}