feat: rename folderUid to folder

This commit is contained in:
Mariell Hoversholm
2024-11-14 08:38:04 +01:00
parent 59dc40ea0b
commit 80bcdba70c
3 changed files with 5 additions and 5 deletions
+3 -2
View File
@@ -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