Add additional printer columns
This commit is contained in:
parent
13ef78ce20
commit
10f6cb5e90
|
|
@ -33,9 +33,9 @@ type RunnerSpec struct {
|
||||||
// RunnerStatus defines the observed state of Runner
|
// RunnerStatus defines the observed state of Runner
|
||||||
type RunnerStatus struct {
|
type RunnerStatus struct {
|
||||||
Registration RunnerStatusRegistration `json:"registration"`
|
Registration RunnerStatusRegistration `json:"registration"`
|
||||||
Phase string `json:"Phase"`
|
Phase string `json:"phase"`
|
||||||
Reason string `json:"Reason"`
|
Reason string `json:"reason"`
|
||||||
Message string `json:"Message"`
|
Message string `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RunnerStatusRegistration struct {
|
type RunnerStatusRegistration struct {
|
||||||
|
|
@ -46,6 +46,8 @@ type RunnerStatusRegistration struct {
|
||||||
|
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
|
// +kubebuilder:printcolumn:JSONPath=".spec.repository",name=Repository,type=string
|
||||||
|
// +kubebuilder:printcolumn:JSONPath=".status.phase",name=Status,type=string
|
||||||
|
|
||||||
// Runner is the Schema for the runners API
|
// Runner is the Schema for the runners API
|
||||||
type Runner struct {
|
type Runner struct {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,13 @@ metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: runners.actions.summerwind.dev
|
name: runners.actions.summerwind.dev
|
||||||
spec:
|
spec:
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- JSONPath: .spec.repository
|
||||||
|
name: Repository
|
||||||
|
type: string
|
||||||
|
- JSONPath: .status.phase
|
||||||
|
name: Status
|
||||||
|
type: string
|
||||||
group: actions.summerwind.dev
|
group: actions.summerwind.dev
|
||||||
names:
|
names:
|
||||||
kind: Runner
|
kind: Runner
|
||||||
|
|
@ -48,11 +55,11 @@ spec:
|
||||||
status:
|
status:
|
||||||
description: RunnerStatus defines the observed state of Runner
|
description: RunnerStatus defines the observed state of Runner
|
||||||
properties:
|
properties:
|
||||||
Message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
Phase:
|
phase:
|
||||||
type: string
|
type: string
|
||||||
Reason:
|
reason:
|
||||||
type: string
|
type: string
|
||||||
registration:
|
registration:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -69,9 +76,9 @@ spec:
|
||||||
- token
|
- token
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- Message
|
- message
|
||||||
- Phase
|
- phase
|
||||||
- Reason
|
- reason
|
||||||
- registration
|
- registration
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue