OpenShift ConfigMap for Jenkins pod template:
<org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
<key>vault.hashicorp.com/agent-limits-ephemeral</key>
<value>100Gi</value>
</org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
Spits out:
apiVersion: "v1"
kind: "Pod"
metadata:
annotations:
vault.hashicorp.com/agent-limits-ephemeral: "100Gi"
I'm trying to achieve this:
apiVersion: "v1"
kind: "Pod"
metadata:
annotations:
vault.hashicorp.com/agent-limits-ephemeral: ""
But I don't know what to put here:
<org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
<key>vault.hashicorp.com/agent-limits-ephemeral</key>
<value>???</value>
</org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
These do not seem to work:
<value>""</value>
<value>''</value>
<value></value>
<value/>
CodePudding user response:
You can remove the value
tag:
<org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
<key>vault.hashicorp.com/agent-limits-ephemeral</key>
</org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>