diff --git a/cmd/k8s-operator/deploy/crds/tailscale.com_tailnets.yaml b/cmd/k8s-operator/deploy/crds/tailscale.com_tailnets.yaml index 642fc3d4b..200d83943 100644 --- a/cmd/k8s-operator/deploy/crds/tailscale.com_tailnets.yaml +++ b/cmd/k8s-operator/deploy/crds/tailscale.com_tailnets.yaml @@ -19,6 +19,10 @@ spec: - jsonPath: .metadata.creationTimestamp name: Age type: date + - description: Status of the deployed Tailnet resources. + jsonPath: .status.conditions[?(@.type == "TailnetReady")].reason + name: Status + type: string name: v1alpha1 schema: openAPIV3Schema: diff --git a/cmd/k8s-operator/deploy/manifests/operator.yaml b/cmd/k8s-operator/deploy/manifests/operator.yaml index 5e89a8dff..5a64f2c7d 100644 --- a/cmd/k8s-operator/deploy/manifests/operator.yaml +++ b/cmd/k8s-operator/deploy/manifests/operator.yaml @@ -5104,6 +5104,10 @@ spec: - jsonPath: .metadata.creationTimestamp name: Age type: date + - description: Status of the deployed Tailnet resources. + jsonPath: .status.conditions[?(@.type == "TailnetReady")].reason + name: Status + type: string name: v1alpha1 schema: openAPIV3Schema: diff --git a/k8s-operator/apis/v1alpha1/types_tailnet.go b/k8s-operator/apis/v1alpha1/types_tailnet.go index 921d9bab5..a3a17374b 100644 --- a/k8s-operator/apis/v1alpha1/types_tailnet.go +++ b/k8s-operator/apis/v1alpha1/types_tailnet.go @@ -18,6 +18,7 @@ var TailnetKind = "Tailnet" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,shortName=tn // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=`.status.conditions[?(@.type == "TailnetReady")].reason`,description="Status of the deployed Tailnet resources." type Tailnet struct { metav1.TypeMeta `json:",inline"`