Commit 37bbe5ec authored by Yann Garcia's avatar Yann Garcia
Browse files

Merging branch MEC-015 and MEC-016 into intermediate branch

parents 95e7de76 e96c8f42
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
@@ -300,6 +300,7 @@ repo:
          - meep-mg-manager
          - meep-rnis
          - meep-tm
          - meep-dai
          - meep-wais
          - meep-ams
          - meep-sandbox-ctrl
@@ -379,6 +380,7 @@ repo:
          meep-mg-manager: charts/meep-mg-manager
          meep-rnis: charts/meep-rnis
          meep-tm: charts/meep-tm
          meep-dai: charts/meep-dai
          meep-wais: charts/meep-wais
          meep-ams: charts/meep-ams
          meep-sandbox-ctrl: charts/meep-sandbox-ctrl
@@ -394,6 +396,7 @@ repo:
          - meep-mg-manager
          - meep-rnis
          - meep-tm
          - meep-dai
          - meep-wais
          - meep-ams
          - meep-sandbox-ctrl
@@ -841,6 +844,40 @@ repo:
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-vis/entrypoint.sh
      meep-dai:
        # location of source code
        src: go-apps/meep-dai
        # location of binary
        bin: bin/meep-dai
        # location of deployment chart
        chart: charts/meep-dai
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-dai.yaml
        # extra build flags
        build-flags:
          - -mod=vendor
        # enable meepctl build
        build: true
        # enable meepctl dockerize
        dockerize: true
        # enable meepctl deploy/delete
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports onboarded device application instantiation
        onboardedapp: true
        # supports linting
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE Device Application Interface Service REST API'
            file: go-apps/meep-dai/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
        # resources available to docker container image
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-dai/entrypoint.sh

  #------------------------------
  #  Dependencies
@@ -1197,6 +1234,11 @@ repo:
        src: go-packages/meep-vis-client
        # supports linting
        lint: false
      meep-dai-client:
        # location of source code
        src: go-packages/meep-dai-client
        # supports linting
        lint: false

    # Javascript Packages
    js-packages:
+21 −0
Original line number Diff line number Diff line
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
+5 −0
Original line number Diff line number Diff line
apiVersion: v1
appVersion: "1.0.0"
description: MEEP Device Application Interface Service Helm chart for Kubernetes
name: meep-dai
version: 1.0.0
+32 −0
Original line number Diff line number Diff line
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "meep-dai.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "meep-dai.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "meep-dai.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+13 −0
Original line number Diff line number Diff line
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: "{{ .Release.Namespace }}:{{ template "meep-dai.fullname" . }}"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: {{ template "meep-dai.fullname" . }}
  namespace: {{ .Release.Namespace }}
  
 No newline at end of file
Loading