Skip to content

Commit

Permalink
add whois-rest
Browse files Browse the repository at this point in the history
  • Loading branch information
eltorio committed Dec 20, 2023
1 parent 1fe5617 commit 491199a
Show file tree
Hide file tree
Showing 25 changed files with 264 additions and 87 deletions.
Binary file added Whois REST-1.0.0.tgz
Binary file not shown.
6 changes: 6 additions & 0 deletions charts/whois-rest/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: Whois REST
description: A Helm chart for the Whois REST service
type: application
version: 1.0.0
appVersion: 0.9.0
68 changes: 68 additions & 0 deletions charts/whois-rest/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "whois-rest.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 "whois-rest.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 "whois-rest.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "whois-rest.selfSignedIssuer" -}}
{{ printf "%s-selfsign" (include "whois-rest.fullname" .) }}
{{- end -}}

{{- define "whois-rest.rootCAIssuer" -}}
{{ printf "%s-ca" (include "whois-rest.fullname" .) }}
{{- end -}}

{{- define "whois-rest.rootCACertificate" -}}
{{ printf "%s-ca" (include "whois-rest.fullname" .) }}
{{- end -}}

{{- define "whois-rest.servingCertificate" -}}
{{ printf "%s-webhook-tls" (include "whois-rest.fullname" .) }}
{{- end -}}

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

{{/*
Selector labels
*/}}
{{- define "whois-rest.selectorLabels" -}}
app.kubernetes.io/name: {{ include "whois-rest.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
29 changes: 29 additions & 0 deletions charts/whois-rest/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "whois-rest.fullname" . }}
labels:
{{- include "whois-rest.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "whois-rest.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "whois-rest.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: WHOIS_SERVER
value: {{ .Values.env.WHOIS_SERVER }}
- name: HTTP_PORT
value: {{ .Values.env.HTTP_PORT }}
ports:
- name: http
containerPort: 8080
protocol: TCP
34 changes: 34 additions & 0 deletions charts/whois-rest/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "whois-rest.fullname" . }}
labels:
{{- include "whois-rest.labels" . | nindent 4 }}
spec:
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: ImplementationSpecific
backend:
service:
name: {{ include "whois-rest.fullname" }}
port:
number: 80
{{- end }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- end }}
15 changes: 15 additions & 0 deletions charts/whois-rest/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "whois-rest.fullname" . }}
labels:
{{- include "whois-rest.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "whois-rest.selectorLabels" . | nindent 4 }}
22 changes: 22 additions & 0 deletions charts/whois-rest/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
replicaCount: 1

image:
repository: highcanfly/whois-rest
tag: 0.9.0
pullPolicy: IfNotPresent

service:
type: ClusterIP
port: 8080

ingress:
enabled: false
annotations: {}
hosts:
- host: chart-example.local
paths: []
tls: []

env:
WHOIS_SERVER: whois.cymru.com
HTTP_PORT: "8080"
Binary file modified repo/cert-manager-webhook-oci-1.3.1.tgz
Binary file not shown.
Binary file modified repo/crontab-ui-1.0.0.tgz
Binary file not shown.
Binary file modified repo/dolidock-0.9.13.tgz
Binary file not shown.
Binary file modified repo/easyappointments-0.2.0.tgz
Binary file not shown.
Binary file modified repo/gitea-0.7.1.tgz
Binary file not shown.
Binary file modified repo/hcf-coder-0.2.0.tgz
Binary file not shown.
Binary file modified repo/hcfmailer-1.0.0.tgz
Binary file not shown.
Binary file modified repo/hcfmailerplus-0.2.0.tgz
Binary file not shown.
Binary file modified repo/hcfschedule-0.1.0.tgz
Binary file not shown.
Binary file modified repo/helm-dashboard-0.1.9.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion repo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ <h2>Charts</h2>

</ul>
</section>
<time datetime="2023-12-17T09:47:24" pubdate id="generated">Sun Dec 17 2023 09:47:24AM CET&#43;01:00</time>
<time datetime="2023-12-20T14:37:53" pubdate id="generated">Wed Dec 20 2023 02:37:53PM CET&#43;01:00</time>
</body>
</html>
Loading

0 comments on commit 491199a

Please sign in to comment.