Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enterprise helm initial commit #1

Merged
merged 32 commits into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3041f04
adding inital HELM charts
theburi Oct 9, 2020
b0ed559
Adding new Operator HELM Chart
theburi Oct 13, 2020
805439d
adding new HELM Chart for the Operator
theburi Oct 14, 2020
37acdf2
Merge branch 'main' of https://github.com/mongodb/helm-charts into en…
theburi Oct 14, 2020
9f89778
adding Token for the action
theburi Oct 14, 2020
2601d48
Fix for GitHubAction
theburi Oct 14, 2020
a508704
adding Lint to PR's
theburi Oct 14, 2020
e466e4a
Moving charts to chart folder
theburi Oct 14, 2020
2382413
chaging folder for charts
theburi Oct 14, 2020
c363544
updating lint scripts
theburi Oct 14, 2020
f0021a0
Fixing branch name
theburi Oct 14, 2020
8bf7971
Fixing Lint errors
theburi Oct 14, 2020
bbdd5bf
fixing lint issues
theburi Oct 14, 2020
a6abedb
Fixing some more lint errors
theburi Oct 14, 2020
fe6c0a5
Fixing lint error
theburi Oct 14, 2020
69a634a
adding maintainer to the Chart
theburi Oct 14, 2020
6d57160
testing maintainer checks
theburi Oct 14, 2020
f6d1df9
Adding correct maintainer
theburi Oct 14, 2020
e695b72
Fixing strict lint errors
theburi Oct 14, 2020
fdbca10
Lint error fix
theburi Oct 14, 2020
34a2c5f
Adding kubeval
theburi Oct 14, 2020
a3ec2ed
fixing workflow file
theburi Oct 14, 2020
c367524
Worklfow file update
theburi Oct 14, 2020
1d7bf5c
Workflow file update
theburi Oct 14, 2020
baa35d2
small update to eval script
theburi Oct 14, 2020
4a9114b
upgrading kubeval
theburi Oct 14, 2020
d288909
testing kubeval
theburi Oct 14, 2020
3fd4614
adding permission to exec file
theburi Oct 14, 2020
f85d7ff
Adding get checkout
theburi Oct 14, 2020
b17fd36
adding actor to the Action
theburi Oct 14, 2020
3b8772c
adding updated branches
theburi Oct 14, 2020
aa031f1
Restricting release to main branch only
theburi Oct 14, 2020
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
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions .github/ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
helm-extra-args: --timeout 600
check-version-increment: true
debug: true
target-branch: main
15 changes: 15 additions & 0 deletions .github/kubeval.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -euxo pipefail

CHART_DIRS="$(git diff --find-renames --name-only "$(git rev-parse --abbrev-ref HEAD)" remotes/origin/main -- charts | grep '[cC]hart.yaml' | sed -e 's#/[Cc]hart.yaml##g')"
KUBEVAL_VERSION="0.15.0"
SCHEMA_LOCATION="https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/"

# install kubeval
curl --silent --show-error --fail --location --output /tmp/kubeval.tar.gz https://github.com/instrumenta/kubeval/releases/download/"${KUBEVAL_VERSION}"/kubeval-linux-amd64.tar.gz
tar -xf /tmp/kubeval.tar.gz kubeval

# validate charts
for CHART_DIR in ${CHART_DIRS}; do
helm template "${CHART_DIR}" | ./kubeval --strict --ignore-missing-schemas --kubernetes-version "${KUBERNETES_VERSION#v}" --schema-location "${SCHEMA_LOCATION}"
done
42 changes: 42 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Lint and Test Charts

on:
pull_request:
paths:
- 'charts/**'

jobs:
lint-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Fetch history
run: git fetch --prune --unshallow

- name: Run chart-testing (lint)
id: lint
uses: helm/[email protected]
with:
command: lint
config: .github/ct.yaml

kubeval-chart:
runs-on: ubuntu-latest
needs:
- lint-chart
strategy:
matrix:
k8s:
- v1.15.11
- v1.16.8
- v1.17.4
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run kubeval
env:
KUBERNETES_VERSION: ${{ matrix.k8s }}
run: .github/kubeval.sh

17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Release Charts
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- main


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -19,13 +19,18 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v1
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Helm Chart Releaser
# You may pin to the exact commit or the version.
# uses: helm/chart-releaser-action@97237943efb7a48269d47a642ec5fdff675aa55f
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
# The charts directory
charts_dir: ./
# The GitHub Pages URL to the charts repo (default: https://<owner>.github.io/<repo>)
charts_repo_url: https://mongodb.github.io/helm-charts
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
private/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# helm-charts

This is a test repository.

13 changes: 13 additions & 0 deletions charts/ent-operator-database/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v2
name: mongodb-enterprise-database
description: MongoDB Kubernetes Enterprise Operator- MongoDB DataBase charts
version: 0.1.0
kubeVersion: '>=1.15-0'
keywords:
- mongodb
- database
- nosql
home: https://github.com/mongodb/mongodb-enterprise-kubernetes
maintainers:
- name: theburi
email: [email protected]
Loading