Commit dbaac3fd authored by Derek Nola's avatar Derek Nola

Fix for Kubeflag Integration test (#8154)

* Use argument that doesn't require file * Use build-k3s workflow in cgroup * Bump timeout on integration tests Signed-off-by: 's avatarDerek Nola <derek.nola@suse.com>
parent b5dc2985
...@@ -20,22 +20,11 @@ on: ...@@ -20,22 +20,11 @@ on:
- "!.github/workflows/cgroup.yaml" - "!.github/workflows/cgroup.yaml"
workflow_dispatch: {} workflow_dispatch: {}
jobs: jobs:
prep: build:
name: "Prepare" uses: ./.github/workflows/build-k3s.yaml
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- name: "Checkout"
uses: actions/checkout@v3
with: { fetch-depth: 1 }
- name: "Build"
run: DOCKER_BUILDKIT=1 SKIP_VALIDATE=1 make
- name: "Upload"
uses: actions/upload-artifact@v3
with: { name: k3s, path: dist/artifacts/k3s }
test: test:
name: "Conformance Test" name: "Conformance Test"
needs: prep needs: build
# nested virtualization is only available on macOS hosts # nested virtualization is only available on macOS hosts
runs-on: macos-12 runs-on: macos-12
timeout-minutes: 40 timeout-minutes: 40
......
...@@ -26,7 +26,7 @@ jobs: ...@@ -26,7 +26,7 @@ jobs:
needs: build needs: build
name: Integration Tests name: Integration Tests
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 30 timeout-minutes: 45
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
......
...@@ -8,7 +8,9 @@ if [ ! -e ../bin/containerd ]; then ...@@ -8,7 +8,9 @@ if [ ! -e ../bin/containerd ]; then
fi fi
./package-cli ./package-cli
./package-image if [ -z "$SKIP_IMAGE" ]; then
./package-image
fi
if [ -z "$SKIP_AIRGAP" ]; then if [ -z "$SKIP_AIRGAP" ]; then
./package-airgap ./package-airgap
fi fi
...@@ -14,7 +14,7 @@ var server *testutil.K3sServer ...@@ -14,7 +14,7 @@ var server *testutil.K3sServer
var serverArgs = []string{"--cluster-init", var serverArgs = []string{"--cluster-init",
"--kube-apiserver-arg", "advertise-port=1234", "--kube-apiserver-arg", "advertise-port=1234",
"--kube-controller-manager-arg", "allocate-node-cidrs=false", "--kube-controller-manager-arg", "allocate-node-cidrs=false",
"--kube-scheduler-arg", "authentication-kubeconfig=test", "--kube-scheduler-arg", "allow-metric-labels=metric1,label1='v3'",
"--kube-cloud-controller-manager-arg", "allocate-node-cidrs=false", "--kube-cloud-controller-manager-arg", "allocate-node-cidrs=false",
"--kubelet-arg", "address=127.0.0.1", "--kubelet-arg", "address=127.0.0.1",
"--kube-proxy-arg", "cluster-cidr=127.0.0.1/16", "--kube-proxy-arg", "cluster-cidr=127.0.0.1/16",
...@@ -52,7 +52,7 @@ var _ = Describe("create a new cluster with kube-* flags", Ordered, func() { ...@@ -52,7 +52,7 @@ var _ = Describe("create a new cluster with kube-* flags", Ordered, func() {
}) })
It("should find kube-scheduler starting", func() { It("should find kube-scheduler starting", func() {
Eventually(func() error { Eventually(func() error {
match, err := testutil.SearchK3sLog(server, "Running kube-scheduler --authentication-kubeconfig=test") match, err := testutil.SearchK3sLog(server, "Running kube-scheduler --allow-metric-labels=metric1,label1='v3'")
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment