Skip to content

Commit

Permalink
[vcluster]: fix argocd kubeconfig (#88)
Browse files Browse the repository at this point in the history
* fix argocd kubeconfig

* fix: reuse template for argocd
  • Loading branch information
oliverbaehler authored Apr 27, 2023
1 parent bfd4b85 commit 7e6efae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/vcluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: vcluster
description: Virtual Kubernetes Cluster
type: application
version: 0.3.2
version: 0.3.3
appVersion: 0.1.0
keywords:
- vcluster
Expand Down
2 changes: 1 addition & 1 deletion charts/vcluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__This Chart is under active development! We try to improve documentation and values consistency over time__

![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Virtual Kubernetes Cluster

Expand Down
12 changes: 1 addition & 11 deletions charts/vcluster/addons/scripts/configure-current.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,7 @@ kind: Secret
stringData:
{{- end }}
{{- if (eq $type "argo") }}
name: {{ (default $name .clustername) }}
server: {{ $endpoint }}
config: |
{
"tlsClientConfig": {
"insecure": false,
"caData": "${CA}",
"keyData": "${C_KEY}",
"certData": "${C_CERT}"
}
}
{{- include "pkg.kubeconfigs.argo" (dict "name" (default $name .clustername) "endpoint" $endpoint "ctx" $) | nindent 2 }}
{{- else }}
{{- default "kubeconfig" $key | nindent 2 }}: |
{{- include "pkg.kubeconfigs.kubeconfig.certs" (dict "endpoint" $endpoint "ctx" $) | nindent 4 }}
Expand Down

0 comments on commit 7e6efae

Please sign in to comment.