-
Notifications
You must be signed in to change notification settings - Fork 79
/
types.go
168 lines (159 loc) · 11.2 KB
/
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
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package openstack
import (
extensionsv1alpha1 "github.com/gardener/gardener/pkg/apis/extensions/v1alpha1"
)
const (
// Name is the name of the OpenStack provider.
Name = "provider-openstack"
// CloudControllerManagerImageName is the name of the cloud-controller-manager image.
CloudControllerManagerImageName = "cloud-controller-manager"
// CSIDriverCinderImageName is the name of the csi-driver-cinder image.
CSIDriverCinderImageName = "csi-driver-cinder"
// CSIDriverManilaImageName is the name of the csi-driver-manila image.
CSIDriverManilaImageName = "csi-driver-manila"
// CSIDriverNFSImageName is the name of the csi-driver-nfs image.
CSIDriverNFSImageName = "csi-driver-nfs"
// CSIProvisionerImageName is the name of the csi-provisioner image.
CSIProvisionerImageName = "csi-provisioner"
// CSIAttacherImageName is the name of the csi-attacher image.
CSIAttacherImageName = "csi-attacher"
// CSIDiskDriverTopologyKey is the label on persistent volumes that represents availability by zone.
// See https://github.com/kubernetes/cloud-provider-openstack/blob/master/examples/cinder-csi-plugin/topology/example.yaml
// See https://gitlab.cern.ch/cloud/cloud-provider-openstack/-/blob/release-1.19/docs/using-cinder-csi-plugin.md#enable-topology-aware-dynamic-provisioning-for-cinder-volumes
CSIDiskDriverTopologyKey = "topology.cinder.csi.openstack.org/zone"
// CSIManilaDriverTopologyKey is the label on persistent volumes that represents availability by zone.
CSIManilaDriverTopologyKey = "topology.manila.csi.openstack.org/zone"
// CSISnapshotterImageName is the name of the csi-snapshotter image.
CSISnapshotterImageName = "csi-snapshotter"
// CSIResizerImageName is the name of the csi-resizer image.
CSIResizerImageName = "csi-resizer"
// CSINodeDriverRegistrarImageName is the name of the csi-node-driver-registrar image.
CSINodeDriverRegistrarImageName = "csi-node-driver-registrar"
// CSILivenessProbeImageName is the name of the csi-liveness-probe image.
CSILivenessProbeImageName = "csi-liveness-probe"
// CSISnapshotControllerImageName is the name of the csi-snapshot-controller image.
CSISnapshotControllerImageName = "csi-snapshot-controller"
// CSISnapshotValidationWebhookImageName is the name of the csi-snapshot-validation-webhook image.
CSISnapshotValidationWebhookImageName = "csi-snapshot-validation-webhook"
// MachineControllerManagerImageName is the name of the MachineControllerManager image.
MachineControllerManagerImageName = "machine-controller-manager"
// MachineControllerManagerProviderOpenStackImageName is the name of the MachineControllerManager OpenStack image.
MachineControllerManagerProviderOpenStackImageName = "machine-controller-manager-provider-openstack"
// AuthURL is a constant for the key in a cloud provider secret that holds the OpenStack auth url.
AuthURL = "authURL"
// DomainName is a constant for the key in a cloud provider secret that holds the OpenStack domain name.
DomainName = "domainName"
// TenantName is a constant for the key in a cloud provider secret that holds the OpenStack tenant name.
TenantName = "tenantName"
// UserName is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack username.
UserName = "username"
// Password is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack password.
Password = "password"
// ApplicationCredentialID is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack application credential id.
ApplicationCredentialID = "applicationCredentialID"
// ApplicationCredentialName is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack application credential name.
ApplicationCredentialName = "applicationCredentialName"
// ApplicationCredentialSecret is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack application credential secret.
ApplicationCredentialSecret = "applicationCredentialSecret"
// Region is a constant for the key in a backup secret that holds the Openstack region.
Region = "region"
// Insecure is a constant for the key in a cloud provider secret that configures whether the OpenStack client verifies the server's certificate.
Insecure = "insecure"
// CACert is a constant for the key in a cloud provider secret that configures the CA bundle used to verify the server's certificate.
CACert = "caCert"
// DNSAuthURL is a constant for the key in a DNS secret that holds the OpenStack auth url.
DNSAuthURL = "OS_AUTH_URL"
// DNSDomainName is a constant for the key in a DNS secret that holds the OpenStack domain name.
DNSDomainName = "OS_DOMAIN_NAME"
// DNSTenantName is a constant for the key in a DNS secret that holds the OpenStack tenant name.
DNSTenantName = "OS_PROJECT_NAME"
// DNSUserName is a constant for the key in a DNS secret that holds the OpenStack username.
DNSUserName = "OS_USERNAME"
// DNSPassword is a constant for the key in a DNS secret that holds the OpenStack password.
DNSPassword = "OS_PASSWORD"
// DNSApplicationCredentialID is a constant for the key in a DNS secret hat holds the OpenStack application credential id.
DNSApplicationCredentialID = "OS_APPLICATION_CREDENTIAL_ID"
// DNSApplicationCredentialName is a constant for the key in a DNS secret that holds the OpenStack application credential name.
DNSApplicationCredentialName = "OS_APPLICATION_CREDENTIAL_NAME"
// DNSApplicationCredentialSecret is a constant for the key in a DNS secret that holds the OpenStack application credential secret.
DNSApplicationCredentialSecret = "OS_APPLICATION_CREDENTIAL_SECRET"
// DNS_CA_Bundle is a constant for the key in a DNS secret that holds the Openstack CA Bundle for the KeyStone server.
DNS_CA_Bundle = "OS_CACERT"
// CloudProviderConfigName is the name of the secret containing the cloud provider config.
CloudProviderConfigName = "cloud-provider-config"
// CloudProviderDiskConfigName is the name of the secret containing the cloud provider config for disk/volume handling. It is used by kube-controller-manager.
CloudProviderDiskConfigName = "cloud-provider-disk-config"
// CloudProviderCSIDiskConfigName is the name of the secret containing the cloud provider config for disk/volume handling. It is used by csi-driver-controller.
CloudProviderCSIDiskConfigName = "cloud-provider-disk-config-csi"
// CloudProviderConfigDataKey is the key storing the cloud provider config as value in the cloud provider secret.
CloudProviderConfigDataKey = "cloudprovider.conf"
// CloudProviderConfigKeyStoneCAKey is teh key storing the KeyStone CA bundle.
CloudProviderConfigKeyStoneCAKey = "keystone-ca.crt"
// CloudControllerManagerName is a constant for the name of the CloudController deployed by the worker controller.
CloudControllerManagerName = "cloud-controller-manager"
// CSIControllerName is a constant for the chart name for a CSI Cinder controller deployment in the seed.
CSIControllerName = "csi-driver-controller"
// CSIManilaControllerName is a constant for the chart name for a CSI Manila controller deployment in the seed.
CSIManilaControllerName = "csi-driver-manila-controller"
// CSINFSControllerName is a constant for the chart name for a CSI NFS controller deployment in the shoot.
CSINFSControllerName = "csi-driver-nfs-controller"
// CSINodeName is a constant for the chart name for a CSI Cinder node deployment in the shoot.
CSINodeName = "csi-driver-node"
// CSIManilaNodeName is a constant for the chart name for a CSI Manila node deployment in the shoot.
CSIManilaNodeName = "csi-driver-manila-node"
// CSINFSNodeName is a constant for the chart name for a CSI NFS node deployment in the shoot.
CSINFSNodeName = "csi-driver-nfs-node"
// CSIDriverManila is a constant for the chart name for the CSI driver Manila deployment in the shoot.
CSIDriverManila = "csi-driver-manila"
// CSIDriverManilaController is a constant for the chart name for the CSI driver Manila / NFS controller deployment in the seed.
CSIDriverManilaController = "csi-driver-manila-controller"
// CSIDriverName is a constant for the name of the csi-driver component.
CSIDriverName = "csi-driver"
// CSIProvisionerName is a constant for the name of the csi-provisioner component.
CSIProvisionerName = "csi-provisioner"
// CSIAttacherName is a constant for the name of the csi-attacher component.
CSIAttacherName = "csi-attacher"
// CSISnapshotterName is a constant for the name of the csi-snapshotter component.
CSISnapshotterName = "csi-snapshotter"
// CSIResizerName is a constant for the name of the csi-resizer component.
CSIResizerName = "csi-resizer"
// CSISnapshotControllerName is a constant for the name of the csi-snapshot-controller component.
CSISnapshotControllerName = "csi-snapshot-controller"
// CSISnapshotValidationName is the constant for the name of the csi-snapshot-validation-webhook component.
CSISnapshotValidationName = "csi-snapshot-validation"
// CSIStorageProvisioner is a constant with the storage provisioner name which is used in storageclasses.
CSIStorageProvisioner = "cinder.csi.openstack.org"
// CSIManilaStorageProvisionerNFS is a constant with the storage provisioner name which is used in storageclasses for Manila NFS.
CSIManilaStorageProvisionerNFS = "nfs.manila.csi.openstack.org"
// CSIManilaNFS is a constant for CSI Manila NFS resource objects
CSIManilaNFS = "csi-manila-nfs"
// CSIManilaSecret is a constant for additional role/rolebiding for CSI manila plugin secret
CSIManilaSecret = "csi-manila-secret"
// MachineControllerManagerName is a constant for the name of the machine-controller-manager.
MachineControllerManagerName = "machine-controller-manager"
// MachineControllerManagerVpaName is the name of the VerticalPodAutoscaler of the machine-controller-manager deployment.
MachineControllerManagerVpaName = "machine-controller-manager-vpa"
// MachineControllerManagerMonitoringConfigName is the name of the ConfigMap containing monitoring stack configurations for machine-controller-manager.
MachineControllerManagerMonitoringConfigName = "machine-controller-manager-monitoring-config"
// PreserveWorkerHashAnnotation controls whether the providerConfig will be included in the hash calculation for the respective worker pool.
// Deprecated: It is only introduced to ease the transition to the new hash calculation.
// TODO(KA): Remove in release v1.36
PreserveWorkerHashAnnotation = "openstack.provider.extensions.gardener.cloud/worker-preserve-hash"
)
var (
// UsernamePrefix is a constant for the username prefix of components deployed by OpenStack.
UsernamePrefix = extensionsv1alpha1.SchemeGroupVersion.Group + ":" + Name + ":"
)