Skip to content

Commit

Permalink
sd-ran: post install job populates onos-topo and onos-config (#107)
Browse files Browse the repository at this point in the history
Also fixed problem in onos-cli pod configmap

Removed unused param in ran-simulator
  • Loading branch information
SeanCondon authored May 21, 2020
1 parent 1c39b44 commit 89446a8
Show file tree
Hide file tree
Showing 16 changed files with 43,188 additions and 18 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ publish: # @HELP publish version on github
bumponosdeps: # @HELP update "onosproject" go dependencies and push patch to git.
./../build-tools/bump-onos-deps ${VERSION}

clean: # @HELP clean up temporary files.
rm -rf sd-ran/charts sd-ran/Chart.lock

help:
@grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \
| sort \
Expand Down
2 changes: 1 addition & 1 deletion onos-cli/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: onos-cli
description: ONOS Command Line Interface
kubeVersion: ">=1.17.0"
type: application
version: 0.0.2
version: 0.0.3
appVersion: v0.6.5
keywords:
- onos
Expand Down
7 changes: 1 addition & 6 deletions onos-cli/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@ kind: ConfigMap
metadata:
name: {{ template "onos-cli.fullname" . }}
namespace: {{ .Release.Namespace }}
# The followign shoudl be under the atomix.yaml key, see
# https://github.com/onosproject/onos-test/blob/master/pkg/onit/k8s/onos-cli.go#L104
data:
{{ $root := . }}
{{ range $path, $bytes := .Files.Glob "files/configs/*.yaml" }}
{{ base $path }}: '{{ $root.Files.Get $path }}'
{{ end }}
{{ (.Files.Glob "files/configs/*.yaml").AsConfig | indent 2 }}
1 change: 0 additions & 1 deletion ran-simulator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ spec:
- "-showRoutes={{ .Values.showRoutes }}"
- "-stepDelayMs={{ .Values.stepDelayMs }}"
- "-zoom={{ .Values.zoom }}"
- "-towerConfigName={{ .Values.towerConfigName }}"
ports:
- name: grpc
containerPort: 5150
Expand Down
1 change: 0 additions & 1 deletion ran-simulator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ showPower: true
showRoutes: true
stepDelayMs: 1000
zoom: 13
towerConfigName: berlin-honeycomb-4-3.yaml

imagePullSecrets: []
nameOverride: ""
Expand Down
4 changes: 2 additions & 2 deletions sd-ran/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: sd-ran
description: Umbrella chart to deploy all ONOS-RIC and simulator
kubeVersion: ">=1.17.0"
type: application
version: 0.0.8
version: 0.0.9
appVersion: v0.6.5
keywords:
- onos
Expand Down Expand Up @@ -63,4 +63,4 @@ dependencies:
- name: onos-cli
condition: import.onos-cli.enabled
repository: https://charts.onosproject.org
version: 0.0.2
version: 0.0.3
9 changes: 9 additions & 0 deletions sd-ran/files/configs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Config files

Copied here from ran-simulator/pkg/config

Available in /home/onos at runtime. Needed
to populate onos-topo and onos-config through
a post-install action on startup of sd-ran.

> TODO: automate the process of copying these
Loading

0 comments on commit 89446a8

Please sign in to comment.