Skip to content

Commit

Permalink
Add Toleration section for selected region (#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvshao authored Jul 23, 2024
1 parent 1f53cd6 commit d560b08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/provisioner/internal/gardener/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ func (g *GardenerProvisioner) ProvisionCluster(cluster model.Cluster, operationI
}

region := cluster.ClusterConfig.Region

if region == "me-central2" {
toleration := v1beta1.Toleration{
Key: "ksa-assured-workload",
}
shootTemplate.Spec.Tolerations = append(shootTemplate.Spec.Tolerations, toleration)
}

purpose := ""
if cluster.ClusterConfig.Purpose != nil {
purpose = *cluster.ClusterConfig.Purpose
Expand Down

0 comments on commit d560b08

Please sign in to comment.