INNER CODE UNIT · Go

NewCommandGenerateClusterRole

alcideio/rbac-tool · cmd/generate_cmd.go:22

func NewCommandGenerateClusterRole() *cobra.Command {
	clusterContext := ""
	generateKind := ""
	allowedGroups := []string{}
	//expandGroups := []string{}
	allowedVerb := []string{}
	denyResources := []string{}
	metadataFlag := &MetadataFlag{metadata: metav1.ObjectMeta{Name: ""}}

	// Support overrides
	cmd := &cobra.Command{
		Use:     "generate",
		Aliases: []string{"gen"},
		Short:   "Generate Role or ClusterRole and reduce the use of wildcards",
		Long: `
Generate Role or ClusterRole resource while reducing the use of wildcards.

rbac-tool read from the Kubernetes discovery API the available API Groups and resources, 

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…