blob: 74a28cc0bf8d8d9c1811b93a7a77cdb63a0682da [file] [log] [blame]
Zack Williams3432b942018-04-24 17:46:41 -07001{{- /*
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/ -}}
16
Zack Williamsf1026072018-05-04 18:00:38 -070017{{- define "xos-gui.release_labels" }}
18app: {{ printf "%s-%s" .Release.Name .Chart.Name | trunc 63 }}
19chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
20release: {{ .Release.Name }}
21heritage: {{ .Release.Service }}
22version: {{ .Chart.Version }}
23{{- end }}
24
Zack Williams3432b942018-04-24 17:46:41 -070025{{- define "xos-gui.app_config" }}
26angular.module('app')
27.constant('AppConfig', {
28 apiEndpoint: '/xosapi/v1',
29 websocketClient: '/'
30});
31{{- end }}
32
33{{- define "xos-gui.style_config" }}
34angular.module('app')
35.constant('StyleConfig', {
Andy Bavier235dbe02018-06-08 16:19:24 -070036 projectName: {{ .Values.xos_projectName | quote }},
Zack Williams3432b942018-04-24 17:46:41 -070037 favicon: 'cord-favicon.png',
38 background: 'cord-bg.jpg',
39 payoff: 'Your VNF orchestrator',
40 logo: 'cord-logo.png',
41 routes: [
42 {
43 label: 'Slices',
44 state: 'xos.core.slice',
45 },
46 {
47 label: 'Nodes',
48 state: 'xos.core.node',
49 },
50 {
51 label: 'Instances',
52 state: 'xos.core.instance',
53 },
54 ]
55});
56{{- end }}
57
Matteo Scandolo134db8c2018-06-28 17:06:10 -070058{{- define "xos-gui.cord_version" }}
59{
60 "version": {{ .Values.cord_version | quote }}
61}
62{{- end }}