generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
zz_listener_types.go
executable file
·223 lines (176 loc) · 9.25 KB
/
zz_listener_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ListenerObservation struct {
// The unique ID for the listener.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type ListenerParameters struct {
// Specifies the access policy for the listener. Valid options are white and
// black.
// +kubebuilder:validation:Optional
AccessPolicy *string `json:"accessPolicy,omitempty" tf:"access_policy,omitempty"`
// Specifies whether to enable advanced forwarding.
// If advanced forwarding is enabled, more flexible forwarding policies and rules are supported.
// +kubebuilder:validation:Optional
AdvancedForwardingEnabled *bool `json:"advancedForwardingEnabled,omitempty" tf:"advanced_forwarding_enabled,omitempty"`
// Specifies the ID of the CA certificate used by the listener.
// This parameter is valid when protocol is set to HTTPS.
// +crossplane:generate:reference:type=Certificate
// +kubebuilder:validation:Optional
CACertificate *string `json:"caCertificate,omitempty" tf:"ca_certificate,omitempty"`
// Reference to a Certificate to populate caCertificate.
// +kubebuilder:validation:Optional
CACertificateRef *v1.Reference `json:"caCertificateRef,omitempty" tf:"-"`
// Selector for a Certificate to populate caCertificate.
// +kubebuilder:validation:Optional
CACertificateSelector *v1.Selector `json:"caCertificateSelector,omitempty" tf:"-"`
// The ID of the default pool with which the listener is associated. Changing this
// creates a new listener.
// +crossplane:generate:reference:type=Pool
// +kubebuilder:validation:Optional
DefaultPoolID *string `json:"defaultPoolId,omitempty" tf:"default_pool_id,omitempty"`
// Reference to a Pool to populate defaultPoolId.
// +kubebuilder:validation:Optional
DefaultPoolIDRef *v1.Reference `json:"defaultPoolIdRef,omitempty" tf:"-"`
// Selector for a Pool to populate defaultPoolId.
// +kubebuilder:validation:Optional
DefaultPoolIDSelector *v1.Selector `json:"defaultPoolIdSelector,omitempty" tf:"-"`
// Human-readable description for the listener.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Specifies whether transfer the load balancer EIP in the X-Forward-EIP header to
// backend servers. The default value is false. This parameter is valid only when the protocol is set to HTTP or
// HTTPS.
// +kubebuilder:validation:Optional
ForwardEIP *bool `json:"forwardEip,omitempty" tf:"forward_eip,omitempty"`
// Specifies whether to use HTTP/2. The default value is false. This parameter is valid
// only when the protocol is set to HTTPS.
// +kubebuilder:validation:Optional
Http2Enable *bool `json:"http2Enable,omitempty" tf:"http2_enable,omitempty"`
// Specifies the ip group id for the listener.
// +crossplane:generate:reference:type=IPGroup
// +kubebuilder:validation:Optional
IPGroup *string `json:"ipGroup,omitempty" tf:"ip_group,omitempty"`
// Reference to a IPGroup to populate ipGroup.
// +kubebuilder:validation:Optional
IPGroupRef *v1.Reference `json:"ipGroupRef,omitempty" tf:"-"`
// Selector for a IPGroup to populate ipGroup.
// +kubebuilder:validation:Optional
IPGroupSelector *v1.Selector `json:"ipGroupSelector,omitempty" tf:"-"`
// Specifies the idle timeout for the listener. Value range: 0 to 4000.
// +kubebuilder:validation:Optional
IdleTimeout *float64 `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// The load balancer on which to provision this listener. Changing this
// creates a new listener.
// +crossplane:generate:reference:type=LoadBalancer
// +kubebuilder:validation:Optional
LoadbalancerID *string `json:"loadbalancerId,omitempty" tf:"loadbalancer_id,omitempty"`
// Reference to a LoadBalancer to populate loadbalancerId.
// +kubebuilder:validation:Optional
LoadbalancerIDRef *v1.Reference `json:"loadbalancerIdRef,omitempty" tf:"-"`
// Selector for a LoadBalancer to populate loadbalancerId.
// +kubebuilder:validation:Optional
LoadbalancerIDSelector *v1.Selector `json:"loadbalancerIdSelector,omitempty" tf:"-"`
// Human-readable name for the listener.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The protocol can either be TCP, UDP, HTTP or HTTPS.
// Changing this creates a new listener.
// +kubebuilder:validation:Required
Protocol *string `json:"protocol" tf:"protocol,omitempty"`
// The port on which to listen for client traffic. Changing this creates a
// new listener.
// +kubebuilder:validation:Required
ProtocolPort *float64 `json:"protocolPort" tf:"protocol_port,omitempty"`
// The region in which to create the listener resource. If omitted, the
// provider-level region will be used. Changing this creates a new listener.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Specifies the request timeout for the listener. Value range: 1 to 300.
// This parameter is valid when protocol is set to HTTP or HTTPS.
// +kubebuilder:validation:Optional
RequestTimeout *float64 `json:"requestTimeout,omitempty" tf:"request_timeout,omitempty"`
// Specifies the response timeout for the listener. Value range: 1 to 300.
// This parameter is valid when protocol is set to HTTP or HTTPS.
// +kubebuilder:validation:Optional
ResponseTimeout *float64 `json:"responseTimeout,omitempty" tf:"response_timeout,omitempty"`
// Specifies the ID of the server certificate used by the listener.
// This parameter is mandatory when protocol is set to HTTPS.
// +crossplane:generate:reference:type=Certificate
// +kubebuilder:validation:Optional
ServerCertificate *string `json:"serverCertificate,omitempty" tf:"server_certificate,omitempty"`
// Reference to a Certificate to populate serverCertificate.
// +kubebuilder:validation:Optional
ServerCertificateRef *v1.Reference `json:"serverCertificateRef,omitempty" tf:"-"`
// Selector for a Certificate to populate serverCertificate.
// +kubebuilder:validation:Optional
ServerCertificateSelector *v1.Selector `json:"serverCertificateSelector,omitempty" tf:"-"`
// Lists the IDs of SNI certificates (server certificates with a domain name) used
// by the listener. This parameter is valid when protocol is set to HTTPS.
// +crossplane:generate:reference:type=Certificate
// +kubebuilder:validation:Optional
SniCertificate []*string `json:"sniCertificate,omitempty" tf:"sni_certificate,omitempty"`
// References to Certificate to populate sniCertificate.
// +kubebuilder:validation:Optional
SniCertificateRefs []v1.Reference `json:"sniCertificateRefs,omitempty" tf:"-"`
// Selector for a list of Certificate to populate sniCertificate.
// +kubebuilder:validation:Optional
SniCertificateSelector *v1.Selector `json:"sniCertificateSelector,omitempty" tf:"-"`
// Specifies the TLS cipher policy for the listener. Valid options are:
// tls-1-0-inherit, tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict, tls-1-2-fs, tls-1-0-with-1-3, and tls-1-2-fs-with-1-3.
// This parameter is valid when protocol is set to HTTPS.
// +kubebuilder:validation:Optional
TLSCiphersPolicy *string `json:"tlsCiphersPolicy,omitempty" tf:"tls_ciphers_policy,omitempty"`
// The key/value pairs to associate with the listener.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
// ListenerSpec defines the desired state of Listener
type ListenerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ListenerParameters `json:"forProvider"`
}
// ListenerStatus defines the observed state of Listener.
type ListenerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ListenerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Listener is the Schema for the Listeners API. ""page_title: "flexibleengine_lb_listener_v3"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,flexibleengine}
type Listener struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ListenerSpec `json:"spec"`
Status ListenerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ListenerList contains a list of Listeners
type ListenerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Listener `json:"items"`
}
// Repository type metadata.
var (
Listener_Kind = "Listener"
Listener_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Listener_Kind}.String()
Listener_KindAPIVersion = Listener_Kind + "." + CRDGroupVersion.String()
Listener_GroupVersionKind = CRDGroupVersion.WithKind(Listener_Kind)
)
func init() {
SchemeBuilder.Register(&Listener{}, &ListenerList{})
}