Refactor cluster registration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-02 22:36:23 +02:00
parent 3f9fc4b7aa
commit 89cf69adc7
5 changed files with 34 additions and 22 deletions

View File

@ -24,5 +24,5 @@ spec:
targetRevision: HEAD
path: {% raw %}'{{ path }}'{% endraw +%}
destination:
server: {{ _template.cluster.name }}
server: {{ _template.cluster.url }}
namespace: default

View File

@ -11,8 +11,10 @@ stringData:
server: {{ _template.cluster.url }}
config: |
{
"bearerToken": "{{ _template.cluster.token }}",
"tlsClientConfig": {
"insecure": true
"insecure": false,
"caData": "{{ _template.kubeconfig.ca }}",
"certData": "{{ _template.kubeconfig.certificate }}",
"keyData": "{{ _template.kubeconfig.key }}"
}
}