Skip to content

Commit

Permalink
Merge pull request #5 from eclipse-tractusx/test-helm-pr-action
Browse files Browse the repository at this point in the history
fix readiness probe
  • Loading branch information
Siegfriedk authored Jan 5, 2023
2 parents 8d13cbe + 1d9446b commit 93d200a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/app-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions charts/app-dashboard/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -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"]
15 changes: 15 additions & 0 deletions charts/app-dashboard/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions charts/app-dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93d200a

Please sign in to comment.