From 7214a9476892781c696dd892bdc108cedf1edca1 Mon Sep 17 00:00:00 2001 From: Artur Dzmitryieu Date: Mon, 2 Dec 2019 20:52:23 -0500 Subject: [PATCH] Fix CRD scope (#195) --- deploy/crds/appsody.dev_appsodyapplications_crd.yaml | 2 +- deploy/releases/daily/appsody-app-crd.yaml | 2 +- pkg/apis/appsody/v1beta1/appsodyapplication_types.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/crds/appsody.dev_appsodyapplications_crd.yaml b/deploy/crds/appsody.dev_appsodyapplications_crd.yaml index 645bf54..12dc10b 100644 --- a/deploy/crds/appsody.dev_appsodyapplications_crd.yaml +++ b/deploy/crds/appsody.dev_appsodyapplications_crd.yaml @@ -41,7 +41,7 @@ spec: listKind: AppsodyApplicationList plural: appsodyapplications singular: appsodyapplication - scope: "" + scope: Namespaced subresources: status: {} validation: diff --git a/deploy/releases/daily/appsody-app-crd.yaml b/deploy/releases/daily/appsody-app-crd.yaml index 645bf54..12dc10b 100644 --- a/deploy/releases/daily/appsody-app-crd.yaml +++ b/deploy/releases/daily/appsody-app-crd.yaml @@ -41,7 +41,7 @@ spec: listKind: AppsodyApplicationList plural: appsodyapplications singular: appsodyapplication - scope: "" + scope: Namespaced subresources: status: {} validation: diff --git a/pkg/apis/appsody/v1beta1/appsodyapplication_types.go b/pkg/apis/appsody/v1beta1/appsodyapplication_types.go index 980f0f0..d1fa329 100644 --- a/pkg/apis/appsody/v1beta1/appsodyapplication_types.go +++ b/pkg/apis/appsody/v1beta1/appsodyapplication_types.go @@ -146,6 +146,7 @@ const ( // AppsodyApplication is the Schema for the appsodyapplications API // +k8s:openapi-gen=true +// +kubebuilder:resource:path=appsodyapplications,scope=Namespaced // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Image",type="string",JSONPath=".spec.applicationImage",priority=0,description="Absolute name of the deployed image containing registry and tag" // +kubebuilder:printcolumn:name="Exposed",type="boolean",JSONPath=".spec.expose",priority=0,description="Specifies whether deployment is exposed externally via default Route"