forked from kubernetes-sigs/cluster-api-provider-kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 6
Sync with upstream 2021.12.20 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nunnatsa
merged 37 commits into
openshift:main
from
nunnatsa:sync-with-upstream-2021.12.20
Dec 21, 2021
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
05ca8dc
Only inject ssh keys when cloud-config user data is used
davidvossel 0da7715
Update machine unit test to require ready condition for detecting is …
davidvossel b3d1a9a
Removes spec.Bootstrapped in favor of conditions
davidvossel fc8a193
Ensure that bootstrap exec condition is set during functional test
davidvossel 64dda53
Add unit tests for determining if boostrap detection is possible
davidvossel a168699
Add unit test for detecting cloud-config user data type
davidvossel 13a7315
Build and test the code with github actions
rmohr bf8fd23
Add e2e test lane
rmohr 67148ad
Support for external infra clusters:
agradouski fc65a8c
Update README.md
aaseem 2f4bd06
Meeting details updated
aaseem 9ab2197
Change IsBooted to IsReady in order to better reflect what is being c…
davidvossel 74fe54c
Support for external infra clusters:
agradouski 2b5ff01
Merge pull request #30 from davidvossel/cloud-init-fix
k8s-ci-robot 75bebc4
Update README.md
1abhisheksarkar defb61b
Merge pull request #43 from TheAbhishekS/abhishek1
k8s-ci-robot c1b5669
Add dockfile to build manager binary and emit production image
cchengleo 0c46a6b
Merge pull request #38 from rmohr/testing
k8s-ci-robot 7ebd2f5
added meeting info to the README
PranshuSrivastava 55619c9
Merge pull request #48 from PranshuSrivastava/meeting
k8s-ci-robot 37a448c
Make secrets for third-party PRs available
rmohr 09129f5
Merge pull request #49 from rmohr/make-secrets-available
k8s-ci-robot cf2189f
kubevirt machine reconcile normal unit tests
davidvossel 2a371d4
remove race condition when searching for vmi immediately after vm cre…
davidvossel 327d159
Merge pull request #46 from cchengleo/update-dockerfile
k8s-ci-robot 2b9a3bd
Merge pull request #44 from davidvossel/reconcile-tests-1
k8s-ci-robot 807b26c
Merge branch 'kubernetes-sigs:main' into main
aaseem ed6b197
Update README.md
aaseem abb3433
Make integration tests independent of go version changes
rmohr 0d74fd5
Give github actions better names
rmohr 2365022
rebase
agradouski eecf38e
Merge branch 'main' into main
agradouski 5a94245
Merge pull request #53 from rmohr/integration-tests-no-external-golang
k8s-ci-robot 6886064
Merge pull request #52 from aaseem/main
k8s-ci-robot 64bf9b7
fix unit tests
agradouski 5dfba0e
Merge pull request #39 from agradouski/main
k8s-ci-robot f390ca9
Change OWNERS file
nirarg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,25 @@ | ||
| on: | ||
| pull_request_target: | ||
| types: [labeled] | ||
| name: e2e | ||
| jobs: | ||
| integration: | ||
| runs-on: ubuntu-latest | ||
| if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| repository: kubevirt/project-infra | ||
| path: project-infra | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v1 | ||
| - name: kubeconfig | ||
| run: 'echo -e "$KUBECONFIG" > $GITHUB_WORKSPACE/project-infra/.kubeconfig' | ||
| shell: bash | ||
| env: | ||
| KUBECONFIG: ${{secrets.KUBECONFIG}} | ||
| - name: Test | ||
| run: | | ||
| $GITHUB_WORKSPACE/project-infra/hack/mkpj.sh --job pull-kubernetes-sigs-cluster-api-provider-kubevirt-e2e --pull-number ${{github.event.number}} --kubeconfig $GITHUB_WORKSPACE/project-infra/.kubeconfig --trigger-job | ||
This file contains hidden or 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,20 @@ | ||
| on: [push, pull_request] | ||
| name: build | ||
| jobs: | ||
| unit_test: | ||
| strategy: | ||
| matrix: | ||
| go-version: [1.16.x, 1.17.x] | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
| with: | ||
| go-version: ${{ matrix.go-version }} | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| - name: Test | ||
| run: make test | ||
| - name: Build | ||
| run: make manager |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,61 @@ | ||
| FROM gcr.io/distroless/static | ||
| # syntax=docker/dockerfile:1.1-experimental | ||
|
|
||
| COPY bin/manager /usr/bin/ | ||
| # Copyright 2021 The Kubernetes Authors. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| ENTRYPOINT /usr/bin/manager | ||
| # Build the manager binary | ||
| # Run this with docker build --build-arg builder_image=<golang:x.y.z> | ||
| ARG builder_image=golang:1.16.2 | ||
| FROM ${builder_image} as builder | ||
| WORKDIR /workspace | ||
|
|
||
| # Run this with docker build --build-arg goproxy=$(go env GOPROXY) to override the goproxy | ||
| ARG goproxy=https://proxy.golang.org | ||
| ENV GOPROXY=$goproxy | ||
|
|
||
| # Copy the Go Modules manifests | ||
| COPY go.mod go.mod | ||
| COPY go.sum go.sum | ||
|
|
||
| # Cache deps before building and copying source so that we don't need to re-download as much | ||
| # and so that source changes don't invalidate our downloaded layer | ||
| RUN --mount=type=cache,target=/go/pkg/mod \ | ||
| go mod download | ||
|
|
||
| # Copy the sources | ||
| COPY ./ ./ | ||
|
|
||
| # Cache the go build into the the Go’s compiler cache folder so we take benefits of compiler caching across docker build calls | ||
| RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
| --mount=type=cache,target=/go/pkg/mod \ | ||
| go build . | ||
|
|
||
| # Build | ||
| ARG ARCH=amd64 | ||
| ARG ldflags | ||
|
|
||
| # Do not force rebuild of up-to-date packages (do not use -a) and use the compiler cache folder | ||
| RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
| --mount=type=cache,target=/go/pkg/mod \ | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \ | ||
| go build -a -ldflags "${ldflags} -extldflags '-static'" \ | ||
| -o manager . | ||
|
|
||
| # Production image | ||
| FROM gcr.io/distroless/static:nonroot | ||
| WORKDIR / | ||
| COPY --from=builder /workspace/manager . | ||
| # Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies | ||
| USER 65532 | ||
| ENTRYPOINT ["/manager"] |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,14 @@ | ||
| # See the OWNERS docs at https://go.k8s.io/owners | ||
| # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md | ||
|
|
||
| approvers: | ||
| - agradouski | ||
| - cchengleo | ||
| - sig-cluster-lifecycle-leads | ||
| - rmohr | ||
| - davidvossel | ||
| - nunnatsa | ||
| - nirarg | ||
| options: {} | ||
| reviewers: | ||
| - rmohr | ||
| - davidvossel | ||
| - nunnatsa | ||
| - nirarg | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be interesting to see if github actions will be used here too. We potentially have to delete them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy to prevent by adding
in the kubernetes-sigs repo