-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
467 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Perform "exit 1" if PR title starts with "WIP" to block accidental merges | ||
name: Check "WIP" in PR Title | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
|
||
jobs: | ||
WIP: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.pull_request.title, 'WIP') | ||
steps: | ||
- name: Must Exit | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build and push VMware Event Router Pre-Release Image to Docker Hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-* | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./vmware-event-router | ||
|
||
jobs: | ||
build-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout source (this.release branch) | ||
uses: actions/checkout@master | ||
- name: get the version from ref without prefixes | ||
id: get_version | ||
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) | ||
- name: log in to Docker | ||
env: | ||
DOCKER_USER: ${{ secrets.DOCKER_USER }} | ||
DOCKER_SECRET: ${{ secrets.DOCKER_SECRET }} | ||
run: echo "${DOCKER_SECRET}" | docker login -u "${DOCKER_USER}" --password-stdin | ||
- name: test and build pre-release image | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
run: | | ||
echo "Building pre-release of vmware-event-router with version $VERSION" | ||
make | ||
docker tag vmware/veba-event-router:latest vmware/veba-event-router:$VERSION | ||
- name: push just the pre-release image | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
run: | | ||
docker push vmware/veba-event-router:$VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Even though branch protection rules might be in place, this is an additional | ||
# safety net to protect against unwanted pull requests against "master" | ||
name: Protect Master Branch | ||
|
||
# This workflow is triggered on PRs to the master branch | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
protect: | ||
name: Reject | ||
runs-on: ubuntu-latest | ||
# sanity check | ||
if: github.event_name == 'pull_request' && github.base_ref == 'master' | ||
steps: | ||
- name: Must reject PR | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: VMware Event Router Unit Tests | ||
|
||
# triggered on PRs but only when changes inside vmware-event-router (sub)dir(s) | ||
on: | ||
pull_request: | ||
paths: | ||
- 'vmware-event-router/**' | ||
|
||
# run all jobs with these defaults, unless specified otherwise | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./vmware-event-router | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout source | ||
uses: actions/checkout@master | ||
- name: run unit tests | ||
run: make test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.4.0 | ||
v0.4.1 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,15 @@ git checkout master | |
|
||
Step 2 - Update `stack.yml` and `vc-datastore-config.json` with your environment information | ||
|
||
> **Note:** leave SMTP_USERNAME and SMTP_PASSWORD blank if you do not want to use authenticated SMTP | ||
> **Note:** | ||
Leave SMTP_USERNAME and SMTP_PASSWORD blank if you do not want to use authenticated SMTP | ||
|
||
The function supports pulling a To: email address from a custom attribute in vCenter. This allows administrators with vCenter access to configure email notifications without having to alter the JSON script configuration. To enable this feature, do the following: | ||
- Create a custom attribute in vCenter, assign it to a datastore and give it an email address. For example, create a custom attribute named `NotifyEmail` and assign it a value of `[email protected]` | ||
- In `vc-datastore-config.json`, add the name of the custom attribute `NotifyEmail` as the value for `DATASTORE_CUSTOM_PROP_EMAIL_TO` | ||
- Add a vCenter URL and credentials to `VC`, `VC_USERNAME`, and `VC_PASSWORD` | ||
|
||
When this is configured, an email address found in the custom attribute will be added to the email already defined in the `EMAIL_TO` section of the JSON file. | ||
|
||
Step 3 - Login to the OpenFaaS gateway on VMware Event Broker Appliance | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.