Commit 322ba87d authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

implement integration configuration for meep-vis

parent db332951
Loading
Loading
Loading
Loading
+40 −4
Original line number Diff line number Diff line
@@ -205,7 +205,6 @@ repo:
  #  Core Subsystem
  #------------------------------
  core:

    # Go Applications
    go-apps:
      meep-auth-svc:
@@ -305,6 +304,7 @@ repo:
          - meep-sandbox-ctrl
          - meep-tc-engine
          - meep-app-enablement
          - meep-vis
        # location of API specifications
        api:
          - name: 'AdvantEDGE Monitoring Engine REST API'
@@ -383,6 +383,7 @@ repo:
          meep-tc-engine: charts/meep-tc-engine
          meep-app-enablement: charts/meep-app-enablement
          meep-virt-chart-templates: charts/meep-virt-chart-templates
          meep-vis: charts/meep-vis
        # list of sandbox specific pods
        sandbox-pods:
          - meep-gis-engine
@@ -395,6 +396,7 @@ repo:
          - meep-sandbox-ctrl
          - meep-tc-engine
          - meep-app-enablement
          - meep-vis
      meep-webhook:
        # location of source code
        src: go-apps/meep-webhook
@@ -447,7 +449,6 @@ repo:
  #  Sandbox Subsystem
  #------------------------------
  sandbox:

    # Go Applications
    go-apps:
      meep-ams:
@@ -771,6 +772,38 @@ repo:
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-wais/entrypoint.sh
      meep-vis:
        # location of source code
        src: go-apps/meep-vis
        # location of binary
        bin: bin/meep-vis
        # location of deployment chart
        chart: charts/meep-vis
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-vis.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 linting
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE V2X Information Service REST API'
            file: go-apps/meep-vis/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-vis/entrypoint.sh

  #------------------------------
  #  Dependencies
@@ -935,7 +968,6 @@ repo:
  #  Packages
  #------------------------------
  packages:

    # Go Packages
    go-packages:
      meep-ams-client:
@@ -1113,6 +1145,11 @@ repo:
        src: go-packages/meep-websocket
        # supports linting
        lint: true
      meep-vis-client:
        # location of source code
        src: go-packages/meep-vis-client
        # supports linting
        lint: false

    # Javascript Packages
    js-packages:
@@ -1156,4 +1193,3 @@ repo:
        src: js-packages/meep-service-mgmt-client
        # supports linting
        lint: false
+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 V2X Information Service Helm chart for Kubernetes
name: meep-vis
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-vis.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-vis.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-vis.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+12 −0
Original line number Diff line number Diff line
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: "{{ .Release.Namespace }}:{{ template "meep-vis.fullname" . }}"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: {{ template "meep-vis.fullname" . }}
  namespace: {{ .Release.Namespace }}
Loading