forked from crossplane-contrib/provider-gcp
/
resourcerecordset_types.go
69 lines (55 loc) · 2.47 KB
/
resourcerecordset_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
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
// ResourceRecordSetParameters define the desired state of an gcp dns Resource Record.
type ResourceRecordSetParameters struct {
// Rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section
// 3.6.1)
// +optional
Rrdatas []string `json:"aliasTarget,omitempty"`
// Ttl: Number of seconds that this ResourceRecordSet can be cached by
// resolvers.
// +optional
TTL *int64 `json:"ttl,omitempty"`
// Type: The identifier of a supported record type. See the list of
// Supported DNS record types.
Type *string `json:"type"`
// ZoneID is the ID of the hosted zone that contains the resource record sets
// that you want to change.
ZoneID *string `json:"zoneId,omitempty"`
}
// +kubebuilder:object:root=true
// ResourceRecordSet is a managed resource that represents an gcp dns Resource Record.
// +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="TYPE",type="string",JSONPath=".spec.forProvider.type"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}
type ResourceRecordSet struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ResourceRecordSetSpec `json:"spec"`
Status ResourceRecordSetStatus `json:"status,omitempty"`
}
// ResourceRecordSetSpec defines the desired state of an gcp dns Resource Record.
type ResourceRecordSetSpec struct {
xpv1.ResourceSpec `json:",inline"`
ForProvider ResourceRecordSetParameters `json:"forProvider"`
}
// ResourceRecordSetStatus represents the observed state of a ResourceRecordSet.
type ResourceRecordSetStatus struct {
xpv1.ResourceStatus `json:",inline"`
}
// +kubebuilder:object:root=true
// ResourceRecordSetList contains a list of ResourceRecordSet.
type ResourceRecordSetList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
Items []ResourceRecordSet `json:"items"`
}