-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1822 from mborsz/miti
Mitigate kubernetes/kubernetes#96635 in load test
- Loading branch information
Showing
3 changed files
with
75 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
clusterloader2/testing/load/modules/configmaps-secrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# To mitigate https://github.com/kubernetes/kubernetes/issues/96635 we have to delete | ||
# configmaps and secrets only AFTER the pods using that configmap/secret are deleted. | ||
# TODO(mborsz): Merge this back to reconcile-objects.yaml once the issue above is fixed. | ||
|
||
{{$actionName := printf "%s objects" .actionName}} | ||
{{$namespaces := .namespaces}} | ||
{{$tuningSet := .tuningSet}} | ||
|
||
{{$bigDeploymentsPerNamespace := .bigDeploymentsPerNamespace}} | ||
{{$mediumDeploymentsPerNamespace := .mediumDeploymentsPerNamespace}} | ||
{{$smallDeploymentsPerNamespace := .smallDeploymentsPerNamespace}} | ||
|
||
steps: | ||
- name: {{$actionName}} configmaps and secrets | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: {{$namespaces}} | ||
replicasPerNamespace: {{$bigDeploymentsPerNamespace}} | ||
tuningSet: {{$tuningSet}} | ||
objectBundle: | ||
- basename: big-deployment | ||
objectTemplatePath: configmap.yaml | ||
- basename: big-deployment | ||
objectTemplatePath: secret.yaml | ||
- namespaceRange: | ||
min: 1 | ||
max: {{$namespaces}} | ||
replicasPerNamespace: {{$mediumDeploymentsPerNamespace}} | ||
tuningSet: {{$tuningSet}} | ||
objectBundle: | ||
- basename: medium-deployment | ||
objectTemplatePath: configmap.yaml | ||
- basename: medium-deployment | ||
objectTemplatePath: secret.yaml | ||
- namespaceRange: | ||
min: 1 | ||
max: {{$namespaces}} | ||
replicasPerNamespace: {{$smallDeploymentsPerNamespace}} | ||
tuningSet: {{$tuningSet}} | ||
objectBundle: | ||
- basename: small-deployment | ||
objectTemplatePath: configmap.yaml | ||
- basename: small-deployment | ||
objectTemplatePath: secret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters