Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions deployer/infra_components/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,35 @@ def deploy_support(self, cert_manager_version, debug):
)
print_colour("Done!")

# Patch the tigera operator to remove the NoSchedule toleration
# otherwise it will schedule on tainted nodes
print_colour("Patching tigera operator...")
patch_tolerations = {
"spec": {
"template": {
"spec": {
"tolerations": [
{"effect": "NoExecute", "operator": "Exists"},

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is coming from https://github.com/projectcalico/calico/blob/da6b089ff18f2e4ab104def0f78e68c8741fc221/manifests/tigera-operator.yaml#L535-L539

Wasn't sure if I should keep it, but for now it doens't bother us I think

],
}
}
}
}
patch_tolerations_json = json.dumps(patch_tolerations)
subprocess.check_call(
[
"kubectl",
"--namespace",
"tigera-operator",
"patch",
"deployment",
"tigera-operator",
"--patch",
patch_tolerations_json,
],
)
print_colour("Done!")

print_colour("Provisioning support charts...")

support_dir = HELM_CHARTS_DIR.joinpath("support")
Expand Down
Loading