Skip to content

Commit

Permalink
Merge pull request #1624 from grafana/fix/omitempty-status-on-folder
Browse files Browse the repository at this point in the history
fix: remove required attribute from folder conditions
  • Loading branch information
theSuess authored Jul 30, 2024
2 parents c3ffb02 + d9f95a4 commit 4801274
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/grafanafolder_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type GrafanaFolderStatus struct {
NoMatchingInstances bool `json:"NoMatchingInstances,omitempty"`
// Last time the folder was resynced
LastResync metav1.Time `json:"lastResync,omitempty"`
Conditions []metav1.Condition `json:"conditions"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/grafana.integreatly.org_grafanafolders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ spec:
description: Last time the folder was resynced
format: date-time
type: string
required:
- conditions
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ spec:
description: Last time the folder was resynced
format: date-time
type: string
required:
- conditions
type: object
type: object
served: true
Expand Down
2 changes: 0 additions & 2 deletions deploy/kustomize/base/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1441,8 +1441,6 @@ spec:
description: Last time the folder was resynced
format: date-time
type: string
required:
- conditions
type: object
type: object
served: true
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2735,19 +2735,19 @@ GrafanaFolderStatus defines the observed state of GrafanaFolder
</tr>
</thead>
<tbody><tr>
<td><b><a href="#grafanafolderstatusconditionsindex">conditions</a></b></td>
<td>[]object</td>
<td>
<br/>
</td>
<td>true</td>
</tr><tr>
<td><b>NoMatchingInstances</b></td>
<td>boolean</td>
<td>
The folder instanceSelector can't find matching grafana instances<br/>
</td>
<td>false</td>
</tr><tr>
<td><b><a href="#grafanafolderstatusconditionsindex">conditions</a></b></td>
<td>[]object</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>hash</b></td>
<td>string</td>
Expand Down

0 comments on commit 4801274

Please sign in to comment.