Skip to content

Commit

Permalink
chore: KCP Scope print columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 committed Sep 3, 2024
1 parent 8bb610a commit c14a1b1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/cloud-control/v1beta1/scope_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ type ScopeStatus struct {
//+kubebuilder:subresource:status

// Scope is the Schema for the scopes API
// +kubebuilder:printcolumn:name="Kyma",type="string",JSONPath=".spec.kymaName"
// +kubebuilder:printcolumn:name="Shoot",type="string",JSONPath=".spec.shootName"
// +kubebuilder:printcolumn:name="Provider",type="string",JSONPath=".spec.provider"
type Scope struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
12 changes: 11 additions & 1 deletion config/crd/bases/cloud-control.kyma-project.io_scopes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ spec:
singular: scope
scope: Namespaced
versions:
- name: v1beta1
- additionalPrinterColumns:
- jsonPath: .spec.kymaName
name: Kyma
type: string
- jsonPath: .spec.shootName
name: Shoot
type: string
- jsonPath: .spec.provider
name: Provider
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: Scope is the Schema for the scopes API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ spec:
singular: scope
scope: Namespaced
versions:
- name: v1beta1
- additionalPrinterColumns:
- jsonPath: .spec.kymaName
name: Kyma
type: string
- jsonPath: .spec.shootName
name: Shoot
type: string
- jsonPath: .spec.provider
name: Provider
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: Scope is the Schema for the scopes API
Expand Down

0 comments on commit c14a1b1

Please sign in to comment.