Skip to content

Commit

Permalink
[vcluster]: cilium installation-check (#92)
Browse files Browse the repository at this point in the history
* deprecation: remove gitops component

* fix: update helm-docs

* fix: cilium installer

* helm-docs

* fix: cilium installation

* fix: remove ownerref
  • Loading branch information
oliverbaehler authored May 2, 2023
1 parent 9e13559 commit a50ed39
Show file tree
Hide file tree
Showing 4 changed files with 6 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.4.1
version: 0.4.2
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.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Virtual Kubernetes Cluster

Expand Down
11 changes: 0 additions & 11 deletions charts/vcluster/addons/scripts/configure-current.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
# ------------------------------------------------------------------------------
{{- include "pkg.functions.kubernetes" $ | nindent 0 }}

# -- Convert Kubeconfigs

UID=$(kubectl get cm -n {{ $.Release.Namespace }} {{ include "pkg.cluster.admin.cfg" $ }} -o jsonpath='{.metadata.uid}') || true

# Decrypt Cert Data to Base64
CA=$(base64 /pki/admin-client/ca.crt | tr -d '\n')
C_CERT=$(base64 /pki/admin-client/tls.crt | tr -d '\n')
Expand Down Expand Up @@ -45,13 +41,6 @@ metadata:
argocd.argoproj.io/secret-type: cluster
{{- end }}
namespace: {{ $namespace }}
{{- if .ownerref }}
ownerReferences:
- apiVersion: v1
kind: ConfigMap
name: {{ include "pkg.cluster.admin.cfg" $ }}
uid: "${UID}"
{{- end }}
{{- if (eq $kind "configmap") }}
kind: ConfigMap
data:
Expand Down
4 changes: 4 additions & 0 deletions charts/vcluster/addons/scripts/configure-vcluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ kubectl -n kube-system delete configmap/kube-proxy daemonset/kube-proxy 2>/dev/n

{{- $job := $.Values.lifecycle }}
{{- if $job.cilium.enabled }}
if kubectl get ds cilium -n kube-system &> /dev/null; then
echo "Cilium already installed"
else
{{- if or (and ($job.cilium.on_install) ($.Release.IsInstall)) (not $job.cilium.on_install) }}
# install cilium
helm repo add cilium https://helm.cilium.io/
Expand All @@ -114,6 +117,7 @@ helm upgrade --install cilium cilium/cilium {{ with $job.cilium.version }}--vers
{{- end }}
--namespace kube-system
{{- end }}
fi
{{- end }}

# ------------------------------------------------------------------------------
Expand Down

0 comments on commit a50ed39

Please sign in to comment.