Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#206 from chuckha/capi-category
Browse files Browse the repository at this point in the history
✨ Add cluster-api category
  • Loading branch information
k8s-ci-robot authored Aug 21, 2019
2 parents c0b225a + a399d16 commit 0cfecc6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 1 addition & 4 deletions api/v1alpha2/dockercluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha2/dockermachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0cfecc6

Please sign in to comment.