Skip to content

Commit 93fcb98

Browse files
committed
feat: add new printer columns
1 parent 9a2ff12 commit 93fcb98

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed

chart/templates/skyhook-crd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
- jsonPath: .status.status
3030
name: Status
3131
type: string
32+
- jsonPath: .spec.priority
33+
name: Priority
34+
type: integer
3235
- jsonPath: .metadata.creationTimestamp
3336
name: Age
3437
type: date
@@ -41,6 +44,9 @@ spec:
4144
- jsonPath: .status.packageList
4245
name: Packages
4346
type: string
47+
- jsonPath: .spec.deploymentPolicy
48+
name: Policy
49+
type: string
4450
name: v1alpha1
4551
schema:
4652
openAPIV3Schema:

operator/api/v1alpha1/skyhook_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
*
@@ -711,10 +711,12 @@ func StateToStatus(s State) Status {
711711

712712
//+kubebuilder:object:root=true
713713
//+kubebuilder:printcolumn:name="Status",type=string,JSONPath=".status.status"
714+
//+kubebuilder:printcolumn:name="Priority",type=integer,JSONPath=".spec.priority"
714715
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
715716
//+kubebuilder:printcolumn:name="Nodes In-Progress",type=integer,JSONPath=".status.nodesInProgress"
716717
//+kubebuilder:printcolumn:name="Complete Nodes",type=string,JSONPath=".status.completeNodes"
717718
//+kubebuilder:printcolumn:name="Packages",type=string,JSONPath=".status.packageList"
719+
//+kubebuilder:printcolumn:name="Policy",type=string,JSONPath=".spec.deploymentPolicy"
718720
//+kubebuilder:subresource:status
719721
//+kubebuilder:resource:scope=Cluster
720722

operator/api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/config/crd/bases/skyhook.nvidia.com_deploymentpolicies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
#

operator/config/crd/bases/skyhook.nvidia.com_skyhooks.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
#
@@ -34,6 +34,9 @@ spec:
3434
- jsonPath: .status.status
3535
name: Status
3636
type: string
37+
- jsonPath: .spec.priority
38+
name: Priority
39+
type: integer
3740
- jsonPath: .metadata.creationTimestamp
3841
name: Age
3942
type: date
@@ -46,6 +49,9 @@ spec:
4649
- jsonPath: .status.packageList
4750
name: Packages
4851
type: string
52+
- jsonPath: .spec.deploymentPolicy
53+
name: Policy
54+
type: string
4955
name: v1alpha1
5056
schema:
5157
openAPIV3Schema:

operator/config/rbac/role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
#

operator/config/webhook/manifests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
#
44
#

0 commit comments

Comments
 (0)