Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRD: Print state. #1511

Merged
merged 1 commit into from
Nov 27, 2024
Merged
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
1 change: 1 addition & 0 deletions sdk/api/v1alpha1/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (r ReleaseState) String() string {
// +kubebuilder:printcolumn:name="Kubernetes version",type=string,JSONPath=`.spec.components[?(@.name=="kubernetes")].version`,description="Kubernetes version in this release"
// +kubebuilder:printcolumn:name="Flatcar version",type=string,JSONPath=`.spec.components[?(@.name=="flatcar")].version`,description="Flatcar version in this release"
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.spec.date`,description="Time since release creation"
// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.spec.state`,description="State of this release"
// +kubebuilder:printcolumn:name="Release notes",type=string,JSONPath=`.metadata.annotations['giantswarm\.io/release-notes']`,priority=1,description="Release notes for this release"
// +kubebuilder:resource:scope=Cluster,categories=common;giantswarm

Expand Down
4 changes: 4 additions & 0 deletions sdk/config/crd/bases/release.giantswarm.io_releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
jsonPath: .spec.date
name: Age
type: date
- description: State of this release
jsonPath: .spec.state
name: State
type: string
- description: Release notes for this release
jsonPath: .metadata.annotations['giantswarm\.io/release-notes']
name: Release notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
jsonPath: .spec.date
name: Age
type: date
- description: State of this release
jsonPath: .spec.state
name: State
type: string
- description: Release notes for this release
jsonPath: .metadata.annotations['giantswarm\.io/release-notes']
name: Release notes
Expand Down