Skip to content

Commit

Permalink
Added Configurations fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fra98 committed Nov 15, 2023
1 parent b802989 commit 93d4c77
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 6 additions & 0 deletions apis/networking/v1alpha1/configuration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ type ConfigurationStatus struct {
// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=liqo
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="ClusterID",type=string,priority=1,JSONPath=`.metadata.labels.liqo\.io/remote-cluster-id`
// +kubebuilder:printcolumn:name="Desired Pod CIDR ",type=string,JSONPath=`.spec.remote.cidr.pod`
// +kubebuilder:printcolumn:name="Remapped Pod CIDR",type=string,JSONPath=`.status.remote.cidr.pod`
// +kubebuilder:printcolumn:name="Desired External CIDR",type=string,priority=1,JSONPath=`.spec.remote.cidr.external`
// +kubebuilder:printcolumn:name="Remapped External CIDR",type=string,priority=1,JSONPath=`.status.remote.cidr.external`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

// Configuration contains the network configuration of a pair of clusters,
// including the local and the remote pod and external CIDRs and how the where remapped.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,29 @@ spec:
singular: configuration
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .metadata.labels.liqo\.io/remote-cluster-id
name: ClusterID
priority: 1
type: string
- jsonPath: .spec.remote.cidr.pod
name: 'Desired Pod CIDR '
type: string
- jsonPath: .status.remote.cidr.pod
name: Remapped Pod CIDR
type: string
- jsonPath: .spec.remote.cidr.external
name: Desired External CIDR
priority: 1
type: string
- jsonPath: .status.remote.cidr.external
name: Remapped External CIDR
priority: 1
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: Configuration contains the network configuration of a pair of
Expand Down

0 comments on commit 93d4c77

Please sign in to comment.