diff --git a/.gitignore b/.gitignore index 519b5da..9aade83 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,5 @@ *.tmp *.tar.gz -*.tgz +#*.tgz *.lock diff --git a/charts/tekton-dashboard/charts/oauth2-proxy-6.13.1.tgz b/charts/tekton-dashboard/charts/oauth2-proxy-6.13.1.tgz new file mode 100644 index 0000000..70c3427 Binary files /dev/null and b/charts/tekton-dashboard/charts/oauth2-proxy-6.13.1.tgz differ diff --git a/charts/tekton-dashboard/templates/tekton-dashboard-deploy.yaml b/charts/tekton-dashboard/templates/tekton-dashboard-deploy.yaml index 54fba39..cdd0532 100644 --- a/charts/tekton-dashboard/templates/tekton-dashboard-deploy.yaml +++ b/charts/tekton-dashboard/templates/tekton-dashboard-deploy.yaml @@ -36,7 +36,7 @@ spec: - --logout-url= - --pipelines-namespace=tekton-pipelines - --triggers-namespace=tekton-pipelines - - --read-only=true + - --read-only={{ .Values.readonly }} - --log-level=info - --log-format=json - --namespace= diff --git a/charts/tekton-dashboard/templates/tekton-dashboard-ingress.yaml b/charts/tekton-dashboard/templates/tekton-dashboard-ingress.yaml index 9afc0b5..252b080 100644 --- a/charts/tekton-dashboard/templates/tekton-dashboard-ingress.yaml +++ b/charts/tekton-dashboard/templates/tekton-dashboard-ingress.yaml @@ -5,11 +5,14 @@ metadata: name: tekton-dashboard namespace: '{{ .Release.Namespace }}' annotations: +{{- if .Values.ingress.annotations }} +{{ toYaml .Values.ingress.annotations | indent 4 }} +{{- end }} {{- if .Values.authHost }} nginx.ingress.kubernetes.io/auth-signin: https://{{ toYaml .Values.authHost }}/oauth2/start?rd=https://$host$uri nginx.ingress.kubernetes.io/auth-url: https://{{ toYaml .Values.authHost }}/oauth2/auth {{- end }} - kubernetes.io/ingress.class: nginx + spec: {{- if .Values.ingress.tls.enabled }} tls: diff --git a/charts/tekton-dashboard/templates/tekton-dashboard-readwrite.yaml b/charts/tekton-dashboard/templates/tekton-dashboard-readwrite.yaml new file mode 100644 index 0000000..179992d --- /dev/null +++ b/charts/tekton-dashboard/templates/tekton-dashboard-readwrite.yaml @@ -0,0 +1,33 @@ +{{ if not .Values.readonly }} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: tekton-dashboard-tutorial +rules: + - apiGroups: + - tekton.dev + resources: + - tasks + - taskruns + - pipelines + - pipelineruns + verbs: + - get + - create + - update + - patch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: tekton-dashboard-permissions + namespace: jx +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: tekton-dashboard-tutorial +subjects: + - kind: ServiceAccount + name: tekton-dashboard + namespace: tekton-pipelines +{{ end }} \ No newline at end of file diff --git a/charts/tekton-dashboard/templates/tekton-dashboard-svc.yaml b/charts/tekton-dashboard/templates/tekton-dashboard-svc.yaml index 9cb5f06..a9575ea 100644 --- a/charts/tekton-dashboard/templates/tekton-dashboard-svc.yaml +++ b/charts/tekton-dashboard/templates/tekton-dashboard-svc.yaml @@ -10,8 +10,13 @@ metadata: app.kubernetes.io/version: v0.35.0 dashboard.tekton.dev/release: v0.35.0 version: v0.35.0 + annotations: +{{- if .Values.service.annotations }} +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} name: tekton-dashboard spec: + type: {{ .Values.service.type }} ports: - name: http port: 9097 diff --git a/charts/tekton-dashboard/values.yaml b/charts/tekton-dashboard/values.yaml index a0f3931..3b1aeb7 100644 --- a/charts/tekton-dashboard/values.yaml +++ b/charts/tekton-dashboard/values.yaml @@ -2,8 +2,16 @@ ingress: host: tekton-dashboard.acme.com tls: - enabled: true + enabled: false secretName: example.com + annotations: + kubernetes.io/ingress.class: nginx +service: + type: ClusterIP + enabled: true + annotations: {} +readonly: true + # this is the auth host for the proxy (tekton-auth.example.com) and used to template ingress annotations for redirection # only add an authHost if deploying oauth2-proxy authHost: diff --git a/index.yaml b/index.yaml new file mode 100644 index 0000000..c20daef --- /dev/null +++ b/index.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +entries: + tekton-dashboard: + - apiVersion: v2 + appVersion: 0.35.0 + created: "2024-07-07T12:08:06.064456+03:00" + dependencies: + - condition: oauth2-proxy.enabled + name: oauth2-proxy + repository: https://oauth2-proxy.github.io/manifests + version: 6.13.1 + description: A Helm chart for Tekton Pipelines Dashboard + digest: eaabfacf62d91d7f0706b523d1330186dfd03cdaa6734ea4e6153fc54476de1e + home: https://github.com/jenkins-x/tekton-dashboard-helm-chart + icon: https://avatars2.githubusercontent.com/u/47602533 + name: tekton-dashboard + urls: + - https://workcanvas.github.io/tekton-dashboard-helm-chart/tekton-dashboard-0.0.5.tgz + version: 0.0.5 +generated: "2024-07-07T12:08:06.059602+03:00" diff --git a/tekton-dashboard-0.0.5.tgz b/tekton-dashboard-0.0.5.tgz new file mode 100644 index 0000000..a91debc Binary files /dev/null and b/tekton-dashboard-0.0.5.tgz differ