Skip to content

Commit

Permalink
Use Shared Ingress Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed Jun 19, 2024
1 parent 9d18e6b commit 9c63cf3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ node_modules
/build
/.svelte-kit
/package
/charts/kubernetes/Chart.lock
/charts/kubernetes/charts
/charts/ui/Chart.lock
/charts/ui/charts
.env
.env.*
!.env.example
Expand Down
6 changes: 3 additions & 3 deletions charts/ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: A Helm chart for deploying Unikorn UI

type: application

version: v0.2.5
appVersion: v0.2.5
version: v0.2.6
appVersion: v0.2.6

icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png

dependencies:
- name: unikorn-common
version: v0.1.5
version: v0.1.6
repository: https://unikorn-cloud.github.io/helm-common
8 changes: 3 additions & 5 deletions charts/ui/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ metadata:
labels:
{{- include "unikorn.labels" . | nindent 4 }}
annotations:
{{- with $clusterIssuer := ( include "unikorn.ingress.clusterIssuer" . ) }}
cert-manager.io/cluster-issuer: {{ $clusterIssuer }}
{{- end }}
{{- if .Values.ingress.externalDns }}
{{- include "unikorn.ingress.clusterIssuer.annotations" . | nindent 4 }}
{{- if (include "unikorn.ingress.externalDNS" .) }}
external-dns.alpha.kubernetes.io/hostname: {{ include "unikorn.ui.host" . }}
{{- end }}
{{- end }}
spec:
{{- if .Values.ingress.class }}
ingressClassName: {{ .Values.ingress.class }}
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "unikorn-ui",
"version": "0.1.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/unikorn-cloud/ui"
},
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand Down

0 comments on commit 9c63cf3

Please sign in to comment.