Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration and transaction store primitives #580

Merged
Merged
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
2 changes: 1 addition & 1 deletion onos-config/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: onos-config
version: 1.4.6
version: 1.4.7
kubeVersion: ">=1.17.0"
appVersion: v0.10.7
description: ONOS Config Manager
Expand Down
28 changes: 27 additions & 1 deletion onos-config/templates/primitives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,30 @@ spec:
name: {{ template "global.store.consensus.name" . }}
{{- else }}
name: {{ template "onos-config.store.consensus.name" . }}
{{- end }}
{{- end }}
---
apiVersion: primitives.atomix.io/v2beta1
kind: Map
metadata:
name: {{ template "onos-config.fullname" . }}-configurations
namespace: {{ .Release.Namespace }}
spec:
store:
{{- if .Values.global.store.consensus.enabled }}
name: {{ template "global.store.consensus.name" . }}
{{- else }}
name: {{ template "onos-config.store.consensus.name" . }}
{{- end }}
---
apiVersion: primitives.atomix.io/v2beta1
kind: IndexedMap
metadata:
name: {{ template "onos-config.fullname" . }}-transactions
namespace: {{ .Release.Namespace }}
spec:
store:
{{- if .Values.global.store.consensus.enabled }}
name: {{ template "global.store.consensus.name" . }}
{{- else }}
name: {{ template "onos-config.store.consensus.name" . }}
{{- end }}
3 changes: 3 additions & 0 deletions onos-config/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ rules:
- {{ template "onos-config.fullname" . }}-snapshots
- {{ template "onos-config.fullname" . }}-network-snapshots
- {{ template "onos-config.fullname" . }}-device-snapshots
- {{ template "onos-config.fullname" . }}-transactions
- {{ template "onos-config.fullname" . }}-configurations

verbs:
- '*'
4 changes: 2 additions & 2 deletions onos-umbrella/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: onos-umbrella
description: Umbrella chart to deploy all µONOS
kubeVersion: ">=1.17.0"
type: application
version: 1.1.20
version: 1.1.21
appVersion: v1.1.0
keywords:
- onos
Expand All @@ -20,7 +20,7 @@ dependencies:
- name: onos-config
condition: import.onos-config.enabled
repository: file://../onos-config
version: 1.4.6
version: 1.4.7
- name: onos-gui
condition: import.onos-gui.enabled
repository: file://../onos-gui
Expand Down