Documentation
¶
Index ¶
- func ClusterID(group, cluster string) string
- func ClusterPath(group, cluster string) string
- func GroupFromConfig(groupName string, path string) (v1alpha1.Group, error)
- func InitializeConfiguration(name, path string) error
- func ReadConfig(configPath string) (*v1alpha1.ClustersConfiguration, error)
- func SyncDirectories(config v1alpha1.ConfigSpec, path string) error
- func ValidateContextPath(contextPath string) (string, error)
- func VendoredAddOnPath(packageName string) string
- func VendoredModulePath(packageName string) string
- func WriteKustomizationData(path string, writer io.Writer) error
- type ConfigFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterPath ¶
ClusterPath return the canonical path for a cluster given the group and name for the cluster
func GroupFromConfig ¶
groupFromConfig return a Group struct if a group with groupName is found inside the configuration at path. Will return an error if the file cannot be read or groupName is not found
func InitializeConfiguration ¶
InitializeConfiguration will create an empty configuration file at path and then create all the folder structure
func ReadConfig ¶
func ReadConfig(configPath string) (*v1alpha1.ClustersConfiguration, error)
ReadConfig reads a configuration file into a ClustersConfiguration struct
func SyncDirectories ¶
func SyncDirectories(config v1alpha1.ConfigSpec, path string) error
SyncDirectories will create all the folders and kustomization files needed by the config data, it will leave alone already present file in the custom-resources folder if they already exists, it will override everything else
func ValidateContextPath ¶
ValidateContextPath will validate contextPath that is a valid existing path, and that is a directory it will also return the path in absolute form
func VendoredAddOnPath ¶
VendoredAddOnPath return a vendored path for addon with packageName
func VendoredModulePath ¶
VendoredModulePath return a vendored path for module with packageName
Types ¶
type ConfigFlags ¶
func NewConfigFlags ¶
func NewConfigFlags() *ConfigFlags
func (*ConfigFlags) AddFlags ¶
func (f *ConfigFlags) AddFlags(flags *pflag.FlagSet)