mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-21 14:28:54 -04:00
Make Kubernetes serviceCIDR configurable in config (#2660)
* config: pass serviceCIDR to kubeadm init * terraform: add serviceCIDR
This commit is contained in:
parent
c2d1a7b7fb
commit
63cdd03d09
13 changed files with 103 additions and 61 deletions
|
@ -298,6 +298,13 @@ func (k *KubeadmInitYAML) SetProviderID(providerID string) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetServiceSubnet sets the service subnet.
|
||||
func (k *KubeadmInitYAML) SetServiceSubnet(subnet string) {
|
||||
if subnet != "" {
|
||||
k.ClusterConfiguration.Networking.ServiceSubnet = subnet
|
||||
}
|
||||
}
|
||||
|
||||
// Marshal into a k8s resource YAML.
|
||||
func (k *KubeadmInitYAML) Marshal() ([]byte, error) {
|
||||
return kubernetes.MarshalK8SResources(k)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue