Skip to content

Commit

Permalink
fix json tag
Browse files Browse the repository at this point in the history
Signed-off-by: Guy Daich <guy.daich@sap.com>
  • Loading branch information
guydc committed Jan 29, 2025
1 parent acfea54 commit 4d2205a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/policy_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type TargetSelectorNamespaces struct {
// Indicates where targets would be selected for the Policy's TargetSelector.
// +kubebuilder:validation:Enum=All
// +kubebuilder:validation:Required
FromNamespaces FromNamespaces `json:"omitempty"`
FromNamespaces FromNamespaces `json:"from,omitempty"`
}

func (p PolicyTargetReferences) GetTargetRefs() []gwapiv1a2.LocalPolicyTargetReferenceWithSectionName {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1511,14 +1511,14 @@ spec:
Note: when referencing targets in a different namespace, appropriate ReferenceGrants must be
configured to allow the selection.
properties:
omitempty:
from:
description: Indicates where targets would be selected for
the Policy's TargetSelector.
enum:
- All
type: string
required:
- omitempty
- from
type: object
required:
- kind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,14 +621,14 @@ spec:
Note: when referencing targets in a different namespace, appropriate ReferenceGrants must be
configured to allow the selection.
properties:
omitempty:
from:
description: Indicates where targets would be selected for
the Policy's TargetSelector.
enum:
- All
type: string
required:
- omitempty
- from
type: object
required:
- kind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1204,14 +1204,14 @@ spec:
Note: when referencing targets in a different namespace, appropriate ReferenceGrants must be
configured to allow the selection.
properties:
omitempty:
from:
description: Indicates where targets would be selected for
the Policy's TargetSelector.
enum:
- All
type: string
required:
- omitempty
- from
type: object
required:
- kind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4420,14 +4420,14 @@ spec:
Note: when referencing targets in a different namespace, appropriate ReferenceGrants must be
configured to allow the selection.
properties:
omitempty:
from:
description: Indicates where targets would be selected for
the Policy's TargetSelector.
enum:
- All
type: string
required:
- omitempty
- from
type: object
required:
- kind
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -4329,7 +4329,7 @@ _Appears in:_

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `omitempty` | _[FromNamespaces](#fromnamespaces)_ | true | | Indicates where targets would be selected for the Policy's TargetSelector. |
| `from` | _[FromNamespaces](#fromnamespaces)_ | true | | Indicates where targets would be selected for the Policy's TargetSelector. |


#### Timeout
Expand Down
2 changes: 1 addition & 1 deletion site/content/zh/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -4329,7 +4329,7 @@ _Appears in:_

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `omitempty` | _[FromNamespaces](#fromnamespaces)_ | true | | Indicates where targets would be selected for the Policy's TargetSelector. |
| `from` | _[FromNamespaces](#fromnamespaces)_ | true | | Indicates where targets would be selected for the Policy's TargetSelector. |


#### Timeout
Expand Down

0 comments on commit 4d2205a

Please sign in to comment.