Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/minikube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

name: Run on minikube

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Run on minikube
run: |
bash scripts/run-minikube.sh
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: Release Charts

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/aurras-deployment-kubernetes.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions .idea/protobuf.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@



- What is openwhisk cloned into here for?
- Antipattern
- Top directory should be `charts` generally

- aurrus chart
- Rm HPA?
- Rm Ingress?
- Separate internal vs external Ops stuff
- Create another repo
- aurras-ops
- Keep private

- Goals of this repo
- Chart people can deploy aurras with
- Charts for required infra / directions on how to apply the ones you need
- Deployable via minikube


- Application
- Type of thing (ie helm)

1 change: 0 additions & 1 deletion aurras-event-feed-substrate/helm/config/types.json

This file was deleted.

Empty file.
3 changes: 3 additions & 0 deletions examples/minikube/openwhisk-helm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

helm update --namespace aurras

11 changes: 11 additions & 0 deletions examples/minikube/storage-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
namespace: kube-system
name: standard
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
labels:
addonmanager.kubernetes.io/mode: Reconcile

provisioner: k8s.io/minikube-hostpath
1 change: 0 additions & 1 deletion openwhisk
Submodule openwhisk deleted from 9dbf56
6 changes: 6 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


helm repo add openwhisk https://openwhisk.apache.org/charts
helm repo update
helm install owdev openwhisk/openwhisk -n openwhisk --create-namespace -f mycluster.yaml

26 changes: 26 additions & 0 deletions scripts/helm-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
BRANCH=gh-pages
mkdir -p .releases
mkdir -p .releases-done

for chart in $(ls charts); do
helm package "charts/${chart}" --dependency-update --destination .releases/
cr upload -r "${CIRCLE_PROJECT_REPONAME}" -o "${CIRCLE_PROJECT_USERNAME}" -p ".releases/" -t "${GITHUB_TOKEN}"
mv .releases/${chart}* .releases-done/
done

mv .cr-index/index.yaml .releases/
mv .releases-done/* .releases/

git checkout -f ${BRANCH}
mkdir .cr-index
mv .releases/index.yaml .cr-index/
cr index -c https://insight-infrastructure.github.io/charts -r "${CIRCLE_PROJECT_REPONAME}" -o "${CIRCLE_PROJECT_USERNAME}" -p .releases/ -t "${GITHUB_TOKEN}"
mv .cr-index/index.yaml .
rm .cr-index

git config user.email "${GITHUB_EMAIL}"
git config user.name "${GITHUB_USERNAME}"
git add index.yaml
git commit -m "update helm chart repo index to ${CIRCLE_SHA1}"
git push https://${GITHUB_TOKEN}@github.com/insight-infrastructure/charts.git ${BRANCH}
6 changes: 6 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

for chart in $(ls charts); do
helm lint "charts/${chart}"
done
5 changes: 5 additions & 0 deletions scripts/run-minikube.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
minikube start

kubectl apply -f examples/minikube/storage-class.yaml

helm repo add