Skip to content

Commit c7c28f8

Browse files
authored
Improve the route/ingress selection. Adds icon (#112)
1 parent 6525831 commit c7c28f8

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

deployment/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: trs-filer
33
description: A Helm chart for Kubernetes
4-
4+
icon: https://avatars.githubusercontent.com/u/60704687?s=48&v=4
55
# A chart can be either an 'application' or a 'library' chart.
66
#
77
# Application charts are a collection of templates that can be packaged into versioned archives
@@ -14,7 +14,7 @@ type: application
1414

1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
17-
version: 0.1.0
17+
version: 0.1.1
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.

deployment/templates/trs-filer-route.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if eq .Values.clusterType "openshift" }}
1+
{{ if .Capabilities.APIVersions.Has "route.openshift.io/v1" }}
22
apiVersion: route.openshift.io/v1
33
kind: Route
44
metadata:
@@ -17,7 +17,7 @@ spec:
1717
wildcardPolicy: None
1818
status:
1919
ingress: []
20-
{{ else if eq .Values.clusterType "kubernetes" }}
20+
{{ else if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
2121
{{ if .Values.kubernetes.ingress.enabled }}
2222
apiVersion: networking.k8s.io/v1
2323
kind: Ingress
@@ -48,4 +48,4 @@ spec:
4848
secretName: {{ .Values.trs_filer.appName }}-ingress-secret
4949
{{ end }}
5050
{{ end }}
51-
{{ end }}
51+
{{ end }}

deployment/values.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
clusterType: openshift
6-
7-
host_name: trs-filer-test.c03.k8s-popup.csc.fi
5+
host_name: trs-filer-test.2.rahtiapp.fi
86

97
trs_filer:
10-
image: lvarin/trs-filer:0.1.0
8+
image: elixircloud/trs-filer:0.1.0
119
appName: trs-filer
1210

1311
apiServer: kubernetes.default.svc:443 # address of k8s API server

0 commit comments

Comments
 (0)