-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinfrastructure.cluster.x-k8s.io_ionoscloudclustertemplates.yaml
131 lines (130 loc) · 6.13 KB
/
infrastructure.cluster.x-k8s.io_ionoscloudclustertemplates.yaml
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
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
name: ionoscloudclustertemplates.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
names:
kind: IonosCloudClusterTemplate
listKind: IonosCloudClusterTemplateList
plural: ionoscloudclustertemplates
singular: ionoscloudclustertemplate
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: IonosCloudClusterTemplate is the Schema for the ionoscloudclustertemplates
API.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: IonosCloudClusterTemplateSpec defines the desired state of
IonosCloudClusterTemplate.
properties:
template:
description: IonosCloudClusterTemplateResource describes the data
for creating a IonosCloudCluster from a template.
properties:
spec:
description: IonosCloudClusterSpec defines the desired state of
IonosCloudCluster.
properties:
controlPlaneEndpoint:
description: |-
ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
provider-provided block IP into the kube-vip manifest.
properties:
host:
description: The hostname on which the API server is serving.
type: string
port:
description: The port on which the API server is serving.
format: int32
type: integer
required:
- host
- port
type: object
x-kubernetes-validations:
- message: port must be within 1-65535
rule: size(self.host) == 0 && self.port == 0 || self.port
> 0 && self.port < 65536
credentialsRef:
description: CredentialsRef is a reference to the secret containing
the credentials to access the IONOS Cloud API.
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- message: credentialsRef.name must be provided
rule: has(self.name) && self.name != ''
loadBalancerProviderRef:
description: |-
LoadBalancerProviderRef is a reference to the load balancer provider configuration.
An empty loadBalancerProviderRef field is allowed and means to disable any load balancer logic.
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
location:
description: Location is the location where the data centers
should be located.
example: de/txl
minLength: 1
type: string
x-kubernetes-validations:
- message: location is immutable
rule: self == oldSelf
required:
- credentialsRef
type: object
x-kubernetes-validations:
- message: location is required when controlPlaneEndpoint.host
is set
rule: self.controlPlaneEndpoint.host == '' || has(self.location)
required:
- spec
type: object
required:
- template
type: object
type: object
served: true
storage: true