Add Atomix primitives to fabric adapter
Change-Id: I171c586a04fcb0586969d06b8336e0c98018cdce
diff --git a/fabric-adapter/templates/primitives.yaml b/fabric-adapter/templates/primitives.yaml
new file mode 100644
index 0000000..d89fc1e
--- /dev/null
+++ b/fabric-adapter/templates/primitives.yaml
@@ -0,0 +1,30 @@
+# SPDX-FileCopyrightText: 2022-present Intel Corporation
+#
+# SPDX-License-Identifier: Apache-2.0
+
+apiVersion: primitives.atomix.io/v2beta1
+kind: Counter
+metadata:
+ name: fabric-adapter-sid-counter
+ namespace: {{ .Release.Namespace }}
+spec:
+ store:
+ {{- if .Values.global.store.consensus.enabled }}
+ name: {{ template "global.store.consensus.name" . }}
+ {{- else }}
+ name: {{ template "fabric-adapter.store.consensus.name" . }}
+ {{- end }}
+---
+apiVersion: primitives.atomix.io/v2beta1
+kind: Map
+metadata:
+ name: fabric-adapter-sid-map
+ namespace: {{ .Release.Namespace }}
+spec:
+ store:
+ {{- if .Values.global.store.consensus.enabled }}
+ name: {{ template "global.store.consensus.name" . }}
+ {{- else }}
+ name: {{ template "fabric-adapter.store.consensus.name" . }}
+ {{- end }}
+---
\ No newline at end of file