要在OpenShift ConfigMap中放置什么以获取Jenkins pod模板中的空字符串值“”?

svujldwt  于 2022-11-21  发布在  Jenkins
关注(0)|答案(1)|浏览(126)

适用于Jenkins的OpenShift配置图面板模板:

<org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
  <key>vault.hashicorp.com/agent-limits-ephemeral</key>
  <value>100Gi</value>
</org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>

吐出:

apiVersion: "v1"
kind: "Pod"
metadata:
  annotations:
    vault.hashicorp.com/agent-limits-ephemeral: "100Gi"

我正在努力实现这一点:

apiVersion: "v1"
kind: "Pod"
metadata:
  annotations:
    vault.hashicorp.com/agent-limits-ephemeral: ""

但我不知道该在这里写些什么:

<org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
  <key>vault.hashicorp.com/agent-limits-ephemeral</key>
  <value>???</value>
</org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>

这些似乎不起作用:

<value>""</value>
<value>''</value>
<value></value>
<value/>
s6fujrry

s6fujrry1#

您可以移除value标签:

<org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>
  <key>vault.hashicorp.com/agent-limits-ephemeral</key>
</org.csanchez.jenkins.plugins.kubernetes.PodAnnotation>

相关问题