mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
This reverts commit 9c7f7019f3
.
This commit is contained in:
parent
9c7f7019f3
commit
2749280b6c
4 changed files with 1 additions and 55 deletions
20
.github/workflows/build.yaml
vendored
20
.github/workflows/build.yaml
vendored
|
@ -173,23 +173,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export PROJECT_PATH=$(pwd)
|
export PROJECT_PATH=$(pwd)
|
||||||
make test-all
|
make test-all
|
||||||
|
|
||||||
helm-tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: pre-checks
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Unshallow
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.7
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2.0.1
|
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
|
||||||
run: ct lint --target-branch=main --check-version-increment=false
|
|
||||||
|
|
20
.github/workflows/e2e.yaml
vendored
20
.github/workflows/e2e.yaml
vendored
|
@ -30,14 +30,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.14
|
||||||
|
|
||||||
- name: Set up Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.5.0
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2.0.1
|
|
||||||
|
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
|
@ -84,16 +76,4 @@ jobs:
|
||||||
sleep 20
|
sleep 20
|
||||||
echo ">>> Run Kyverno e2e test"
|
echo ">>> Run Kyverno e2e test"
|
||||||
make test-e2e
|
make test-e2e
|
||||||
kubectl delete -f ${GITHUB_WORKSPACE}/definitions/install.yaml
|
|
||||||
|
|
||||||
- name: Update chart values
|
|
||||||
run: |
|
|
||||||
sed -i -e "s|nameOverride:.*|nameOverride: kyverno|g" charts/kyverno/values.yaml
|
|
||||||
sed -i -e "s|fullnameOverride:.*|fullnameOverride: kyverno|g" charts/kyverno/values.yaml
|
|
||||||
sed -i -e "s|namespace:.*|namespace: kyverno|g" charts/kyverno/values.yaml
|
|
||||||
sed -i -e "s|tag:.*|tag: $(git describe --always --tags)|g" charts/kyverno/values.yaml
|
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
|
||||||
run: |
|
|
||||||
kubectl create namespace kyverno
|
|
||||||
ct install --target-branch=main --namespace=kyverno
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: "{{ template "kyverno.fullname" . }}-test"
|
|
||||||
labels:
|
|
||||||
{{- include "kyverno.labels" . | nindent 4 }}
|
|
||||||
annotations:
|
|
||||||
"helm.sh/hook": test
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: wget
|
|
||||||
image: busybox
|
|
||||||
command: ['wget']
|
|
||||||
args: ['-O-','-S','--no-check-certificate','https://{{ template "kyverno.serviceName" . }}:{{ .Values.service.port }}/health/liveness']
|
|
||||||
restartPolicy: Never
|
|
|
@ -152,3 +152,4 @@ service:
|
||||||
# 3) Let Helm generate a self signed cert, by setting createSelfSignedCert true
|
# 3) Let Helm generate a self signed cert, by setting createSelfSignedCert true
|
||||||
# If letting Kyverno create its own CA or providing your own, make createSelfSignedCert is false
|
# If letting Kyverno create its own CA or providing your own, make createSelfSignedCert is false
|
||||||
createSelfSignedCert: false
|
createSelfSignedCert: false
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue