2023-01-13 08:03:35 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: {{ _template.cluster.secret }}
|
|
|
|
namespace: argo-cd
|
|
|
|
labels:
|
|
|
|
argocd.argoproj.io/secret-type: cluster
|
|
|
|
type: Opaque
|
|
|
|
stringData:
|
|
|
|
name: {{ _template.cluster.name }}
|
|
|
|
server: {{ _template.cluster.url }}
|
|
|
|
config: |
|
|
|
|
{
|
|
|
|
"tlsClientConfig": {
|
2023-04-02 20:36:23 +00:00
|
|
|
"insecure": false,
|
|
|
|
"caData": "{{ _template.kubeconfig.ca }}",
|
|
|
|
"certData": "{{ _template.kubeconfig.certificate }}",
|
|
|
|
"keyData": "{{ _template.kubeconfig.key }}"
|
2023-01-13 08:03:35 +00:00
|
|
|
}
|
|
|
|
}
|