MCPcopy Index your code
hub / github.com/cortexlabs/cortex / getNewClusterAccessConfig

Function getNewClusterAccessConfig

cli/cmd/lib_cluster_config.go:81–90  ·  view source on GitHub ↗
(clusterConfigFile string)

Source from the content-addressed store, hash-verified

79}
80
81func getNewClusterAccessConfig(clusterConfigFile string) (*clusterconfig.AccessConfig, error) {
82 accessConfig := &clusterconfig.AccessConfig{}
83
84 errs := cr.ParseYAMLFile(accessConfig, clusterconfig.AccessValidation, clusterConfigFile)
85 if errors.HasError(errs) {
86 return nil, errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
87 }
88
89 return accessConfig, nil
90}
91
92func getClusterAccessConfigWithCache(hasClusterFlags bool) (*clusterconfig.AccessConfig, error) {
93 accessConfig := &clusterconfig.AccessConfig{

Callers 1

cluster.goFile · 0.85

Calls 3

HasErrorFunction · 0.92
AppendFunction · 0.92
FirstErrorFunction · 0.92

Tested by

no test coverage detected