Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit e26ae10

Browse files
authored
Merge pull request #117 from vincepri/fixup-crds
Add kubebuilder markers to CRDs for status and namespace
2 parents 6537609 + eac849e commit e26ae10

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

api/v1alpha2/kubeadmbootstrapconfig_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ type KubeadmConfigStatus struct {
4949
}
5050

5151
// +kubebuilder:object:root=true
52+
// +kubebuilder:resource:path=kubeadmconfigs,scope=Namespaced
53+
// +kubebuilder:storageversion
54+
// +kubebuilder:subresource:status
5255

5356
// KubeadmConfig is the Schema for the kubeadmconfigs API
5457
type KubeadmConfig struct {

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ spec:
1010
names:
1111
kind: KubeadmConfig
1212
plural: kubeadmconfigs
13-
scope: ""
13+
scope: Namespaced
14+
subresources:
15+
status: {}
1416
validation:
1517
openAPIV3Schema:
1618
description: KubeadmConfig is the Schema for the kubeadmconfigs API

0 commit comments

Comments
 (0)