kubernetes/test/featuregates_linter/cmd/feature_gates.go

var alphabeticalOrder

var k8RootPath

var unversionedFeatureListFile

var versionedFeatureListFile

const featureGatePkg

type featureSpec

type featureInfo

// NewFeatureGatesCommand returns the cobra command for "feature-gates".
func NewFeatureGatesCommand() *cobra.Command {}

func NewVerifyFeatureListCommand() *cobra.Command {}

func NewUpdateFeatureListCommand() *cobra.Command {}

func verifyFeatureListFunc(cmd *cobra.Command, args []string) {}

func updateFeatureListFunc(cmd *cobra.Command, args []string) {}

// verifyOrUpdateFeatureList walks all the files under pkg/ and staging/ to find the list of all the features in
// map[featuregate.Feature]featuregate.FeatureSpec or map[featuregate.Feature]featuregate.VersionedSpecs.
// It will then update the feature list in featureListFile, or verifies there is no change from the existing list.
func verifyOrUpdateFeatureList(rootPath, featureListFile string, update, versioned bool) error {}

func dedupeFeatureList(featureList []featureInfo) ([]featureInfo, error) {}

func verifyFeatureDeletionOnly(newFeatureList []featureInfo, oldFeatureList []featureInfo) error {}

func searchPathForFeatures(path string, versioned bool) ([]featureInfo, error) {}

// extractFeatureInfoListFromFile extracts info all the the features from
// map[featuregate.Feature]featuregate.FeatureSpec or map[featuregate.Feature]featuregate.VersionedSpecs from the given file.
func extractFeatureInfoListFromFile(fset *token.FileSet, filePath string, versioned bool) (allFeatures []featureInfo, err error) {}

func getPkgPrefix(s string) string {}

func verifyAlphabeticOrder(keys []string, path string) error {}

// extractFeatureInfoList extracts the info all the the features from
// map[featuregate.Feature]featuregate.FeatureSpec or map[featuregate.Feature]featuregate.VersionedSpecs.
func extractFeatureInfoList(filePath string, v ast.Expr, aliasMap map[string]string, variables map[string]ast.Expr, versioned bool) ([]featureInfo, error) {}

func isFeatureSpecType(v ast.Expr, aliasMap map[string]string, versioned bool) bool {}

func parseFeatureInfo(variables map[string]ast.Expr, kv *ast.KeyValueExpr, versioned bool) (featureInfo, error) {}

func parseFeatureSpec(variables map[string]ast.Expr, v ast.Expr) (featureSpec, error) {}

func parseVersion(v ast.Expr) (string, error) {}