-
Notifications
You must be signed in to change notification settings - Fork 11
/
types.go
105 lines (97 loc) · 6.08 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
package metal
import "path/filepath"
const (
// Name is the name of the Metal provider.
Name = "provider-metal"
// MachineControllerManagerImageName is the name of the MachineControllerManager image.
MachineControllerManagerImageName = "machine-controller-manager"
// MCMProviderMetalImageName is the name of the metal provider plugin image.
MCMProviderMetalImageName = "machine-controller-manager-provider-metal"
// CCMImageName is the name of the cloud controller manager image.
CCMImageName = "metalccm"
// GroupRolebindingControllerImageName is the name of the GroupRolebindingController image
GroupRolebindingControllerImageName = "group-rolebinding-controller"
// AccountingExporterImageName is the name of the accounting exporter image
AccountingExporterImageName = "accounting-exporter"
// AuthNWebhookImageName is the name of the AuthN Webhook configured with the shoot kube-apiserver
AuthNWebhookImageName = "authn-webhook"
// AudittailerImageName is the name of the Audittailer to deploy to the shoot.
AudittailerImageName = "audittailer"
// DroptailerImageName is the name of the Droptailer to deploy to the shoot.
DroptailerImageName = "droptailer"
// MetallbSpeakerImageName is the name of the metallb speaker to deploy to the shoot.
MetallbSpeakerImageName = "metallb-speaker"
// MetallbControllerImageName is the name of the metallb controller to deploy to the shoot.
MetallbControllerImageName = "metallb-controller"
// CSIControllerImageName is the name of the csi lvm controller to deploy to the seed's shoot namespace.
CSIControllerImageName = "csi-lvm-controller"
// CSIProvisionerImageName is the name of the csi lvm provisioner to deploy to the seed's shoot namespace.
CSIProvisionerImageName = "csi-lvm-provisioner"
// DurosControllerImageName is the name of the duros controller to deploy to the seed's shoot namespace.
DurosControllerImageName = "duros-controller"
// DurosResourceName is the name of the duros resource to deploy to the seed's shoot namespace.
DurosResourceName = "shoot-default-storage"
// FirewallResourceName is the name of the firewall resource deployed to the shoot's namespace.
FirewallResourceName = "firewall"
// NodeInitImageName is the name of the node-init to deploy to the shoot.
NodeInitImageName = "node-init"
// KubectlImageName is the name of the kubectl image used for metallb health checking to deploy to the shoot.
KubectlImageName = "kubectl"
// APIKey is a constant for the key in a cloud provider secret.
APIKey = "metalAPIKey"
// APIHMac is a constant for the hmac in a cloud provider secret.
APIHMac = "metalAPIHMac"
// CloudProviderConfigName is the name of the configmap containing the cloud provider config.
CloudProviderConfigName = "cloud-provider-config"
// MachineControllerManagerName is a constant for the name of the machine-controller-manager.
MachineControllerManagerName = "machine-controller-manager"
// AuthNWebHookConfigName is the name of the configmap containing the authn webhook config.
AuthNWebHookConfigName = "authn-webhook-config"
// AuthNWebHookCertName is the name of the secret containing the authn webhook certificates.
AuthNWebHookCertName = "authn-webhook-cert"
// ShootExtensionTypeTokenIssuer appears unused? CHECKME
ShootExtensionTypeTokenIssuer = "tokenissuer"
// AuditPolicyName is the name of the configmap containing the audit policy.
AuditPolicyName = "audit-policy-override"
// AudittailerNamespace is the namespace where the audit tailer will get deployed.
AudittailerNamespace = "audit"
// AudittailerClientSecretName is the name of the secret containing the certificates for the audittailer client.
AudittailerClientSecretName = "audittailer-client" // nolint:gosec
// AudittailerServerSecretName is the name of the secret containing the certificates for the audittailer server.
AudittailerServerSecretName = "audittailer-server" // nolint:gosec
// AuditForwarderSplunkConfigName is the name of the configmap containing the splunk configuration for the auditforwarder.
AuditForwarderSplunkConfigName = "audit-to-splunk-config"
// AuditForwarderSplunkSecretName is the name of the secret containing the splunk hec token and, if required, the ca certificate.
AuditForwarderSplunkSecretName = "audit-to-splunk-secret" // nolint:gosec
// DroptailerNamespace is the namespace where the firewall droptailer will get deployed.
DroptailerNamespace = "firewall"
// DroptailerClientSecretName is the name of the secret containing the certificates for the droptailer client.
DroptailerClientSecretName = "droptailer-client" // nolint:gosec
// DroptailerServerSecretName is the name of the secret containing the certificates for the droptailer server.
DroptailerServerSecretName = "droptailer-server" // nolint:gosec
// CloudControllerManagerDeploymentName is the name of the deployment for the cloud controller manager.
CloudControllerManagerDeploymentName = "cloud-controller-manager"
// CloudControllerManagerServerName is the name of the secret containing the certificates for the cloud controller manager server.
CloudControllerManagerServerName = "cloud-controller-manager-server"
// GroupRolebindingControllerName is the name of the deployment for the group rolebinding controller.
GroupRolebindingControllerName = "group-rolebinding-controller"
// AccountingExporterName is the name of the deployment for the accounting exporter.
AccountingExporterName = "accounting-exporter"
// AuthNWebhookDeploymentName is the name of the deployment for the authn webhook.
AuthNWebhookDeploymentName = "kube-jwt-authn-webhook"
// AuthNWebhookServerName is the name of the secret containing the certificates for the authn webhook.
AuthNWebhookServerName = "kube-jwt-authn-webhook-server"
// DurosControllerDeploymentName is the name of the deployment for the duros-controller.
DurosControllerDeploymentName = "duros-controller"
)
var (
// ChartsPath is the path to the charts
ChartsPath = filepath.Join("charts")
// InternalChartsPath is the path to the internal charts
InternalChartsPath = filepath.Join(ChartsPath, "internal")
)
// Credentials stores Metal credentials.
type Credentials struct {
MetalAPIKey string
MetalAPIHMac string
}