diff --git a/charts/app-dashboard/Chart.yaml b/charts/app-dashboard/Chart.yaml index 3b7338a..bae8363 100644 --- a/charts/app-dashboard/Chart.yaml +++ b/charts/app-dashboard/Chart.yaml @@ -7,7 +7,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0-RC2 +version: 1.0.0-RC3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/app-dashboard/templates/clusterrole.yaml b/charts/app-dashboard/templates/clusterrole.yaml new file mode 100644 index 0000000..d80f6fd --- /dev/null +++ b/charts/app-dashboard/templates/clusterrole.yaml @@ -0,0 +1,10 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole + +metadata: + name: {{ include "app-dashboard.serviceAccountName" . }}-cluster-role + +rules: + - apiGroups: ["argoproj.io"] + resources: ["applications"] + verbs: ["list"] diff --git a/charts/app-dashboard/templates/clusterrolebinding.yaml b/charts/app-dashboard/templates/clusterrolebinding.yaml new file mode 100644 index 0000000..052ff2b --- /dev/null +++ b/charts/app-dashboard/templates/clusterrolebinding.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding + +metadata: + name: {{ include "app-dashboard.serviceAccountName" . }}-cluster-role-binding + +roleRef: + kind: ClusterRole + name: {{ include "app-dashboard.serviceAccountName" . }}-cluster-role + apiGroup: rbac.authorization.k8s.io + +subjects: + - kind: ServiceAccount + name: {{ include "app-dashboard.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} \ No newline at end of file diff --git a/charts/app-dashboard/templates/deployment.yaml b/charts/app-dashboard/templates/deployment.yaml index 209c277..1e7ced1 100644 --- a/charts/app-dashboard/templates/deployment.yaml +++ b/charts/app-dashboard/templates/deployment.yaml @@ -44,8 +44,8 @@ spec: port: http readinessProbe: httpGet: - path: / - port: healthz + path: /healthz + port: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/main.go b/main.go index f9adaf7..12dc629 100644 --- a/main.go +++ b/main.go @@ -146,7 +146,8 @@ func requestAndTransformApplications(clientset *kubernetes.Clientset, ignoreName if statusError, ok := err.(*errors.StatusError); ok && statusError.Status().Code == 404 { println("No app found") } else { - fmt.Println(err) + fmt.Println(err.Error()) + fmt.Println(d) panic(err) } } else {