(clusterConfig *clusterconfig.Config, filePath string)
| 70 | } |
| 71 | |
| 72 | func 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 | |
| 81 | func getNewClusterAccessConfig(clusterConfigFile string) (*clusterconfig.AccessConfig, error) { |
| 82 | accessConfig := &clusterconfig.AccessConfig{} |
no test coverage detected