From af7b678fcb42e4c34d074c9ad6a5985d103265bc Mon Sep 17 00:00:00 2001 From: QuentinBisson Date: Tue, 10 Dec 2024 17:51:34 +0100 Subject: [PATCH] enforce tenants --- api/v1alpha1/grafanaorganization_types.go | 2 +- .../crd/observability.giantswarm.io_grafanaorganizations.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1alpha1/grafanaorganization_types.go b/api/v1alpha1/grafanaorganization_types.go index eb39d4a0..293c1340 100644 --- a/api/v1alpha1/grafanaorganization_types.go +++ b/api/v1alpha1/grafanaorganization_types.go @@ -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. diff --git a/config/crd/observability.giantswarm.io_grafanaorganizations.yaml b/config/crd/observability.giantswarm.io_grafanaorganizations.yaml index 89c11fab..d98023d2 100644 --- a/config/crd/observability.giantswarm.io_grafanaorganizations.yaml +++ b/config/crd/observability.giantswarm.io_grafanaorganizations.yaml @@ -94,6 +94,7 @@ spec: required: - displayName - rbac + - tenants type: object status: description: GrafanaOrganizationStatus defines the observed state of GrafanaOrganization