Skip to content

Commit

Permalink
fix(meshpassthrough): do not require port (#10941)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
  • Loading branch information
lukidzi authored Jul 23, 2024
1 parent 597b06e commit a3efc86
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3974,8 +3974,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3974,8 +3974,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3994,8 +3994,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
2 changes: 0 additions & 2 deletions app/kumactl/cmd/install/testdata/install-crds.all.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5528,8 +5528,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
2 changes: 0 additions & 2 deletions deployments/charts/kuma/crds/kuma.io_meshpassthroughs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
2 changes: 0 additions & 2 deletions docs/generated/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7248,8 +7248,6 @@ components:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
2 changes: 0 additions & 2 deletions docs/generated/raw/crds/kuma.io_meshpassthroughs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Match struct {
// Value for the specified Type.
Value string `json:"value,omitempty"`
// Port defines the port to which a user makes a request.
Port *int `json:"port"`
Port *int `json:"port,omitempty"`
// Protocol defines the communication protocol. Possible values: `tcp`, `tls`, `grpc`, `http`, `http2`.
// +kubebuilder:default=tcp
Protocol ProtocolType `json:"protocol,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions pkg/plugins/policies/meshpassthrough/api/v1alpha1/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ properties:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
value:
description: Value for the specified Type.
type: string
required:
- port
type: object
type: array
passthroughMode:
Expand Down

0 comments on commit a3efc86

Please sign in to comment.