Skip to content

Commit

Permalink
Merge pull request #78 from zhiweiyin318/shortname
Browse files Browse the repository at this point in the history
add short name mcl for managedCluster
  • Loading branch information
openshift-merge-robot authored May 27, 2021
2 parents d76f104 + 801a67d commit a6845f2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ spec:
kind: ManagedCluster
listKind: ManagedClusterList
plural: managedclusters
shortNames:
- mcl
- mcls
singular: managedcluster
scope: Cluster
preserveUnknownFields: false
Expand Down
2 changes: 1 addition & 1 deletion cluster/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope="Cluster"
// +kubebuilder:resource:scope="Cluster",shortName={"mcl","mcls"}
// +kubebuilder:printcolumn:JSONPath=`.spec.hubAcceptsClient`,name="Hub Accepted",type=boolean
// +kubebuilder:printcolumn:JSONPath=`.spec.managedClusterClientConfigs[*].url`,name="Managed Cluster URLs",type=string
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="ManagedClusterJoined")].status`,name="Joined",type=string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ spec:
kind: ManagedClusterSet
listKind: ManagedClusterSetList
plural: managedclustersets
shortNames:
- mclset
- mclsets
singular: managedclusterset
scope: Cluster
preserveUnknownFields: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ spec:
kind: ManagedClusterSetBinding
listKind: ManagedClusterSetBindingList
plural: managedclustersetbindings
shortNames:
- mclsetbinding
- mclsetbindings
singular: managedclustersetbinding
scope: Namespaced
preserveUnknownFields: false
Expand Down
4 changes: 2 additions & 2 deletions cluster/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope="Cluster"
// +kubebuilder:resource:scope="Cluster",shortName={"mclset","mclsets"}

// ManagedClusterSet defines a group of ManagedClusters that user's workload can run on.
// A workload can be defined to deployed on a ManagedClusterSet, which mean:
Expand Down Expand Up @@ -65,7 +65,7 @@ type ManagedClusterSetList struct {

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:scope="Namespaced"
// +kubebuilder:resource:scope="Namespaced",shortName={"mclsetbinding","mclsetbindings"}

// ManagedClusterSetBinding projects a ManagedClusterSet into a certain namespace.
// User is able to create a ManagedClusterSetBinding in a namespace and bind it to a
Expand Down

0 comments on commit a6845f2

Please sign in to comment.