-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
0883b0c
commit 43c6d95
Showing
102 changed files
with
13,868 additions
and
3 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,40 @@ | ||
--- | ||
name: Bug Report | ||
about: Help us diagnose and fix bugs in the Akuity Crossplane Provider | ||
labels: bug | ||
--- | ||
<!-- | ||
Thank you for helping to improve the Akuity Crossplane Provider! | ||
Please be sure to search for open issues before raising a new one. We use issues | ||
for bug reports and feature requests. | ||
--> | ||
|
||
### What happened? | ||
<!-- | ||
Please let us know what behaviour you expected and how the Akuity Crossplane | ||
Provider diverged from that behaviour. | ||
--> | ||
|
||
|
||
### How can we reproduce it? | ||
<!-- | ||
Help us to reproduce your bug as succinctly and precisely as possible. Artifacts | ||
such as example manifests or a script that triggers the issue are highly | ||
appreciated! | ||
--> | ||
|
||
### What environment did it happen in? | ||
Crossplane version: | ||
Akuity Crossplane Provider version: | ||
|
||
<!-- | ||
Include at least the version or commit of Crossplane and the Akuity Crossplane Provider | ||
you were running. Consider also including your: | ||
* Cloud provider or hardware configuration | ||
* Kubernetes version (use `kubectl version`) | ||
* Kubernetes distribution (e.g. Tectonic, GKE, OpenShift) | ||
* OS (e.g. from /etc/os-release) | ||
* Kernel (e.g. `uname -a`) | ||
--> |
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 @@ | ||
--- | ||
name: Feature Request | ||
about: Help us make the Akuity Crossplane Provider more useful | ||
labels: enhancement | ||
--- | ||
<!-- | ||
Thank you for helping to improve the Akuity Crossplane Provider! | ||
Please be sure to search for open issues before raising a new one. We use issues | ||
for bug reports and feature requests. | ||
--> | ||
|
||
### What problem are you facing? | ||
<!-- | ||
Please tell us a little about your use case - it's okay if it's hypothetical! | ||
Leading with this context helps frame the feature request so we can ensure we | ||
implement it sensibly. | ||
---> | ||
|
||
### How could the Akuity Crossplane Provider help solve your problem? | ||
<!-- | ||
Let us know how you think the Akuity Crossplane Provider could help with your use case. | ||
--> |
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,24 @@ | ||
<!-- | ||
Thank you for helping to improve the Akuity Crossplane Provider! | ||
--> | ||
|
||
### Description of your changes | ||
|
||
<!-- | ||
Briefly describe what this pull request does. Be sure to direct your reviewers' | ||
attention to anything that needs special consideration. | ||
We love pull requests that resolve an open Akuity Crossplane Provider issue. | ||
If yours does, you can uncomment the below line to indicate which issue your PR | ||
fixes, for example "Fixes #500": | ||
--> | ||
Fixes # | ||
|
||
### How has this code been tested | ||
|
||
<!-- | ||
Before reviewers can be confident in the correctness of this pull request, it | ||
needs to tested and shown to be correct. Briefly describe the testing that has | ||
already been done or which is planned for this change. | ||
--> |
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,225 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
|
||
env: | ||
GO_VERSION: '1.21' | ||
GOLANGCILINT_VERSION: 'v1.55.2' | ||
DOCKER_BUILDX_VERSION: 'v0.12.0' | ||
|
||
jobs: | ||
detect-noop: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
noop: ${{ steps.noop.outputs.should_skip }} | ||
steps: | ||
- name: Detect No-op Changes | ||
id: noop | ||
uses: fkirc/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
paths_ignore: '["**.md", "**.png", "**.jpg"]' | ||
do_not_skip: '["workflow_dispatch", "schedule", "push"]' | ||
|
||
lint: | ||
runs-on: ubuntu-22.04 | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Find the Go Build Cache | ||
id: go | ||
run: echo "::set-output name=cache::$(make go.cachedir)" | ||
|
||
- name: Cache the Go Build Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go.outputs.cache }} | ||
key: ${{ runner.os }}-build-lint-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-build-lint- | ||
|
||
- name: Cache Go Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .work/pkg | ||
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-pkg- | ||
|
||
- name: Vendor Dependencies | ||
run: make vendor vendor.check | ||
|
||
# We could run 'make lint' but we prefer this action because it leaves | ||
# 'annotations' (i.e. it comments on PRs to point out linter violations). | ||
- name: Lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: ${{ env.GOLANGCILINT_VERSION }} | ||
|
||
check-diff: | ||
runs-on: ubuntu-22.04 | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Find the Go Build Cache | ||
id: go | ||
run: echo "::set-output name=cache::$(make go.cachedir)" | ||
|
||
- name: Cache the Go Build Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go.outputs.cache }} | ||
key: ${{ runner.os }}-build-check-diff-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-build-check-diff- | ||
|
||
- name: Cache Go Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .work/pkg | ||
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-pkg- | ||
|
||
- name: Vendor Dependencies | ||
run: make vendor vendor.check | ||
|
||
- name: Check Diff | ||
id: check-diff | ||
run: | | ||
mkdir _output | ||
make check-diff | ||
- name: Show diff | ||
if: failure() && steps.check-diff.outcome == 'failure' | ||
run: git diff | ||
|
||
unit-tests: | ||
runs-on: ubuntu-22.04 | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch History | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Find the Go Build Cache | ||
id: go | ||
run: echo "::set-output name=cache::$(make go.cachedir)" | ||
|
||
- name: Cache the Go Build Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go.outputs.cache }} | ||
key: ${{ runner.os }}-build-unit-tests-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-build-unit-tests- | ||
|
||
- name: Cache Go Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .work/pkg | ||
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-pkg- | ||
|
||
- name: Vendor Dependencies | ||
run: make vendor vendor.check | ||
|
||
- name: Run Unit Tests | ||
run: make -j2 test | ||
|
||
- name: Publish Unit Test Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
flags: unittests | ||
file: _output/tests/linux_amd64/coverage.txt | ||
|
||
build-artifacts: | ||
runs-on: ubuntu-22.04 | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
steps: | ||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: all | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
version: ${{ env.DOCKER_BUILDX_VERSION }} | ||
install: true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch History | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Find the Go Build Cache | ||
id: go | ||
run: echo "::set-output name=cache::$(make go.cachedir)" | ||
|
||
- name: Cache the Go Build Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go.outputs.cache }} | ||
key: ${{ runner.os }}-build-publish-artifacts-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-build-publish-artifacts- | ||
|
||
- name: Cache Go Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .work/pkg | ||
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-pkg- | ||
|
||
- name: Vendor Dependencies | ||
run: make vendor vendor.check | ||
|
||
- name: Build Artifacts | ||
run: make -j2 build.all | ||
env: | ||
# We're using docker buildx, which doesn't actually load the images it | ||
# builds by default. Specifying --load does so. | ||
BUILD_ARGS: "--load" |
Oops, something went wrong.