Implement support for Azure storage message queue triggers (#371)

These commits implement support for consuming messages from an Azure storage queue to trigger Fission functions.

* Add stubbed Azure message queue implementation and modify Helm charts.

This commit stubs an implementation for an Azure storage message queue trigger
that will be completed by future commits.

It also modifies the Helm chart to add support for deploying Fission with an
mqtrigger configured for Azure storage queue triggers.

* Add Azure Go SDK to glide.

This commit adds the Azure Go SDK to glide for the upcoming work to support
Azure storage queue triggers.

* Implement Azure message queue trigger.

This commit implements a message queue trigger based on Azure storage queues.

Required message queue trigger manager environment variables:

* AZURE_STORAGE_ACCOUNT_NAME - the Azure storage account to use.
* AZURE_STORAGE_ACCOUNT_KEY - the Azure storage account key.

When creating a message queue trigger, the topic will be the Azure storage
queue to receive messages from.

* Add CA certificates to fission-bundle.

This commit adds the root CA certificates to the fission-bundle image. This
allows Fission to contact third-party APIs that use HTTPS with root CA
signed certificates.

* Add Makefile to build and test.

This commit adds a simple Makefile for building the client and bundle, running
tests, creating the Docker image, and pushing the Docker image.
This commit is contained in:
Peter Huene
2018-02-09 10:38:06 -08:00
committed by Soam Vasani
parent 46895b03c8
commit 4d0e6af5de
15 changed files with 982 additions and 32 deletions
Generated
+37 -16
View File
@@ -1,24 +1,28 @@
hash: 93c80adbba10750a7fca4536f93880f152527a8f04eedf40a8ea8cbadeb88779
updated: 2017-12-02T21:38:02.116016618-08:00
hash: 03ac7555eb1f5745e82abe42a07828ffcaac3785a77e7f37a596f30db8189e7f
updated: 2018-02-08T22:40:25.586979477-08:00
imports:
- name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821
subpackages:
- compute/metadata
- internal
- name: github.com/Azure/azure-sdk-for-go
version: f111fc2fa3861c5fdced76cae4c9c71821969577
subpackages:
- storage
- name: github.com/Azure/go-autorest
version: 58f6f26e200fa5dfb40c9cd1c83f3e2c860d779d
version: d4e6b95c12a08b4de2d48b45d5b4d594e5d32fab
subpackages:
- autorest
- autorest/adal
- autorest/azure
- autorest/date
- name: github.com/coreos/etcd
version: 3ac54be402ffe4e6df505814456d4931508aaf21
version: 6a265731e10a5137b991c1aa3a83ecefdd149d50
subpackages:
- client
- name: github.com/davecgh/go-spew
version: 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d
version: 346938d642f2ec3594ed81d874461961cd0faa76
subpackages:
- spew
- name: github.com/dchest/uniuri
@@ -84,9 +88,9 @@ imports:
- name: github.com/gorilla/handlers
version: 90663712d74cb411cbef281bc1e08c19d1a76145
- name: github.com/gorilla/mux
version: 7f08801859139f86dfafd1c296e2cba9a80d292e
version: 53c1911da2b537f792e7cafcb446b05ffe33b996
- name: github.com/graymeta/stow
version: 1c51f76db54d79c9db24cb131011632eb586196c
version: abb68c488872b06c5453865fa59f4818b4ea13a4
subpackages:
- local
- name: github.com/hashicorp/golang-lru
@@ -111,10 +115,12 @@ imports:
- buffer
- jlexer
- jwriter
- name: github.com/marstr/guid
version: 8bdf7d1a087ccc975cf37dd6507da50698fd19ca
- name: github.com/mholt/archiver
version: 26cf5bb32d07aa4e8d0de15f56ce516f4641d7df
- name: github.com/nats-io/go-nats
version: 6f06d34c19fc8607adf14668b5bb2c9465d78348
version: 78ec4b93936d7a00e59b7f3939d8116955916d1b
subpackages:
- encoders/builtin
- util
@@ -123,15 +129,16 @@ imports:
subpackages:
- pb
- name: github.com/nats-io/nats-streaming-server
version: f9638df9ef7ee548313eeb5a9dda9c888dc769a0
version: 6fdcdfbb2589e68692a68fd5b64b1b7e7c54bf05
subpackages:
- spb
- util
- name: github.com/nats-io/nuid
version: 289cccf02c178dc782430d534e3c1f5b72af807f
- name: github.com/nwaples/rardecode
version: e06696f847aeda6f39a8f0b7cdff193b7690aef6
- name: github.com/pierrec/lz4
version: 08c27939df1bd95e881e2c2367a749964ad1fceb
version: ed8d4cc3b461464e69798080a0092bd028910298
- name: github.com/pierrec/xxHash
version: a0006b13c722f7f12368c00a3d3c2ae8a999a0c6
subpackages:
@@ -143,13 +150,19 @@ imports:
- name: github.com/PuerkitoBio/urlesc
version: 5bd2802263f21d8788851d5305584c82a5c75d7e
- name: github.com/robfig/cron
version: 736158dc09e10f1911ca3a1e1b01f11b566ce5db
version: 2315d5715e36303a941d907f038da7f7c44c773b
- name: github.com/satori/go.uuid
version: 879c5887cd475cd7864858769793b2ceb0d44feb
version: f58768cc1a7a7e77a3bd49e98cdd21419399b6a3
- name: github.com/sirupsen/logrus
version: 68cec9f21fbf3ea8d8f98c044bc6ce05f17b267a
- name: github.com/spf13/pflag
version: 9ff6c6923cfffbcd502984b8e0c80539a94968b7
- name: github.com/stretchr/testify
version: 12b6f73e6084dad08a7c6e575284b177ecafbc71
subpackages:
- assert
- mock
- require
- name: github.com/ugorji/go
version: ded73eae5db7e7a0ef6f55aace87a2873c5d2b74
subpackages:
@@ -200,8 +213,10 @@ imports:
- unicode/norm
- width
- name: google.golang.org/appengine
version: 12d5545dc1cfa6047a286d5e853841b6471f4c19
version: 9d8544a6b2c7df9cff240fcf92d7b2f59bc13416
repo: https://github.com/golang/appengine
subpackages:
- cloudsql
- internal
- internal/app_identity
- internal/base
@@ -218,7 +233,7 @@ imports:
- name: k8s.io/api
version: 4b8fc5be9b77d91bbb6525d18591c43699a2b4e5
- name: k8s.io/apiextensions-apiserver
version: fcd622fe88a4a6efcb5aea9e94ee87324ac1b036
version: 0965a40c0530e110459750a7fcb9cfa4910fb944
subpackages:
- pkg/apis/apiextensions
- pkg/apis/apiextensions/v1beta1
@@ -226,7 +241,7 @@ imports:
- pkg/client/clientset/clientset/scheme
- pkg/client/clientset/clientset/typed/apiextensions/v1beta1
- name: k8s.io/apimachinery
version: 8ab5f3d8a330c2e9baaf84e39042db8d49034ae2
version: 80184f5f100c67bfcda6b8a848e0243fe4bc2772
subpackages:
- pkg/api/equality
- pkg/api/errors
@@ -358,4 +373,10 @@ imports:
- util/homedir
- util/integer
- util/jsonpath
testImports: []
testImports:
- name: github.com/pmezard/go-difflib
version: d8ed2627bdf02c080bf22230dbb337003b7aba2d
subpackages:
- difflib
- name: github.com/stretchr/objx
version: 8a3f7159479fbc75b30357fbc48f380b7320f08e