-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add E2E Tests and Adjust Cluster Resource Usage for GitHub Actions
- Loading branch information
Showing
32 changed files
with
11,169 additions
and
129 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
name: custom-config | ||
spec: | ||
namespace: kubedatastack | ||
timeouts: | ||
apply: 420s | ||
assert: 420s | ||
cleanup: 120s | ||
delete: 120s | ||
error: 300s | ||
exec: 200s | ||
skipDelete: false | ||
failFast: true |
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,48 @@ | ||
# e2e test | ||
|
||
name: e2e-test | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
chainsaw-test: | ||
name: Chainsaw Test | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
k8s-version: ['1.26.14', '1.27.11'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.22' | ||
cache: false | ||
- uses: docker-practice/actions-setup-docker@master | ||
timeout-minutes: 12 | ||
- run: | | ||
set -x | ||
docker version | ||
docker run --rm hello-world | ||
docker pull quay.io/zncdatadev/hadoop:3.3.4 | ||
name: Test docker | ||
- name: Create KinD clustet pur | ||
env: | ||
KINDTEST_K8S_VERSION: ${{ matrix.k8s-version}} | ||
KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }} | ||
KIND_KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }} | ||
run: make kind-create | ||
- name: Chainsaw test setup | ||
env: | ||
KINDTEST_K8S_VERSION: ${{ matrix.k8s-version }} | ||
KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }} | ||
KIND_KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }} | ||
run: make chainsaw-setup | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# timeout-minutes: 20 | ||
- name: Test with Chainsaw | ||
env: | ||
KINDTEST_K8S_VERSION: ${{ matrix.k8s-version }} | ||
KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }} | ||
KIND_KUBECONFIG: kind-kubeconfig-${{ matrix.k8s-version }} | ||
run: make chainsaw-test |
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 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
23 changes: 23 additions & 0 deletions
23
bundle/manifests/hdfs-operator-controller-manager-metrics-service_v1_service.yaml
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,23 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: kube-rbac-proxy | ||
app.kubernetes.io/created-by: hdfs-operator | ||
app.kubernetes.io/instance: controller-manager-metrics-service | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/name: service | ||
app.kubernetes.io/part-of: hdfs-operator | ||
control-plane: controller-manager | ||
name: hdfs-operator-controller-manager-metrics-service | ||
spec: | ||
ports: | ||
- name: https | ||
port: 8443 | ||
protocol: TCP | ||
targetPort: https | ||
selector: | ||
control-plane: controller-manager | ||
status: | ||
loadBalancer: {} |
17 changes: 17 additions & 0 deletions
17
bundle/manifests/hdfs-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml
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,17 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: kube-rbac-proxy | ||
app.kubernetes.io/created-by: hdfs-operator | ||
app.kubernetes.io/instance: metrics-reader | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/part-of: hdfs-operator | ||
name: hdfs-operator-metrics-reader | ||
rules: | ||
- nonResourceURLs: | ||
- /metrics | ||
verbs: | ||
- get |
Oops, something went wrong.