kind: ConfigMap
apiVersion: v1
metadata:
  name: gretl-bigtmp
  labels:
    app: gretl-platform
    role: jenkins-slave
data:
  template: |-
    <org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
      <inheritFrom></inheritFrom>
      <name>gretl-bigtmp</name>
      <instanceCap>1</instanceCap>
      <idleMinutes>0</idleMinutes>
      <label>gretl-bigtmp</label>
      <serviceAccount>jenkins</serviceAccount>
      <nodeSelector></nodeSelector>
      <volumes>
        <org.csanchez.jenkins.plugins.kubernetes.volumes.PersistentVolumeClaim>
          <mountPath>/tmp</mountPath>
          <!-- Attention: Before creating this ConfigMap, please adapt the persistent volume claim name below so it points to the right PVC -->
          <claimName>agi-gretl-ENVIRONMENT-lowback</claimName>
          <readOnly>false</readOnly>
        </org.csanchez.jenkins.plugins.kubernetes.volumes.PersistentVolumeClaim>
      </volumes>
      <containers>
        <org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
          <name>jnlp</name>
          <!-- Attention: Before creating this ConfigMap, please adapt the image URI below so it points to the right project -->
          <image>image-registry.openshift-image-registry.svc:5000/PROJECT-NAME/gretl:latest</image>
          <privileged>false</privileged>
          <alwaysPullImage>true</alwaysPullImage>
          <workingDir>/workspace</workingDir>
          <command></command>
          <args>${computer.jnlpmac} ${computer.name}</args>
          <ttyEnabled>false</ttyEnabled>
          <resourceRequestCpu>200m</resourceRequestCpu>
          <resourceRequestMemory>1Gi</resourceRequestMemory>
          <resourceLimitCpu>1</resourceLimitCpu>
          <resourceLimitMemory>2.5Gi</resourceLimitMemory>
          <envVars/>
        </org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
      </containers>
      <envVars/>
      <annotations/>
      <imagePullSecrets/>
      <nodeProperties/>
      <yaml>
    apiVersion: v1
    kind: Pod
    spec:
      containers:
        - name: jnlp
          envFrom:
            - configMapRef:
                name: gretl-resources
            - secretRef:
                name: gretl-secrets
      </yaml>
    </org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
