Skip to content

自定义补丁型运维特征patchKey不生效 #3696

Answered by FogDong
Echo-Van asked this question in Q&A
Discussion options

You must be logged in to vote

You can change to:

  patch: {
      spec: template: spec: {
          // +patchKey=name
          containers: [{
              name: context.name
              // +patchStrategy=retainKeys
              env: [
                  for k, v in parameter.env {
                      name:  k
                      value: v
                  },
              ]
          }]
      }
  }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Echo-Van
Comment options

Answer selected by Echo-Van
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants