Skip to content

Commit 59afdb6

Browse files
authored
Merge pull request #7205 from sbueringer/pr-dockermachine-columns
🌱 CAPD: add columns to DockerMachine CRD
2 parents f94635a + 4471ac1 commit 59afdb6

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

test/infrastructure/docker/api/v1beta1/dockermachine_types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
const (
26-
// MachineFinalizer allows ReconcileDockerMachine to clean up resources associated with AWSMachine before
26+
// MachineFinalizer allows ReconcileDockerMachine to clean up resources associated with DockerMachine before
2727
// removing it from the apiserver.
2828
MachineFinalizer = "dockermachine.infrastructure.cluster.x-k8s.io"
2929
)
@@ -96,6 +96,9 @@ type DockerMachineStatus struct {
9696
// +kubebuilder:storageversion
9797
// +kubebuilder:subresource:status
9898
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels['cluster\\.x-k8s\\.io/cluster-name']",description="Cluster"
99+
// +kubebuilder:printcolumn:name="Machine",type="string",JSONPath=".metadata.ownerReferences[?(@.kind==\"Machine\")].name",description="Machine object which owns with this DockerMachine"
100+
// +kubebuilder:printcolumn:name="ProviderID",type="string",JSONPath=".spec.providerID",description="Provider ID"
101+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Machine ready status"
99102
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of DockerMachine"
100103

101104
// DockerMachine is the Schema for the dockermachines API.

test/infrastructure/docker/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachines.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)