forked from openshift/library-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
42 lines (31 loc) · 1.27 KB
/
config.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
package options
// ManifestConfig is a struct of values to be used in manifest templates.
type ManifestConfig struct {
// ConfigHostPath is a host path mounted into the controller manager pods to hold the config file.
ConfigHostPath string
// ConfigFileName is the filename of config file inside ConfigHostPath.
ConfigFileName string
// CloudProviderHostPath is a host path mounted into the apiserver pods to hold cloud provider configuration.
CloudProviderHostPath string
// SecretsHostPath holds certs and keys
SecretsHostPath string
// Namespace is the target namespace for the bootstrap controller manager to be created.
Namespace string
// Image is the pull spec of the image to use for the controller manager.
Image string
// ImagePullPolicy specifies the image pull policy to use for the images.
ImagePullPolicy string
}
// FileConfig
type FileConfig struct {
// BootstrapConfig holds the rendered control plane component config file for bootstrapping (phase 1).
BootstrapConfig []byte
// PostBootstrapConfig holds the rendered control plane component config file after bootstrapping (phase 2).
PostBootstrapConfig []byte
// Assets holds the loaded assets like certs and keys.
Assets map[string][]byte
}
type TemplateData struct {
ManifestConfig
FileConfig
}