Skip to content

Commit

Permalink
Bump Server to v1beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeb committed Jul 16, 2024
1 parent da0455c commit df0c62a
Show file tree
Hide file tree
Showing 26 changed files with 1,378 additions and 1 deletion.
88 changes: 88 additions & 0 deletions charts/linkerd-crds/templates/policy/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,94 @@ spec:
description: The protocol of the server
jsonPath: .spec.proxyProtocol
- name: v1beta2
served: true
storage: false
schema:
openAPIV3Schema:
type: object
required: [spec]
properties:
spec:
type: object
required:
- port
oneOf:
- required: [podSelector]
- required: [externalWorkloadSelector]
properties:
podSelector:
type: object
description: >-
Selects pods in the same namespace.
The result of matchLabels and matchExpressions are ANDed.
Selects all if empty.
properties:
matchLabels:
type: object
x-kubernetes-preserve-unknown-fields: true
matchExpressions:
type: array
items:
type: object
required: [key, operator]
properties:
key:
type: string
operator:
type: string
enum: [In, NotIn, Exists, DoesNotExist]
values:
type: array
items:
type: string
externalWorkloadSelector:
type: object
description: >-
Selects ExternalWorkloads in the same namespace.
The result of matchLabels and matchExpressions are ANDed.
Selects all if empty.
properties:
matchLabels:
type: object
x-kubernetes-preserve-unknown-fields: true
matchExpressions:
type: array
items:
type: object
required: [key, operator]
properties:
key:
type: string
operator:
type: string
enum: [In, NotIn, Exists, DoesNotExist]
values:
type: array
items:
type: string
port:
description: >-
A port name or number. Must exist in a pod spec.
x-kubernetes-int-or-string: true
proxyProtocol:
description: >-
Configures protocol discovery for inbound connections.
Supersedes the `config.linkerd.io/opaque-ports` annotation.
type: string
default: unknown
additionalPrinterColumns:
- name: Port
type: string
description: The port the server is listening on
jsonPath: .spec.port
- name: Protocol
type: string
description: The protocol of the server
jsonPath: .spec.proxyProtocol
- name: v1beta3
served: true
storage: true
schema:
Expand Down
88 changes: 88 additions & 0 deletions cli/cmd/testdata/install_crds.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions cli/cmd/testdata/install_helm_crds_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions cli/cmd/testdata/install_helm_crds_output_ha.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion controller/gen/apis/server/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type Server struct {

// ServerSpec specifies a Server resource.
type ServerSpec struct {
AccessPolicy string `json:"accessPolicy,omitempty"`
PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"`
ExternalWorkloadSelector *metav1.LabelSelector `json:"externalWorkloadSelector,omitempty"`
Port intstr.IntOrString `json:"port,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions controller/gen/apis/server/v1beta3/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +k8s:deepcopy-gen=package

package v1beta3
Loading

0 comments on commit df0c62a

Please sign in to comment.