MCPcopy
hub / github.com/cortexlabs/cortex / readUserClusterConfigFile

Function readUserClusterConfigFile

cli/cmd/lib_cluster_config.go:72–79  ·  view source on GitHub ↗
(clusterConfig *clusterconfig.Config, filePath string)

Source from the content-addressed store, hash-verified

70}
71
72func readUserClusterConfigFile(clusterConfig *clusterconfig.Config, filePath string) error {
73 errs := cr.ParseYAMLFile(clusterConfig, clusterconfig.FullConfigValidation, filePath)
74 if errors.HasError(errs) {
75 return errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
76 }
77
78 return nil
79}
80
81func getNewClusterAccessConfig(clusterConfigFile string) (*clusterconfig.AccessConfig, error) {
82 accessConfig := &clusterconfig.AccessConfig{}

Callers 2

getInstallClusterConfigFunction · 0.85

Calls 3

HasErrorFunction · 0.92
AppendFunction · 0.92
FirstErrorFunction · 0.92

Tested by

no test coverage detected