From a399d16d4d30d95ceedd03f34890a544dcc46a0f Mon Sep 17 00:00:00 2001 From: Chuck Ha Date: Tue, 20 Aug 2019 20:12:54 +0100 Subject: [PATCH] Add cluster-api category Signed-off-by: Chuck Ha --- api/v1alpha2/dockercluster_types.go | 5 +---- api/v1alpha2/dockermachine_types.go | 2 +- .../infrastructure.cluster.x-k8s.io_dockerclusters.yaml | 4 +++- .../infrastructure.cluster.x-k8s.io_dockermachines.yaml | 4 +++- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/api/v1alpha2/dockercluster_types.go b/api/v1alpha2/dockercluster_types.go index dcb9019d6b54..4b1255e53260 100644 --- a/api/v1alpha2/dockercluster_types.go +++ b/api/v1alpha2/dockercluster_types.go @@ -20,9 +20,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! -// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. - const ( // ClusterFinalizer allows DockerClusterReconciler to clean up resources associated with DockerCluster before // removing it from the apiserver. @@ -54,9 +51,9 @@ type APIEndpoint struct { Port int `json:"port"` } +// +kubebuilder:resource:path=dockerclusters,scope=Namespaced,categories=cluster-api // +kubebuilder:subresource:status // +kubebuilder:object:root=true -// +kubebuilder:subresource:status // DockerCluster is the Schema for the dockerclusters API type DockerCluster struct { diff --git a/api/v1alpha2/dockermachine_types.go b/api/v1alpha2/dockermachine_types.go index 6ccd76c8502d..be69cb46e140 100644 --- a/api/v1alpha2/dockermachine_types.go +++ b/api/v1alpha2/dockermachine_types.go @@ -39,7 +39,7 @@ type DockerMachineStatus struct { Ready bool `json:"ready"` } -// +kubebuilder:subresource:status +// +kubebuilder:resource:path=dockermachines,scope=Namespaced,categories=cluster-api // +kubebuilder:object:root=true // +kubebuilder:subresource:status diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_dockerclusters.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_dockerclusters.yaml index 148a1f1549b6..b9bd0a9d12ab 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_dockerclusters.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_dockerclusters.yaml @@ -8,9 +8,11 @@ metadata: spec: group: infrastructure.cluster.x-k8s.io names: + categories: + - cluster-api kind: DockerCluster plural: dockerclusters - scope: "" + scope: Namespaced subresources: status: {} validation: diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachines.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachines.yaml index 8f9155963c36..aad8329747f8 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachines.yaml @@ -8,9 +8,11 @@ metadata: spec: group: infrastructure.cluster.x-k8s.io names: + categories: + - cluster-api kind: DockerMachine plural: dockermachines - scope: "" + scope: Namespaced subresources: status: {} validation: