问题描述
我有 3 个文件,base.yaml、overlay.yaml 和 kustomization.yaml
base.yaml:
apiVersion: authentication.gke.io/v2alpha1
kind: ClientConfig
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: default
namespace: kube-public
spec:
authentication:
- name: proxy
proxy: 127.0.0.1
overlay.yaml:
apiVersion: authentication.gke.io/v2alpha1
kind: ClientConfig
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: default
namespace: kube-public
spec:
authentication:
- name: oidc
clientID: asdf
clientSecret: asdf
issuerURI: a.google.com
kustomization.yaml:
resources:
- base.yaml
patchesStrategicMerge:
- overlay.yaml
当我做 kustomize build .
时,我得到了:
apiVersion: authentication.gke.io/v2alpha1
kind: ClientConfig
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: default
namespace: kube-public
spec:
authentication:
- clientID: asdf
clientSecret: asdf
issuerURI: a.google.com
name: oidc
虽然我期待
apiVersion: authentication.gke.io/v2alpha1
kind: ClientConfig
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: default
namespace: kube-public
spec:
authentication:
- name: proxy
proxy: 127.0.0.1
- clientID: asdf
clientSecret: asdf
issuerURI: a.google.com
name: oidc
我想知道为什么“代理”项目被“oidc”项目取代而不是合并在一起。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)