Add Atomix primitives to fabric adapter

Change-Id: I171c586a04fcb0586969d06b8336e0c98018cdce
diff --git a/fabric-adapter/templates/_helpers.tpl b/fabric-adapter/templates/_helpers.tpl
index 7878594..ef34f5a 100644
--- a/fabric-adapter/templates/_helpers.tpl
+++ b/fabric-adapter/templates/_helpers.tpl
@@ -55,3 +55,35 @@
 app.kubernetes.io/name: {{ include "fabric-adapter.name" . }}
 app.kubernetes.io/instance: {{ .Release.Name }}
 {{- end -}}
+
+{{/*
+fabric-adapter consensus image name
+*/}}
+{{- define "fabric-adapter.store.consensus.imagename" -}}
+{{- if or .Values.store.consensus.image.tag .Values.global.store.consensus.image.tag -}}
+{{- if .Values.global.store.consensus.image.registry -}}
+{{- printf "%s/" .Values.global.store.consensus.image.registry -}}
+{{- else if .Values.store.consensus.image.registry -}}
+{{- printf "%s/" .Values.store.consensus.image.registry -}}
+{{- end -}}
+{{- printf "%s:" .Values.store.consensus.image.repository -}}
+{{- if .Values.global.store.consensus.image.tag -}}
+{{- .Values.global.store.consensus.image.tag -}}
+{{- else -}}
+{{- .Values.store.consensus.image.tag -}}
+{{- end -}}
+{{- else -}}
+""
+{{- end -}}
+{{- end -}}
+
+{{/*
+fabric-adapter consensus store name
+*/}}
+{{- define "fabric-adapter.store.consensus.name" -}}
+{{- if .Values.store.consensus.name -}}
+{{- printf "%s" .Values.store.consensus.name -}}
+{{- else -}}
+{{- printf "%s-consensus-store" ( include "fabric-adapter.fullname" . ) -}}
+{{- end -}}
+{{- end -}}