Skip to content

Commit

Permalink
add default
Browse files Browse the repository at this point in the history
  • Loading branch information
klinch0 committed Jan 20, 2025
1 parent 536bd3a commit b722250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apps/tenant/templates/kubeconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{- if $k8sClientSecret }}
{{- $apiServerEndpoint := index $cozyConfig.data "api-server-endpoint" }}
{{- $managedKubeconfigEndpoint := index $cozyConfig.data "managed-kubeconfig-endpoint" }}
{{- $managedKubeconfigEndpoint := default "" (get $cozyConfig.data "managed-kubeconfig-endpoint") }}
{{- if and $managedKubeconfigEndpoint (ne $managedKubeconfigEndpoint "") }}
{{- $apiServerEndpoint = $managedKubeconfigEndpoint }}
{{- end }}
Expand Down

0 comments on commit b722250

Please sign in to comment.