From 32049bbf0218f677d37c7d24d35215a6ee145251 Mon Sep 17 00:00:00 2001 From: Nicholas Thomson Date: Mon, 4 Nov 2024 16:00:00 -0800 Subject: [PATCH 1/2] Add space inaccessible label --- apis/upbound/v1alpha1/space_types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/upbound/v1alpha1/space_types.go b/apis/upbound/v1alpha1/space_types.go index 9e1d57e..54124df 100644 --- a/apis/upbound/v1alpha1/space_types.go +++ b/apis/upbound/v1alpha1/space_types.go @@ -35,6 +35,10 @@ const ( // SpaceProviderLabelKey is the key used to identify the cloud provider for // the space. The value should always match the `spec.provider` field. SpaceProviderLabelKey = "spaces.upbound.io/provider" + + // SpaceInaccessibleLabelKey is the key used to indicate that the space + // cannot be accessed by the current user. + SpaceInaccessibleLabelKey = "spaces.upbound.io/inaccessible" ) // SpaceMode is the mode in which the space connects to Upbound. From 5d8d576a7e321dc1df104e24cb8445587c65f62a Mon Sep 17 00:00:00 2001 From: Nicholas Thomson Date: Mon, 4 Nov 2024 16:20:53 -0800 Subject: [PATCH 2/2] Update apis/upbound/v1alpha1/space_types.go Co-authored-by: Taylor Thornton <2375126+tnthornton@users.noreply.github.com> --- apis/upbound/v1alpha1/space_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/upbound/v1alpha1/space_types.go b/apis/upbound/v1alpha1/space_types.go index 54124df..50d4931 100644 --- a/apis/upbound/v1alpha1/space_types.go +++ b/apis/upbound/v1alpha1/space_types.go @@ -36,8 +36,8 @@ const ( // the space. The value should always match the `spec.provider` field. SpaceProviderLabelKey = "spaces.upbound.io/provider" - // SpaceInaccessibleLabelKey is the key used to indicate that the space - // cannot be accessed by the current user. + // SpaceInaccessibleLabelKey is the key used to indicate that the current + // user is not entitled to use the space. SpaceInaccessibleLabelKey = "spaces.upbound.io/inaccessible" )