Skip to content

Commit

Permalink
add namespace in KonnectNamespacedRef
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Sep 19, 2024
1 parent 120a257 commit 76a32c2
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/configuration/v1alpha1/konnect_controlplaneref_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type KonnectNamespacedRef struct {
// +kubebuilder:validation:Required
Name string `json:"name"`

// TODO: Implement cross namespace references:
// https://github.com/Kong/kubernetes-configuration/issues/36
// Namespace is the namespace where the Konnect Control Plane is in.
// +optional
Namespace string `json:"namespace,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/configuration.konghq.com_kongconsumers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/configuration.konghq.com_kongservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/configuration.konghq.com_kongupstreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/configuration.konghq.com_kongvaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
name:
description: Name is the name of the Konnect Control Plane.
type: string
namespace:
description: Namespace is the namespace where the Konnect
Control Plane is in.
type: string
required:
- name
type: object
Expand Down
1 change: 1 addition & 0 deletions docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ KonnectNamespacedRef is the schema for the KonnectNamespacedRef type.
| Field | Description |
| --- | --- |
| `name` _string_ | Name is the name of the Konnect Control Plane. |
| `namespace` _string_ | Namespace is the namespace where the Konnect Control Plane is in. |


_Appears in:_
Expand Down

0 comments on commit 76a32c2

Please sign in to comment.