Compare commits

...

11 Commits

Author SHA1 Message Date
Eugene Taranov
48920ee38c moved validation into separate job 2020-06-23 18:55:56 +03:00
Eugene Taranov
ef5e184d67 disabled PR 2020-06-23 18:22:05 +03:00
Eugene Taranov
78c015ed09 fix 2020-06-23 18:19:51 +03:00
Eugene Taranov
6b4ca62f36 test tip-wlan 2020-06-23 18:18:42 +03:00
Eugene Taranov
9a5c218c5f test 2020-06-23 18:13:57 +03:00
Eugene Taranov
a25b4f70a6 test 2020-06-23 18:10:20 +03:00
Eugene Taranov
0567fa7536 fix 2020-06-23 18:02:06 +03:00
Eugene Taranov
e6eda54959 test glusterfs 2020-06-23 18:00:09 +03:00
Eugene Taranov
5e1f2ed6ec test 2020-06-23 17:38:16 +03:00
Eugene Taranov
08aadaa10e test 2020-06-23 17:32:38 +03:00
Eugene Taranov
1a083c035e TOOLS-23: k8s manifests validators 2020-06-23 16:29:05 +03:00
3 changed files with 135 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
@@ -28,5 +27,4 @@ jobs:
- name: Verify that chart was uploaded successfully
run: |
helm repo update
helm search repo tip
helm search repo tip

58
.github/workflows/helm-validation.yml vendored Normal file
View File

@@ -0,0 +1,58 @@
name: Helm validation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.GH_AUTOMATION_KEY }}
submodules: true
- name: Validators setup
working-directory: /tmp
env:
KUBESCORE_VERSON: 1.7.1
run: |
mkdir /tmp/k8s-validators
curl -LO https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz
tar xf kubeval-linux-amd64.tar.gz
rm -f kubeval-linux-amd64.tar.gz
curl -LO https://github.com/zegl/kube-score/releases/download/v${{ env.KUBESCORE_VERSON }}/kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz
tar xf kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz
rm -f kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz
curl -LO https://get.helm.sh/helm-v3.2.4-linux-amd64.tar.gz
tar xf helm-v3.2.4-linux-amd64.tar.gz
mv linux-amd64/helm .
rm -fr helm-v3.2.4-linux-amd64.tar.gz linux-amd64
echo "::add-path::/tmp/k8s-validators/"
- name: Cache validators
uses: actions/cache@v1
with:
path: /tmp/k8s-validators
key: ${{ runner.os }}-k8s-validators
- name: Test tip-wlan
working-directory: tip-wlan
run: |
echo "Kubeval test"
helm template -f values-test.yaml . | kubeval --ignore-missing-schemas
echo "Kube-score test"
helm template -f values-test.yaml . | kube-score score -
- name: Test glusterfs
working-directory: glusterfs/kube-templates
run: |
echo "Kubeval test"
kubeval *.yaml
echo "Kube-score test"
kube-score score *.yaml

76
tip-wlan/values-test.yaml Normal file
View File

@@ -0,0 +1,76 @@
# Default values for Tip-Wlan
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
#################################################################
# Global configuration overrides.
#
# These overrides will affect all helm charts (ie. applications)
# that are listed below and are 'enabled'.
#################################################################
global:
# Change to an unused port prefix range to prevent port conflicts
# with other instances running within the same k8s cluster
nodePortPrefix: 302
# namespace to deploy the release
nsPrefix: tip
repository: tip-tip-wlan-cloud-docker-repo.jfrog.io
# image pull policy
pullPolicy: Always
# default mount path root directory referenced
# by persistent volumes and log files
persistence:
# override default resource limit flavor for all charts
flavor: unlimited
# flag to enable debugging - application support required
debugEnabled: false
# Integrated Deployment which deploys Prov Service, Portal Service and
# SSC Service in a single docker image
integratedDeployment: false
# Namespace related
createReleaseNamespace: true
# DockerRegistry Secret
createDockerRegistrySecret: true
# Docker Registry secret to pull docker images from WLAN repo
dockerRegistrySecret: dummySecret
# Annotations to add to the namespace
annotations: {}
# Enabling components under Tip-wlan
opensync-gw-static:
enabled: true
opensync-gw-cloud:
enabled: true
opensync-mqtt-broker:
enabled: true
wlan-cloud-graphql-gw:
enabled: true
wlan-cloud-static-portal:
enabled: true
wlan-portal-service:
enabled: true
wlan-prov-service:
enabled: true
wlan-ssc-service:
enabled: true
wlan-integrated-cloud-component-service:
enabled: true
nginx-ingress-controller:
enabled: true
zookeeper:
enabled: true
kafka:
enabled: true
cassandra:
enabled: true
postgresql:
enabled: true