-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
229 additions
and
101 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,42 @@ | ||
--- | ||
name: "Integration tests" | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build_image: | ||
name: Build k8s-toolbox desk | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Build image | ||
run: | | ||
./_desk/build-image.sh | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_TOKEN }} | ||
- name: Push images to container registry | ||
run: | | ||
./_desk/push-image.sh | ||
utest: | ||
name: Run unit tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.20.3' | ||
- run: go version | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run unit tests | ||
run: | | ||
go test ./... | ||
- name: Build and install k8s-toolbox | ||
run: | | ||
go install . | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: audit.k8s.io/v1 | ||
kind: Policy | ||
rules: | ||
- level: Metadata |
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 @@ | ||
../utest/dot-config-audit |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Used by unit tests | ||
kind: | ||
|
||
auditPolicy: /tmp/audit-policy.yaml | ||
|
||
# Use host directory to share data between host and kind node | ||
# host directory will be mounted on /mnt/extra on each node | ||
extraMountPath: /media | ||
|
||
# Sets "127.0.0.1" as an extra Subject Alternative Names (SANs) for the API Server signing certificate. | ||
# See https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-APIServer | ||
# Usefull to access API server through a ssh tunnel | ||
localCertSans: false | ||
|
||
# Use calico CNI instead of kindnet | ||
# cni: calico | ||
# Number of worker nodes | ||
workers: 1 | ||
|
||
# Use an private registry with insecure_skip_verify tls mode | ||
privateRegistry: "docker-registry.docker-registry:5000" |
Oops, something went wrong.