You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: api/v1beta1/grafanafolder_types.go
+19-4
Original file line number
Diff line number
Diff line change
@@ -30,19 +30,26 @@ import (
30
30
31
31
// GrafanaFolderSpec defines the desired state of GrafanaFolder
32
32
// +kubebuilder:validation:XValidation:rule="(has(self.parentFolderUID) && !(has(self.parentFolderRef))) || (has(self.parentFolderRef) && !(has(self.parentFolderUID))) || !(has(self.parentFolderRef) && (has(self.parentFolderUID)))", message="Only one of parentFolderUID or parentFolderRef can be set"
Copy file name to clipboardexpand all lines: docs/docs/api.md
+15-6
Original file line number
Diff line number
Diff line change
@@ -2807,7 +2807,7 @@ GrafanaFolder is the Schema for the grafanafolders API
2807
2807
<td>
2808
2808
GrafanaFolderSpec defines the desired state of GrafanaFolder<br/>
2809
2809
<br/>
2810
-
<i>Validations</i>:<li>(has(self.parentFolderUID) && !(has(self.parentFolderRef))) || (has(self.parentFolderRef) && !(has(self.parentFolderUID))) || !(has(self.parentFolderRef) && (has(self.parentFolderUID))): Only one of parentFolderUID or parentFolderRef can be set</li>
2810
+
<i>Validations</i>:<li>(has(self.parentFolderUID) && !(has(self.parentFolderRef))) || (has(self.parentFolderRef) && !(has(self.parentFolderUID))) || !(has(self.parentFolderRef) && (has(self.parentFolderUID))): Only one of parentFolderUID or parentFolderRef can be set</li><li>((!has(oldSelf.uid) && !has(self.uid)) || (has(oldSelf.uid) && has(self.uid))): spec.uid is immutable</li>
2811
2811
</td>
2812
2812
<td>false</td>
2813
2813
</tr><tr>
@@ -2841,7 +2841,7 @@ GrafanaFolderSpec defines the desired state of GrafanaFolder
0 commit comments