Skip to content

Commit d66a807

Browse files
authored
Merge pull request #4879 from oribon/egressservice_host_print
EgressService: add additionalPrinterColumn for .status.host
2 parents 744eced + a797154 commit d66a807

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dist/templates/k8s.ovn.org_egressservices.yaml.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ spec:
1414
singular: egressservice
1515
scope: Namespaced
1616
versions:
17-
- name: v1
17+
- additionalPrinterColumns:
18+
- jsonPath: .status.host
19+
name: Assigned Host
20+
type: string
21+
name: v1
1822
schema:
1923
openAPIV3Schema:
2024
description: |-

go-controller/pkg/crd/egressservice/v1/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626
// +kubebuilder::singular=egressservice
2727
// +kubebuilder:object:root=true
2828
// +kubebuilder:subresource:status
29+
// +kubebuilder:printcolumn:name="Assigned Host",type=string,JSONPath=".status.host"
2930
// EgressService is a CRD that allows the user to request that the source
3031
// IP of egress packets originating from all of the pods that are endpoints
3132
// of the corresponding LoadBalancer Service would be its ingress IP.

0 commit comments

Comments
 (0)