Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit a64b4b8

Browse files
udpate CRD
1 parent f005057 commit a64b4b8

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

apis/controlplane/v1alpha4/nestedetcd_types.go

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ type NestedEtcdAddress struct {
5656
}
5757

5858
//+kubebuilder:object:root=true
59+
//+kubebuilder:resource:scope=Namespaced,path=nestedetcds,shortName=np,categories=all
60+
//+kubebuilder:printcolumn:name="Ready",type="bool",JSONPath=".status.Ready"
61+
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
5962
//+kubebuilder:subresource:status
6063

6164
// NestedEtcd is the Schema for the nestedetcds API

config/crd/bases/controlplane.cluster.x-k8s.io_nestedetcds.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,24 @@ metadata:
1010
spec:
1111
group: controlplane.cluster.x-k8s.io
1212
names:
13+
categories:
14+
- all
1315
kind: NestedEtcd
1416
listKind: NestedEtcdList
1517
plural: nestedetcds
18+
shortNames:
19+
- np
1620
singular: nestedetcd
1721
scope: Namespaced
1822
versions:
19-
- name: v1alpha4
23+
- additionalPrinterColumns:
24+
- jsonPath: .status.Ready
25+
name: Ready
26+
type: bool
27+
- jsonPath: .metadata.creationTimestamp
28+
name: Age
29+
type: date
30+
name: v1alpha4
2031
schema:
2132
openAPIV3Schema:
2233
description: NestedEtcd is the Schema for the nestedetcds API

config/rbac/role.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
---
13
apiVersion: rbac.authorization.k8s.io/v1
24
kind: ClusterRole
35
metadata:

0 commit comments

Comments
 (0)