k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes/kops/templates/presubmit-scenario.yaml.jinja (about)

     1  
     2    - name: {{job_name}}
     3      cluster: {{build_cluster}}
     4      branches:
     5      - {{branch}}
     6      {%- if run_if_changed %}
     7      run_if_changed: '{{run_if_changed}}'
     8      {%- endif %}
     9      always_run: {{always_run}}
    10      optional: {{optional}}
    11      skip_report: {{skip_report}}
    12      labels:
    13        {%- if cloud == "aws" %}
    14        preset-service-account: "true"
    15        preset-aws-ssh: "true"
    16        {%- if use_preset_for_account_creds %}
    17        {{use_preset_for_account_creds}}: "true"
    18        {%- elif not boskos_resource_type %}
    19        preset-aws-credential: "true"
    20        {%- endif %}
    21        preset-dind-enabled: "true"
    22        {%- else %}
    23        preset-k8s-ssh: "true"
    24        {%- endif %}
    25      max_concurrency: 1
    26      decorate: true
    27      decoration_config:
    28        timeout: {{job_timeout}}
    29      path_alias: k8s.io/kops
    30      {%- if scenario == 'scalability' %}
    31      extra_refs:
    32      - org: kubernetes
    33        repo: perf-tests
    34        base_ref: master
    35        path_alias: k8s.io/perf-tests
    36      {%- endif %}
    37      spec:
    38        {%- if cloud == "gce" %}
    39        serviceAccountName: k8s-kops-test
    40        {%- endif %}
    41        containers:
    42        - image: {{image}}
    43          imagePullPolicy: Always
    44          command:
    45          - runner.sh
    46          args:
    47          - ./tests/e2e/scenarios/{{ scenario }}/run-test.sh
    48          securityContext:
    49            privileged: true
    50          env:
    51          - name: KUBE_SSH_KEY_PATH
    52            value: {{kops_ssh_key_path}}
    53          - name: KUBE_SSH_USER
    54            value: {{kops_ssh_user}}
    55          - name: GOPATH
    56            value: /home/prow/go
    57          {%- if artifacts %}
    58          - name: ARTIFACTS
    59            value: {{artifacts}}
    60          {%- endif %}
    61          {%- for key, val in env.items() %}
    62          - name: {{ key }}
    63            value: "{{ val }}"
    64          {%- endfor %}
    65          resources:
    66            requests:
    67              cpu: "6"
    68              memory: "16Gi"
    69            {%- if scenario == 'scalability' %}
    70            limits:
    71              cpu: "6"
    72              memory: "16Gi"
    73            {%- endif %}