Skip to content

Commit

Permalink
Add kubedb-opscenter chart (#400)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Nov 23, 2021
1 parent 44cdc13 commit d63d8d2
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ _testmain.go
/.idea
/.crds
/charts/kubedb/charts
/charts/kubedb-opscenter/charts

.DS_Store
23 changes: 23 additions & 0 deletions charts/kubedb-opscenter/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
9 changes: 9 additions & 0 deletions charts/kubedb-opscenter/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: kubedb-metrics
repository: file://../kubedb-metrics
version: v2021.11.18
- name: kubedb-ui-server
repository: file://../kubedb-ui-server
version: v2021.11.18
digest: sha256:874ff980f0f5923c05345134568a67573ab9aa50317dbe5b69619f96d94d05c0
generated: "2021-11-23T13:32:50.291691545-08:00"
22 changes: 22 additions & 0 deletions charts/kubedb-opscenter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v2
name: kubedb-opscenter
description: KubeDB Opscenter by AppsCode
type: application
version: v2021.11.18
appVersion: v2021.11.18
home: https://kubedb.com
icon: https://cdn.appscode.com/images/products/kubedb/kubedb-icon.png
sources:
- https://github.com/kubedb
maintainers:
- name: appscode
email: support@appscode.com
dependencies:
- name: kubedb-metrics
repository: file://../kubedb-metrics
condition: kubedb-metrics.enabled
version: v2021.11.18
- name: kubedb-ui-server
repository: file://../kubedb-ui-server
condition: kubedb-ui-server.enabled
version: v2021.11.18
18 changes: 18 additions & 0 deletions charts/kubedb-opscenter/doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project:
name: KubeDB Opscenter by AppsCode
shortName: KubeDB Opscenter
url: https://github.com/kubedb
description: KubeDB Opscenter
app: a KubeDB Opscenter
repository:
url: https://charts.appscode.com/stable/
name: appscode
chart:
name: kubedb-opscenter
values: -- generate from values file --
valuesExample: -- generate from values file --
prerequisites:
- Kubernetes 1.16+
release:
name: kubedb-opscenter
namespace: kubeops
62 changes: 62 additions & 0 deletions charts/kubedb-opscenter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "kubedb-opscenter.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "kubedb-opscenter.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "kubedb-opscenter.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "kubedb-opscenter.labels" -}}
helm.sh/chart: {{ include "kubedb-opscenter.chart" . }}
{{ include "kubedb-opscenter.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "kubedb-opscenter.selectorLabels" -}}
app.kubernetes.io/name: {{ include "kubedb-opscenter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "kubedb-opscenter.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "kubedb-opscenter.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/kubedb-opscenter/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Default values for kubedb-opscenter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

kubedb-metrics:
# If enabled, installs the kubedb-metrics chart
enabled: true
kubedb-ui-server:
# If enabled, installs the kubedb-ui-server chart
enabled: true
6 changes: 3 additions & 3 deletions charts/kubedb-ui-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: A Helm chart for kubedb-ui-server by AppsCode
type: application
version: v2021.11.18
appVersion: v0.0.1
home: https://github.com/kubeops/kubedb-ui-server
icon: https://cdn.appscode.com/images/products/kubeops/icons/android-icon-192x192.png
home: https://github.com/kubedb/kubedb-ui-server
icon: https://cdn.appscode.com/images/products/kubedb/kubedb-icon.png
sources:
- https://github.com/kubeops/kubedb-ui-server
- https://github.com/kubedb/kubedb-ui-server
maintainers:
- name: appscode
email: support@appscode.com
1 change: 1 addition & 0 deletions hack/scripts/update-chart-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
set -e

helm dependency update charts/kubedb
helm dependency update charts/kubedb-opscenter

0 comments on commit d63d8d2

Please sign in to comment.