Skip to content

Commit

Permalink
Merge pull request #328 from opokornyy/add_column
Browse files Browse the repository at this point in the history
Add new column
  • Loading branch information
kubevirt-bot authored Mar 29, 2022
2 parents 904273c + e4b52eb commit 6c9da39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/v1beta1/ssp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type SSPStatus struct {
// +kubebuilder:subresource:status

// SSP is the Schema for the ssps API
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase"
type SSP struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
6 changes: 5 additions & 1 deletion config/crd/bases/ssp.kubevirt.io_ssps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ spec:
singular: ssp
scope: Namespaced
versions:
- name: v1beta1
- additionalPrinterColumns:
- jsonPath: .status.phase
name: Phase
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: SSP is the Schema for the ssps API
Expand Down
1 change: 1 addition & 0 deletions vendor/kubevirt.io/ssp-operator/api/v1beta1/ssp_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c9da39

Please sign in to comment.