Add chart

This commit is contained in:
2021-12-23 18:05:01 +00:00
parent 5cf890d3ae
commit ad76ec968d
8 changed files with 130 additions and 0 deletions

32
.github/workflows/release-chart.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: release chart
"on":
push:
branches:
- main
paths:
- "charts/ohayodash/**"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.6.3
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "ohayodash-helm-chart-{{ .Version }}"

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Ohayo Dash
Ohayo Dash is a Kubernetes driven start page and dashboard. All configuration is done by standard Kubernetes objects and ConfigMaps.

View File

@@ -0,0 +1,20 @@
apiVersion: v2
appVersion: 0.0.1
description: Ohayo Dash is a Kubernetes driven start page and dashboard. All configuration is done by standard Kubernetes objects and ConfigMaps.
name: hajimari
version: 0.0.1
kubeVersion: ">=1.16.0-0"
keywords:
- ohayodash
- startpage
- dashboard
home: https://github.com/nikdoof/ohayodash/tree/main/charts/hajimari
sources:
- https://github.com/nikdoof/ohayodash
maintainers:
- name: nikdoof
email: nikdoof@users.noreply.github.com
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.0.0

View File

@@ -0,0 +1,8 @@
ingress:
main:
enabled: true
hosts:
- host: ohayodash.domain.tld
paths:
- path: /
pathType: Prefix

View File

@@ -0,0 +1 @@
{{ include "common.notes.defaultNotes" . }}

View File

@@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@@ -0,0 +1,25 @@
{{- if .Values.serviceAccount.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "common.names.fullname" . }}
labels: {{- include "common.labels" . | nindent 4 }}
rules:
- apiGroups: ["", "extensions", "networking.k8s.io"]
resources: ["ingresses", "namespaces"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "common.names.fullname" . }}
labels: {{- include "common.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "common.names.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
{{- end }}

View File

@@ -0,0 +1,40 @@
#
# IMPORTANT NOTE
#
# This chart inherits from the k8s@home library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#
image:
# -- image repository
repository: ghcr.io/nikdoof/ohayodash
# -- image pull policy
pullPolicy: IfNotPresent
# -- image tag
tag: latest
# -- environment variables.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC
# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
main:
ports:
http:
port: 80
# -- Configures service account needed for reading k8s ingress objects
# @default -- See below
serviceAccount:
# -- Create service account
create: true
ingress:
# -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false