Skip to content

Commit

Permalink
Merge branch 'release-0.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
William Lam committed Apr 20, 2021
2 parents dd37b48 + 2088553 commit 2df2739
Show file tree
Hide file tree
Showing 4,195 changed files with 1,428,335 additions and 963 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/create-docker-dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make tidy
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
build-push:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-docker-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make tidy
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
build-push:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make tidy
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
build-push:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/router-verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v2
- name: verify modules are up2date/unchanged
run: |
make tidy
make vendor
[[ -z $(git status -s) ]] || (echo 'git dirty: modified and/or untracked'; git status -s; false)
docker-build:
runs-on: ubuntu-latest
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ jobs:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 5

# for issues and PRs
days-before-stale: 90
days-before-close: 30
exempt-issue-labels: 'awaiting-approval,work-in-progress,wip'

# issues
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-issue-message: 'Closing issue due to inactivity.'
close-issue-message: 'Closing issue due to inactivity. Please reopen if needed'
stale-issue-label: 'stale'
exempt-issue-labels: 'awaiting-approval,work-in-progress,wip'
remove-stale-when-updated: true

# PRs
stale-pr-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-pr-message: 'Closing issue due to inactivity. Please reopen if needed'
stale-pr-label: 'stale'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ Gemfile.lock
*.coverprofile
faas-cli*
template
# don't exclude this pkg by rule above
!**/vendor/**/template
checkpoints/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The VMware Event Broker Appliance follows a highly modular approach, using Kuber
- Supported Event Stream Sources:
- VMware vCenter ([Website](https://www.vmware.com/products/vcenter-server.html))
- Supported Event Stream Processors:
- Knative [Website](https://knative.dev/)
- OpenFaaS ([Website](https://www.openfaas.com/))
- AWS EventBridge ([Website](https://aws.amazon.com/eventbridge/))
- Contour ([Github](https://github.com/projectcontour/contour))
Expand Down
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vmweventbroker.io
vmweventbroker.io
14 changes: 14 additions & 0 deletions docs/_data/contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Additional team members that we want to showcase on the list of contributors
# they could be contributing through other repositories, evangelize product etc.
#
contributorlimit: 8
members:
- name: Denis Chorbadzhiyski
img: https://pbs.twimg.com/profile_images/1344383342989467652/ZOEl0nPv_400x400.jpg
twitter: DChorbadzhiyski
github: dchorbadjiys
- name: Dimitar Milov
img: https://avatars.githubusercontent.com/u/10736688?v=4
twitter: dimitar_milov
github: dmilov
89 changes: 55 additions & 34 deletions docs/_includes/contributors.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,61 @@
<div class="row mb-0">
<p>
{{ site.title }} is released as open source software and provides community support through our GitHub project page.
If you encounter an issue or have a question, feel free to reach out on the <strong><a href="{{ site.gh_repo }}/issues" target="_blank">GitHub issues page for {{ site.title }}</a></strong>.</p>
<p>
Our team welcomes contributions from the community!
</p>
<p>
{{ site.title }} is released as open source software and provides community support through our GitHub project page.
If you encounter an issue or have a question, feel free to reach out on the <strong><a href="{{ site.gh_repo }}/issues" target="_blank">GitHub issues page for {{ site.title }}</a></strong>.</p>
<p>
Our team welcomes contributions from the community!
</p>
</div>

<div class="row mt-0">
<h2 class="mb-4 mt-3">Top Contributors</h2>
{% if site.people %}
<div class="row thumbnail-grid">
{% for person in site.github.contributors %}
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
<div class="media thumbnail-item d-flex flex-column align-items-center mb-3">
{% if person.login == "vmwghbot" %}
<a href="https://www.youtube.com/watch?v=FdSJ0QxhHro" target="_blank" class="p-1 text-center">
<img src="{{'/assets/img/heroes/veba_banner_sm.png' | relative_url}}" alt="Person" />
<span id="otto-hack" class="mt-1 p-1 w-100 badge badge-secondary align-middle text-dark">
&bsol;&Ograve;&boxhd;&Oacute;&frasl;
</span>
</a>
{% else %}
<a href="{{person.html_url}}" target="_blank" class="p-1 text-center">
<img src="{{ person.avatar_url }}" class="rounded-circle shadow-sm" alt="Person" />
<span class="mt-1 p-1 w-100 badge badge-secondary align-middle">
{{ person.login }}
</span>
</a>
{% endif %}
</div>
</div>
{% if site.peoplelimit > 0 and forloop.index >= site.people_limit %}
{% break %}
{% endif %}
{% endfor %}
<h2 class="mb-4 mt-3">Top Contributors</h2>
{% if site.people %}
<div class="row thumbnail-grid">
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
<div class="media thumbnail-item d-flex flex-column align-items-center mb-3">
<a href="https://www.youtube.com/watch?v=FdSJ0QxhHro" target="_blank" class="p-1 text-center">
<img src="{{'/assets/img/heroes/veba_banner_sm.png' | relative_url}}" alt="Person" />
<span id="otto-hack" class="mt-1 p-1 w-100 badge badge-secondary align-middle text-dark">
&bsol;&Ograve;&boxhd;&Oacute;&frasl;
</span>
</a>
</div>
</div>
{% endif %}
{% for person in site.github.contributors %}
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
<div class="media thumbnail-item d-flex flex-column align-items-center mb-3">
{% if person.login == "vmwghbot" %}
<!--SKIP-->
{% else %}
<a href="{{person.html_url}}" target="_blank" class="p-1 text-center">
<img src="{{ person.avatar_url }}" class="rounded-circle shadow-sm" alt="Person" />
<span class="mt-1 p-1 w-100 badge badge-secondary align-middle">
{{ person.login }}
</span>
</a>
{% endif %}
</div>
</div>
{% if site.peoplelimit > 0 and forloop.index >= site.people_limit %}
{% break %}
{% endif %}
{% endfor %}

{% for member in site.data.contributors.members %}
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
<div class="media thumbnail-item d-flex flex-column align-items-center mb-3">
<a href="https://github.com/{{member.github}}" target="_blank" class="p-1 text-center">
<img src="{{ member.img }}" class="rounded-circle shadow-sm" alt="Person" />
<span class="mt-1 p-1 w-100 badge badge-secondary align-middle">
{{member.github}}
</span>
</a>
</div>
</div>
{% if site.data.contributors.contributorlimit > 0 and forloop.index >= site.data.contributors.contributorlimit %}
{% break %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
36 changes: 36 additions & 0 deletions docs/_layouts/function.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
{% include head.html %}

<body id="{{ page.id }}">
<div class="container-fluid site-outer-container">
<div class="site-container">
{% include site-header.html %}
<div class="post-single-hero bg-color-{{ site.hero.background-color }}">
<div class="section">
<div class="section-content">
<h1>{{ page.title }}</h1>
</div>
</div>
</div>

<div class="post-single-body">

<div class="section section-card pb-0">
<div class="sub-header" id="{{ page.type }}">
<ul class="nav-menu" id="submenu">
<li class="knative"><a href="{{ '/examples-knative' | relative_url }}" title="Knative Functions">Knative Functions</a></li>
<li class="openfaas"><a href="{{ '/examples' | relative_url }}" title="OpenFaaS Functions">OpenFaaS Functions</a></li>
</ul>
</div>
<div class="section-content pt-4 pb-4 shadow">
{{ content }}
</div>
</div>
</div>
{% include footer.html %}
</div>
</div>
</body>

</html>
2 changes: 1 addition & 1 deletion docs/_usecases/usecase2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Automation
#subtitle: See Function
redirect_from: /docs
image: fas fa-magic
excerpt: Automate repetitive tasks and improve efficiency with event-driven functions powered by OpenFaaS
excerpt: Automate repetitive tasks and improve efficiency with event-driven functions powered by Knative
author_name: VEBA Team
# author_avatar: https://placehold.it/64x64
categories: ['repetitive']
Expand Down
1 change: 1 addition & 0 deletions docs/assets/_scss/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@import "./site/layouts/container";
@import "./site/layouts/documentation";
@import "./site/layouts/resources";
@import "./site/layouts/function";

// Objects
@import "./site/objects/header";
Expand Down
54 changes: 54 additions & 0 deletions docs/assets/_scss/site/layouts/_function.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.sub-header {
max-width: $section-content-max-width;
margin: 0 auto;

.nav-menu{
list-style: none;
flex: 1;
display: flex;
flex-wrap: wrap;
padding-left: 0;
align-items: center;
justify-content: center;
margin-bottom: 0px;

li {
font-size: $font-size-base;
font-weight: 400;
padding: 10px 15px 5px 15px;
background-color: #a5a2a2;
border-bottom: 1px solid #ccc9c9;
width: 50%;
text-align: center;
box-shadow: 0px 0px 2px #ccc9c9;

&.active{
background-color: #fff;
border: 1px solid #fff;
border-radius: 4px 4px 0px 0px;
box-shadow: none;
}

a {
color: #fff;
}

a:link {
text-decoration: none;
text-shadow: 0px 0px 1px #fff;
}

&.active a{
cursor: pointer;
font-weight: 600;
color: $link-color;
text-shadow: 0px 0px 1px #727272;
}

a:focus, a:hover {
cursor: pointer;
color: $link-color;
}
}
}
}
2 changes: 2 additions & 0 deletions docs/assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

$('ul#header-nav li.' + $('body').attr('id')).addClass('selected');

$('ul#submenu li.' + $('div.sub-header').attr('id')).addClass('active');

$('nav#toc-nav ul li.' + $('div.documentation-container').attr('id')).addClass('selected');

if (localStorage.getItem("darkmode") === 'night'){
Expand Down
24 changes: 20 additions & 4 deletions docs/kb/advanced-certificates.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cta:

## Updating the TLS Certificate on VEBA

The default certificate for OpenFaaS (/ui) or the EventBridge (/stats) and the other web endpoints running on VEBA are self signed. This might cause browsers to show the certificate as untrusted and would require providing the `--no-tls-verify` flag when working with faas-cli.
The default certificate for OpenFaaS (/ui), Stats (/stats), Status (/status), Logs (/bootstrap) and the other web endpoints running on VEBA are self signed. This might cause browsers to show the certificate as untrusted and would require providing the `--no-tls-verify` flag when working with faas-cli.

In order to update the certificates with a certificate from a trusted authority, please follow the steps outlined below

Expand All @@ -31,11 +31,27 @@ KEY_FILE=<cert-key-file>.pem
CERT_FILE=<public-cert>.cer

#recreate the tls secret
kubectl --kubeconfig /root/.kube/config -n vmware delete secret ${CERT_NAME}
kubectl --kubeconfig /root/.kube/config -n vmware create secret tls ${CERT_NAME} --key ${KEY_FILE} --cert ${CERT_FILE}
kubectl -n vmware-system delete secret ${CERT_NAME}
kubectl -n vmware-system create secret tls ${CERT_NAME} --key ${KEY_FILE} --cert ${CERT_FILE}

#reapply the config to take the new certificate
kubectl --kubeconfig /root/.kube/config apply -f /root/config/ingressroute-gateway.yaml
kubectl apply -f /root/config/ingressroute-gateway.yaml
```

If you are using the Embedded Knative Broker, you will also need to reference the newly generated certificate as it is also used as part of the Knative Contour integration.

```bash
cd /folder/certs/location
KNATIVE_CERT_NAME=eventrouter-tls #DO NOT CHANGE THIS
KEY_FILE=<cert-key-file>.pem
CERT_FILE=<public-cert>.cer

#recreate the tls secret
kubectl -n contour-external delete secret ${KNATIVE_CERT_NAME}
kubectl -n contour-external create secret tls default-cert --key ${KEY_FILE} --cert ${CERT_FILE}

#reapply the config to take the new certificate
kubectl apply -f /root/config/ingressroute-gateway.yaml
```

Watch this short video to see the steps being performed to successfully update the certs for VEBA configured for OpenFaaS - [here](https://youtu.be/7oMCvxvL2ns){:target="_blank"}
2 changes: 1 addition & 1 deletion docs/kb/contribute-appliance.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cta:

## Requirements

* 2 vCPU and 8GB of memory for VMware Event Broker Appliance
* 4 vCPU and 8GB of memory for VMware Event Broker Appliance
* ESXi host v6.7 or greater
* SSH must be enabled on the host
* Enable GuestIPHack on the host by running `esxcli system settings advanced set -o /Net/GuestIPHack -i 1`
Expand Down
16 changes: 13 additions & 3 deletions docs/kb/contribute-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@ If you're just starting out with containers and source control and are looking f

# Preqrequisites

Three tools are required in order to contribute functions - You must install [Git](https://git-scm.com/downloads){:target="_blank"}, [Docker](https://docs.docker.com/){:target="_blank"}, and download [faas-cli.exe](https://github.com/openfaas/faas-cli/releases){:target="_blank"}.
You must create a [Github](https://github.com/join){:target="_blank"} account. You need to verify your email with Github in order to contribute to the VEBA repository.

You must also create a [Github](https://github.com/join){:target="_blank"} account. You need to verify your email with Github in order to contribute to the VEBA repository.
For Knative, the following tools are required:
* [Git](https://git-scm.com/downloads){:target="_blank"}
* [Docker](https://docs.docker.com/){:target="_blank"}
* [Knative CLI](https://knative.dev/docs/install/install-kn/){:target="_blank"}

For OpenFaaS, the following tools are required:
* [Git](https://git-scm.com/downloads){:target="_blank"}
* [Docker](https://docs.docker.com/){:target="_blank"}
* [OpenFaaS CLI](https://github.com/openfaas/faas-cli/releases){:target="_blank"}

# Quickstart for Contributing

Expand Down Expand Up @@ -80,7 +88,9 @@ You can then submit a pull request (PR) to the VEBA maintainers - a step-by-step

# Changing or contributing new functions

The git commands are the same, but in order to change code, you must reference your own Docker image. The example YAML below comes from the [datastore-usage-email](https://github.com/vmware-samples/vcenter-event-broker-appliance/tree/master/examples/powercli/datastore-usage-email){:target="_blank"} sample function. Note that the `image:` references the `vmware` docker account. You must change this to your own docker account. As always the `gateway:` must point to your own local VEBA appliance
The git commands are the same, but in order to change code, you must reference your own Docker image. The example YAML below comes from the OpenFaaS [datastore-usage-email](https://github.com/vmware-samples/vcenter-event-broker-appliance/tree/master/examples/openfaas/powercli/datastore-usage-email){:target="_blank"} sample function. A similar workflow is also followed for Knative functions.

> Note: The `image:` references the `vmware` docker account. You must change this to your own docker account. As always the `gateway:` must point to your own local VEBA appliance

```yaml
Expand Down
Binary file removed docs/kb/img/veba-appliance-diagram.png
Binary file not shown.
Binary file modified docs/kb/img/veba-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2df2739

Please sign in to comment.