mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05:00
Move control-plane tolerations var
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
e0ad836fdc
commit
cf0ac148f3
@ -201,19 +201,19 @@ func (i *ChartLoader) loadCertManagerValues() map[string]any {
|
||||
"prometheus": map[string]any{
|
||||
"enabled": false,
|
||||
},
|
||||
"tolerations": controlPlaneTolerations(),
|
||||
"tolerations": controlPlaneTolerations,
|
||||
"webhook": map[string]any{
|
||||
"tolerations": controlPlaneTolerations(),
|
||||
"tolerations": controlPlaneTolerations,
|
||||
},
|
||||
"cainjector": map[string]any{
|
||||
"tolerations": controlPlaneTolerations(),
|
||||
"tolerations": controlPlaneTolerations,
|
||||
},
|
||||
"startupapicheck": map[string]any{
|
||||
"timeout": "5m",
|
||||
"extraArgs": []string{
|
||||
"--verbose",
|
||||
},
|
||||
"tolerations": controlPlaneTolerations(),
|
||||
"tolerations": controlPlaneTolerations,
|
||||
},
|
||||
}
|
||||
}
|
||||
@ -474,18 +474,3 @@ func loadChartsDir(efs embed.FS, dir string) (*chart.Chart, error) {
|
||||
|
||||
return loader.LoadFiles(files)
|
||||
}
|
||||
|
||||
func controlPlaneTolerations() []map[string]any {
|
||||
return []map[string]any{
|
||||
{
|
||||
"key": "node-role.kubernetes.io/control-plane",
|
||||
"effect": "NoSchedule",
|
||||
"operator": "Exists",
|
||||
},
|
||||
{
|
||||
"key": "node-role.kubernetes.io/master",
|
||||
"effect": "NoSchedule",
|
||||
"operator": "Exists",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -193,3 +193,16 @@ var ciliumVals = map[string]map[string]any{
|
||||
"l7Proxy": false,
|
||||
},
|
||||
}
|
||||
|
||||
var controlPlaneTolerations = []map[string]any{
|
||||
{
|
||||
"key": "node-role.kubernetes.io/control-plane",
|
||||
"effect": "NoSchedule",
|
||||
"operator": "Exists",
|
||||
},
|
||||
{
|
||||
"key": "node-role.kubernetes.io/master",
|
||||
"effect": "NoSchedule",
|
||||
"operator": "Exists",
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user