k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/load/modules/configmaps-secrets.yaml (about)

     1  # To mitigate https://github.com/kubernetes/kubernetes/issues/96635 we have to delete
     2  # configmaps and secrets only AFTER the pods using that configmap/secret are deleted.
     3  # TODO(mborsz): Merge this back to reconcile-objects.yaml once the issue above is fixed.
     4  
     5  {{$actionName := printf "%s objects" .actionName}}
     6  {{$namespaces := .namespaces}}
     7  {{$tuningSet := .tuningSet}}
     8  
     9  {{$bigDeploymentsPerNamespace := .bigDeploymentsPerNamespace}}
    10  {{$mediumDeploymentsPerNamespace := .mediumDeploymentsPerNamespace}}
    11  {{$smallDeploymentsPerNamespace := .smallDeploymentsPerNamespace}}
    12  
    13  steps:
    14  - name: {{$actionName}} configmaps and secrets
    15    phases:
    16    - namespaceRange:
    17        min: 1
    18        max: {{$namespaces}}
    19      replicasPerNamespace: {{$bigDeploymentsPerNamespace}}
    20      tuningSet: {{$tuningSet}}
    21      objectBundle:
    22      - basename: big-deployment
    23        objectTemplatePath: configmap.yaml
    24      - basename: big-deployment
    25        objectTemplatePath: secret.yaml
    26    - namespaceRange:
    27        min: 1
    28        max: {{$namespaces}}
    29      replicasPerNamespace: {{$mediumDeploymentsPerNamespace}}
    30      tuningSet: {{$tuningSet}}
    31      objectBundle:
    32      - basename: medium-deployment
    33        objectTemplatePath: configmap.yaml
    34      - basename: medium-deployment
    35        objectTemplatePath: secret.yaml
    36    - namespaceRange:
    37        min: 1
    38        max: {{$namespaces}}
    39      replicasPerNamespace: {{$smallDeploymentsPerNamespace}}
    40      tuningSet: {{$tuningSet}}
    41      objectBundle:
    42      - basename: small-deployment
    43        objectTemplatePath: configmap.yaml
    44      - basename: small-deployment
    45        objectTemplatePath: secret.yaml