This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
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
1,253 changed files
with
57,997 additions
and
17,885 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
* | ||
!artifacts/orbctl-Linux-x86_64 | ||
!artifacts/gen-charts | ||
!dashboards/ | ||
!artifacts/nodeagent | ||
!dashboards/ | ||
!build/ |
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,7 @@ | ||
# Always validate the PR title AND all the commits | ||
titleAndCommits: false | ||
# Require at least one commit to be valid | ||
# this is only relevant when using commitsOnly: true or titleAndCommits: true, | ||
# which validate all commits by default | ||
anyCommit: true | ||
# Related docs https://github.com/zeke/semantic-pull-requests#configuration |
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 |
---|---|---|
|
@@ -11,36 +11,60 @@ jobs: | |
- name: Source Checkout | ||
id: source-checkout | ||
uses: actions/checkout@v1 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
fetch-depth: 1 | ||
go-version: '1.16.0' | ||
- name: Release | ||
id: release | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GO111MODULE: on | ||
CGO_ENABLED: 0 | ||
CR_PAT: ${{ secrets.CR_PAT }} | ||
REGISTRY: ghcr.io | ||
run: | | ||
npm install [email protected] | ||
export BRANCH=${GITHUB_REF##*/} | ||
export VERSION=$BRANCH | ||
VERSION="v$(npx semantic-release --dry-run --plugins=@semantic-release/commit-analyzer --analize-commits | grep "The next release version is" | sed -ne 's/.*The\ next\ release\ version\ is\ \([0-9]\+\.[0-9]\+\.[0-9]\+\)$/\1/p')" | ||
[[ "$VERSION" == "v" ]] && echo "Exiting, as no new version needs to be released" && exit 0 | ||
echo "::set-output name=version::$VERSION" | ||
export IMAGE=docker.pkg.github.com/caos/orbos/orbos | ||
export IMAGE=$REGISTRY/$GITHUB_REPOSITORY | ||
export TAG_LATEST=${IMAGE}:latest | ||
export TAG_VERSION=${IMAGE}:${VERSION} | ||
go mod download | ||
mkdir -p ./artifacts | ||
go run cmd/gen-executables/*.go -version "$VERSION" -commit "${{ github.sha }}" -githubclientid "${{ secrets.GITHUBOAUTHCLIENTID }}" -githubclientsecret "${{ secrets.GITHUBOAUTHCLIENTSECRET }}" --orbctl ./artifacts | ||
go run cmd/chore/gen-executables/*.go -version "$VERSION" -commit "${{ github.sha }}" -githubclientid "${{ secrets.GITHUBOAUTHCLIENTID }}" -githubclientsecret "${{ secrets.GITHUBOAUTHCLIENTSECRET }}" --orbctl ./artifacts | ||
CGO_ENABLED=0 GOOS=linux go build -o ./artifacts/gen-charts cmd/gen-charts/*.go | ||
CGO_ENABLED=0 GOOS=linux go build -o ./artifacts/gen-charts cmd/chore/gen-charts/*.go | ||
echo "Publishing Orbos version $VERSION" | ||
docker login docker.pkg.github.com -u ci -p ${GITHUB_TOKEN} | ||
docker build --tag ${TAG_LATEST} --tag ${TAG_VERSION} --file ./Dockerfile . | ||
echo "Publishing ORBOS version $VERSION" | ||
docker login $REGISTRY -u $GITHUB_ACTOR -p $CR_PAT | ||
docker build --tag ${TAG_LATEST} --tag ${TAG_VERSION} --file ./build/orbos/Dockerfile . | ||
docker push ${TAG_VERSION} | ||
docker push ${TAG_LATEST} | ||
npx semantic-release && exit 0 | ||
npx semantic-release && exit 0 | ||
# - name: Trigger E2E Test On StaticProvider | ||
# if: steps.dev-release.outputs.relbranch != null | ||
# run: go run ./cmd/chore/e2e/trigger/*.go --branch "${GITHUB_REF#refs/heads/}" --organization caos --repository ORBOS-Test-StaticProvider --access-token "${{ secrets.CR_PAT }}" | ||
# - name: Trigger E2E Test On GCEProvider | ||
# if: steps.dev-release.outputs.relbranch != null | ||
# run: go run ./cmd/chore/e2e/trigger/*.go --branch "${GITHUB_REF#refs/heads/}" --organization caos --repository ORBOS-Test-GCEProvider --access-token "${{ secrets.CR_PAT }}" | ||
# - name: Trigger E2E Test On CloudscaleProvider | ||
# if: steps.dev-release.outputs.relbranch != null | ||
# run: go run ./cmd/chore/e2e/trigger/*.go --branch "${GITHUB_REF#refs/heads/}" --organization caos --repository ORBOS-Test-CloudscaleProvider --access-token "${{ secrets.CR_PAT }}" | ||
- name: Create Sentry release | ||
uses: getsentry/action-release@v1 | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_ORG: caos | ||
SENTRY_PROJECT: orbctl | ||
with: | ||
version: orbos-${{ steps.release.outputs.version }} | ||
projects: "orbctl boom orbiter networking-operator node-agent" | ||
if: steps.release.outputs.version != null |
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
module.exports = { | ||
plugins: [ | ||
plugins: [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
["@semantic-release/github", { | ||
"assets": [ | ||
{"path": "./artifacts/orbctl-Darwin-x86_64", "label": "Darwin x86_64"}, | ||
{"path": "./artifacts/orbctl-FreeBSD-x86_64", "label": "FreeBSD x86_64"}, | ||
{"path": "./artifacts/orbctl-Linux-x86_64", "label": "Linux x86_64"}, | ||
{"path": "./artifacts/orbctl-OpenBSD-x86_64", "label": "OpenBSD x86_64"}, | ||
{"path": "./artifacts/orbctl-Windows-x86_64.exe", "label": "Windows x86_64"} | ||
{"path": "./artifacts/orbctl-Darwin-x86_64", "label": "Darwin x86_64"}, | ||
{"path": "./artifacts/orbctl-Darwin-ARM64", "label": "Darwin ARM64"}, | ||
{"path": "./artifacts/orbctl-FreeBSD-x86_64", "label": "FreeBSD x86_64"}, | ||
{"path": "./artifacts/orbctl-Linux-x86_64", "label": "Linux x86_64"}, | ||
{"path": "./artifacts/orbctl-OpenBSD-x86_64", "label": "OpenBSD x86_64"}, | ||
{"path": "./artifacts/orbctl-Windows-x86_64.exe", "label": "Windows x86_64"}, | ||
] | ||
}] | ||
] | ||
}; | ||
}; |
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 |
---|---|---|
|
@@ -9,8 +9,6 @@ | |
[![Go Report Card](https://goreportcard.com/badge/github.com/caos/orbos)](https://goreportcard.com/report/github.com/caos/orbos) | ||
[![codecov](https://codecov.io/gh/caos/orbos/branch/master/graph/badge.svg)](https://codecov.io/gh/caos/orbos) | ||
|
||
> This project is in alpha state. The API will continue breaking until version 1.0.0 is released | ||
## [ORBOS explained](docs/explained.md) | ||
|
||
### [ORBITER](docs/orbiter/orbiter.md) | ||
|
@@ -34,7 +32,8 @@ sudo chmod +x /usr/local/bin/orbctl | |
sudo chown $(id -u):$(id -g) /usr/local/bin/orbctl | ||
|
||
# Create an orb file at ${HOME}/.orb/config | ||
orbctl configure --repourl [email protected]:me/my-orb.git --masterkey "$(openssl rand -base64 21)" | ||
MY_GIT_REPO="[email protected]:me/my-orb.git" | ||
orbctl --gitops configure --repourl ${MY_GIT_REPO} --masterkey "$(openssl rand -base64 21)" | ||
``` | ||
|
||
### Configure a billable Google Cloud Platform project of your choice | ||
|
@@ -59,28 +58,31 @@ gcloud projects add-iam-policy-binding ${MY_GCE_PROJECT} \ | |
gcloud projects add-iam-policy-binding ${MY_GCE_PROJECT} \ | ||
--member=serviceAccount:${ORBOS_SERVICE_ACCOUNT} \ | ||
--role=roles/serviceusage.serviceUsageAdmin | ||
gcloud projects add-iam-policy-binding ${MY_GCE_PROJECT} \ | ||
--member=serviceAccount:${ORBOS_SERVICE_ACCOUNT} \ | ||
--role=roles/iam.serviceAccountUser | ||
|
||
|
||
# Create a JSON key for the service account | ||
gcloud iam service-accounts keys create /tmp/key.json \ | ||
--iam-account ${ORBOS_SERVICE_ACCOUNT} | ||
|
||
# Encrypt and write the created JSON key to the orbiter.yml | ||
orbctl writesecret orbiter.gce.jsonkey --file /tmp/key.json | ||
orbctl --gitops writesecret orbiter.gce.jsonkey --file /tmp/key.json | ||
rm -f /tmp/key.json | ||
``` | ||
|
||
### Bootstrap your Kubernetes cluster on GCE | ||
|
||
```bash | ||
orbctl takeoff | ||
orbctl --gitops takeoff | ||
``` | ||
|
||
As soon as the Orbiter has deployed itself to the cluster, you can decrypt the generated admin kubeconfig | ||
|
||
```bash | ||
mkdir -p ~/.kube | ||
orbctl readsecret orbiter.k8s.kubeconfig > ~/.kube/config | ||
orbctl --gitops readsecret orbiter.k8s.kubeconfig > ~/.kube/config | ||
``` | ||
|
||
Wait for grafana to become running | ||
|
@@ -99,7 +101,7 @@ Delete everything created by Orbiter | |
|
||
```bash | ||
# Remove all GCE compute resources | ||
orbctl destroy | ||
orbctl --gitops destroy | ||
|
||
# Unassign all service account roles | ||
gcloud projects remove-iam-policy-binding ${MY_GCE_PROJECT} \ | ||
|
@@ -116,10 +118,28 @@ gcloud projects remove-iam-policy-binding ${MY_GCE_PROJECT} \ | |
gcloud iam service-accounts delete --quiet ${ORBOS_SERVICE_ACCOUNT} | ||
``` | ||
|
||
## Offerings | ||
|
||
The usage of our open source code is and stays completely free. Below you will find our base offerings without Service Level. If you'd like to operate ORBOS in production we recommend you to get in touch with us to arrange a Service Level Agreement and benefit from guaranteed availability and response times. For further information or if you need something else, contact us now at [email protected]. | ||
|
||
### Support | ||
|
||
You run an maintain your Orbs yourself. Your incidents are treated with a high priority. In return, we charge you with a price from CHF 250 per Orb and Month, decreasing to CHF 100. | ||
|
||
### Dedicated Orbs | ||
|
||
We run and maintain your Orbs on a supported provider of your choice. Your incidents are treated with a high priority. In return, we charge you with a price from CHF 500 per Orb and Month, decreasing to CHF 100. | ||
|
||
## Usage Data | ||
|
||
ORBOS components send errors and usage data to CAOS Ltd., so that we are able to identify code improvement potential. If you don't want to send this data or don't have an internet connection, pass the global flag `--disable-analytics` when using orbctl. For disabling ingestion for already-running components, execute the takeoff command again with the `--disable-analytics` flag. | ||
|
||
We try to distinguishing the environments from which events come from. As environment identifier, we defer the environment identifier from your git repository URL if the --gitops flag is passed. | ||
|
||
Besides from errors that don't clearly come from misconfiguration or cli misuage, we send an inital event when any binary is started. This is a "<component> invoked" event along with the flags that are passed to it, except secret values of course. | ||
## License | ||
|
||
The full functionality of the operator is and stays open source and free to use for everyone. We pay our wages by using Orbiter for selling further workload enterprise services like support, monitoring and forecasting, IAM, CI/CD, secrets management etc. Visit our [website](https://caos.ch) and get in touch. | ||
The full functionality of the operator is and stays open source and free to use for everyone. We pay our wages by using ORBOS for selling further workload enterprise services like support, monitoring and forecasting, IAM, CI/CD, secrets management etc. Visit our [website](https://caos.ch) and get in touch. | ||
|
||
See the exact licensing terms [here](./LICENSE) | ||
|
||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.