feat: rename folderUid to folder
This commit is contained in:
@@ -62,8 +62,9 @@ func (r *GitHubRepository) IsEmpty() bool {
|
||||
}
|
||||
|
||||
type RepositorySpec struct {
|
||||
// The UID of the folder that is backed by the repository.
|
||||
FolderUID string `json:"folderUid,omitempty"`
|
||||
// The folder that is backed by the repository.
|
||||
// The value is a reference to the Kubernetes metadata name of the folder in the same namespace.
|
||||
Folder string `json:"folder,omitempty"`
|
||||
|
||||
// The repository on the local file system.
|
||||
// Mutually exclusive with s3 and github.
|
||||
|
||||
@@ -173,9 +173,9 @@ func schema_pkg_apis_provisioning_v0alpha1_RepositorySpec(ref common.ReferenceCa
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"folderUid": {
|
||||
"folder": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "The UID of the folder that is backed by the repository.",
|
||||
Description: "The folder that is backed by the repository. The value is a reference to the Kubernetes metadata name of the folder in the same namespace.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
API rule violation: names_match,github.com/grafana/grafana/pkg/apis/provisioning/v0alpha1,RepositorySpec,FolderUID
|
||||
API rule violation: names_match,github.com/grafana/grafana/pkg/apis/provisioning/v0alpha1,RepositorySpec,GitHub
|
||||
|
||||
Reference in New Issue
Block a user