Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions operatorcontrolplane/v1alpha1/types_conditioncheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import (
// +kubebuilder:object:root=true
// +kubebuilder:resource:path=podnetworkconnectivitychecks,scope=Namespaced
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Target Endpoint",type=string,JSONPath=".spec.targetEndpoint",description="The endpoint being checked"
// +kubebuilder:printcolumn:name="Reachable",type=string,JSONPath=".status.conditions[?(@.type==\"Reachable\")].status",description="Whether the target endpoint is reachable"
// +kubebuilder:printcolumn:name="Since",type=date,JSONPath=".status.conditions[?(@.type==\"Reachable\")].lastTransitionTime",description="The time the reachability status last changed"
// +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/639
// +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=network,operatorOrdering=01
// +kubebuilder:metadata:annotations=include.release.openshift.io/self-managed-high-availability=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ spec:
singular: podnetworkconnectivitycheck
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- description: The endpoint being checked
jsonPath: .spec.targetEndpoint
name: Target Endpoint
type: string
- description: Whether the target endpoint is reachable
jsonPath: .status.conditions[?(@.type=="Reachable")].status
name: Reachable
type: string
- description: The time the reachability status last changed
jsonPath: .status.conditions[?(@.type=="Reachable")].lastTransitionTime
name: Since
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ podnetworkconnectivitychecks.controlplane.operator.openshift.io:
KindName: PodNetworkConnectivityCheck
Labels: {}
PluralName: podnetworkconnectivitychecks
PrinterColumns: []
PrinterColumns:
- description: The endpoint being checked
jsonPath: .spec.targetEndpoint
name: Target Endpoint
type: string
- description: Whether the target endpoint is reachable
jsonPath: .status.conditions[?(@.type=="Reachable")].status
name: Reachable
type: string
- description: The time the reachability status last changed
jsonPath: .status.conditions[?(@.type=="Reachable")].lastTransitionTime
name: Since
type: date
Scope: Namespaced
ShortNames: null
TopLevelFeatureGates: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ spec:
singular: podnetworkconnectivitycheck
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- description: The endpoint being checked
jsonPath: .spec.targetEndpoint
name: Target Endpoint
type: string
- description: Whether the target endpoint is reachable
jsonPath: .status.conditions[?(@.type=="Reachable")].status
name: Reachable
type: string
- description: The time the reachability status last changed
jsonPath: .status.conditions[?(@.type=="Reachable")].lastTransitionTime
name: Since
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
Expand Down