generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
zz_rdns_types.go
executable file
·100 lines (79 loc) · 4 KB
/
zz_rdns_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
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
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 RDNSObservation struct {
// The Public IPv4 or IPv6 address that will receive the PTR record. A matching A or AAAA record must exist.
// The public Linode IPv4 or IPv6 address to operate on.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The name of the RDNS address.
// The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
Rdns *string `json:"rdns,omitempty" tf:"rdns,omitempty"`
// If true, the RDNS assignment will be retried within the operation timeout period.
// If true, the RDNS assignment will be retried within the operation timeout period.
WaitForAvailable *bool `json:"waitForAvailable,omitempty" tf:"wait_for_available,omitempty"`
}
type RDNSParameters struct {
// The Public IPv4 or IPv6 address that will receive the PTR record. A matching A or AAAA record must exist.
// The public Linode IPv4 or IPv6 address to operate on.
// +kubebuilder:validation:Optional
Address *string `json:"address,omitempty" tf:"address,omitempty"`
// The name of the RDNS address.
// The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
// +kubebuilder:validation:Optional
Rdns *string `json:"rdns,omitempty" tf:"rdns,omitempty"`
// If true, the RDNS assignment will be retried within the operation timeout period.
// If true, the RDNS assignment will be retried within the operation timeout period.
// +kubebuilder:validation:Optional
WaitForAvailable *bool `json:"waitForAvailable,omitempty" tf:"wait_for_available,omitempty"`
}
// RDNSSpec defines the desired state of RDNS
type RDNSSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider RDNSParameters `json:"forProvider"`
}
// RDNSStatus defines the observed state of RDNS.
type RDNSStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider RDNSObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// RDNS is the Schema for the RDNSs API. Manages the RDNS / PTR record for the IP Address associated with a Linode Instance.
// +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,linode}
type RDNS struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.address)",message="address is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.rdns)",message="rdns is a required parameter"
Spec RDNSSpec `json:"spec"`
Status RDNSStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// RDNSList contains a list of RDNSs
type RDNSList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []RDNS `json:"items"`
}
// Repository type metadata.
var (
RDNS_Kind = "RDNS"
RDNS_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RDNS_Kind}.String()
RDNS_KindAPIVersion = RDNS_Kind + "." + CRDGroupVersion.String()
RDNS_GroupVersionKind = CRDGroupVersion.WithKind(RDNS_Kind)
)
func init() {
SchemeBuilder.Register(&RDNS{}, &RDNSList{})
}