Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions helm/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: Hound
description: Code searching tool
type: application
version: 0.1.0
appVersion: 1.0.0
6 changes: 6 additions & 0 deletions helm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Helm](https://helm.sh/) Chart. Mainly for using in [Concourse CI](../concourse.md)

docker.pkg.github.com
==========================

Github registry doesn't work with k8s: https://github.com/containerd/containerd/issues/3291
1 change: 1 addition & 0 deletions helm/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: NOTES.txt
7 changes: 7 additions & 0 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- define "imagePullSecret" }}
{{- printf "{\"auths\": {\"%s\": {\"auth\": \"%s\"}}}" .Values.image.registry (printf "%s:%s" .Values.image.username .Values.image.password | b64enc) | b64enc }}
{{- end }}

{{- define "imageFull" -}}
{{- printf "%s/%s:%s" .Values.image.registry .Values.image.name .Values.image.tag -}}
{{- end -}}
21 changes: 21 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hound-deployment
spec:
replicas: 1
selector:
matchLabels:
app: hound
template:
metadata:
labels:
app: hound
spec:
imagePullSecrets:
- name: github-docker-registry-secret
containers:
- name: hound
image: {{ include "imageFull" . }}
ports:
- containerPort: 6080
7 changes: 7 additions & 0 deletions helm/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: github-docker-registry-secret
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}
12 changes: 12 additions & 0 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: hound-service
spec:
type: NodePort
ports:
- port: 6080
targetPort: 6080
protocol: TCP
selector:
app: hound
7 changes: 7 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Following values must be specified
image:
registry: docker.pkg.github.com
name: it-projects-llc/hound/pr
tag:
username:
password: