Skip to content

Commit

Permalink
enforce tenants
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson committed Dec 10, 2024
1 parent af028f1 commit af7b678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/grafanaorganization_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type GrafanaOrganizationSpec struct {
// Tenants is a list of tenants that are associated with the Grafana organization.
// +kubebuilder:example={"giantswarm"}
// +kube:validation:MinItems=1
Tenants []TenantID `json:"tenants,omitempty"`
Tenants []TenantID `json:"tenants"`
}

// TenantID is a unique identifier for a tenant. It must be lowercase.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ spec:
required:
- displayName
- rbac
- tenants
type: object
status:
description: GrafanaOrganizationStatus defines the observed state of GrafanaOrganization
Expand Down

0 comments on commit af7b678

Please sign in to comment.