зеркало из
1
0
Форкнуть 0
Граф коммитов

83 Коммитов

Автор SHA1 Сообщение Дата
Matthew Christopher 48d531b7bb
Fix incorrect Trivy download link (#4365) 2024-10-22 19:13:37 +00:00
Bevan Arps d4d868725c
Update container dependencies (#4310)
* Update Go version

* Update install-dependencies.sh

* Revert Kustomize for now
2024-10-16 15:14:26 +00:00
Bevan Arps efa19bc67d
Update version of Go (#4347) 2024-10-15 21:53:08 +00:00
Harshdeep Singh (harshdsingh) e71cd299dc
Simplify helm chart build process and add validation check (#4043)
* Simplify helm chart build process and add validation check

* Improvements to script

* Add extra line

* Remove task dependency for controller:package-helm-manifest

* WIP

* Add pip package installation

* path fixes

* Add pip dependency

* Update script to remove dependency installation

* Add pyyaml pip package

* update helm templates

* Auto-gen mutating-webhook, validation-webhook and manager-role files

* Resolve comments

* Update python env to use in validate_helm.py

* Update args to kebab-case

* update env

* Move non-gen helm files out of generated folder

* Minor fixes

* Replace subprocess.run with subprocess.check_output

* Re-use CONTROLLER_DOCKER_IMAGE variable in controller:run-kustomize task

* Create virtual env in taskfile

* path fix

* Add new line

* Remove extra line
2024-06-19 22:53:25 +00:00
Bevan Arps 8ad424e73f
Simplify Dockerfile (#3976)
Now a newer version of node is available from standard sources, we don't need the previous workaround
2024-05-01 00:37:30 +00:00
Matthew Christopher 3efbdf455a
Download cmctl from new path (#3971) 2024-04-25 11:11:05 -07:00
Matthew Christopher b374e47c27
Update Go version (#3890)
This was required as setup-envtest@latest no longer works with Go
versions less than 1.22.

controller-tools was also updated as it panics if 0.13.0 is used with Go
1.22. 0.14.0 must be used instead.

Go version also moved to 1.21 to comply with new mod shape.
2024-03-27 12:33:34 -07:00
Bevan Arps 69bdcba6c0
Use gofumpt (#3825)
* Switch to using gofumpt

* Put function return declaration on separate line

* Group top level declarations

* Simplify variable initialization

* Struct initialization

* Octal syntax

* Tidy imports

* Fix comments

* Add blank lines

* Remove blank lines

* Update dependency docs

* Update workspace
2024-02-29 20:12:01 +00:00
Mykhailo Zahlada 89bd8ac577
Contributing: arm64 support (#3687)
* Adds anchors for improved navigation

* updates dependencies

* adds multi -os -arch support

* updates git command

* sets correct arch of the system. fixes arm64

* reverts verbosity, updates comments

* updates macOS instructions

* adds multi-arch support

* adds multi-arch support

* Make hack/crossplane/config folder actually exist

* Small fix

---------

Co-authored-by: Matthew Christopher <matthchr@users.noreply.github.com>
2024-01-12 00:59:49 +00:00
Matthew Christopher 517d028e7c
Allow newer versions of Go than we require in dev.sh (#3681)
This should be safe given Go's compatability guarantees and it makes
using ASO easier with dev.sh and other Go projects which may have moved
to a newer Go version before we did easier.
2024-01-04 23:12:34 +00:00
Bevan Arps 42cb425a71
Document Dependencies (#3496)
* Create file header and footer

* Add documentation to script

* Add new target to Taskfile

* Add generated documentation file

* Address PR feedback
2023-11-14 03:27:35 +00:00
Ross Smith b2428ee7a8
APIM: Delete subscriptions when deleting products (#3467)
* Removed Restore from tests

* Create pull Request from vscode

* Delete subscription when you delete Product

* Wrong comment

* Add recording

* Update v2/api/apimanagement/customizations/product_extensions.go

Co-authored-by: Bevan Arps <bevan.arps@outlook.com>

* Comments from PR review

---------

Co-authored-by: Bevan Arps <bevan.arps@outlook.com>
2023-10-27 06:51:29 +00:00
Ross Smith 993800e1f1
APIM: Api / Product / VersionSet / Policy / PolicyFragment (#3394)
* Add Backend / NamedValue / Subscription

* Added samples

* Adding samples

* APIM Integration Tests

* Added deletes into recording

* Working envtest recording

* envtest working for teh rest of the APIM services

* Added keyvault properties

* Added the preview version of apim

* KeyVaultId is an armReference

* Backend Proxy Password is now a secret

* Backend ResorceId is now an armReference

* PrimaryKey/SecondaryKey importConfigMap

* Add comment for BackendCredentialsContract

* Index md new format

* KeyVault is not a real ARM Id

* Whoops!

* keys should be secrets

* Adding CRD tests

* WIP - testing

* Removed the azureGeneratedSecrets

* AzureGeneratedSecrets for APIM

* OwnerId (UserId) is an ARM Reference

* Working samples

* Comment future APIM

* Remove preview version

* Add Azure Generated Secrets back in

* Adding Policy Fragment test

* Fixed up ARM References

* Added Secret tests

* Tests that delete the resourec group after

* Remove comments of stuff that is implemented

* Better comments for authoring apim tests

* Put samples test back

* Comment out 2 sample tests

* Renamed VersionSet ApiVersionSet

* Api VersionSet samples

* Working CRD recording

* Update v2/internal/controllers/crd_apimanagement_20220801_test.go

Co-authored-by: Bevan Arps <bevan.arps@outlook.com>

* Removed restore comment

* Format on save for linters

* Added go.sum fix

* Better comment about running subtests in sequence

---------

Co-authored-by: Matthew Christopher <matthchr@users.noreply.github.com>
Co-authored-by: Bevan Arps <bevan.arps@outlook.com>
2023-10-24 20:31:17 +00:00
Bevan Arps 57a0a4e369
Make installation location for buildx dynamic (#3463) 2023-10-23 23:11:25 +00:00
Matthew Christopher 9d488a2a08
Install buildx for all container users (#3450)
This is so that even if somebody launches the container and runs it
using their user identity (matching the UID/GID of the files they've
mounted into the container locally) docker will still be able to find
the buildx extension.
2023-10-20 18:49:23 +00:00
Harshdeep Singh (harshdsingh) 4d037c8418
Support multi architecture docker images using BuildX (#3355) 2023-10-12 12:04:10 +13:00
Ross Smith f553f31905
Add go-task extension (#3397)
Co-authored-by: Bevan Arps <bevan.arps@microsoft.com>
2023-10-11 01:12:16 +00:00
Bevan Arps 2100951c32
Silence the postcss check (#3325) 2023-09-20 11:13:12 +00:00
Matthew Christopher 5761dfb724
Update dependencies (#3198)
* Update dependencies
* Update Taskfile to ensure task --force works
* Fix wait-for-operator-ready script
    Previously it only waited 5s which was less than the total time required
    to list all CRDs. This caused the script to fail if it happened to run
    after all CRDs were added (list takes long time) but succeed if it ran
    right as CRDs were being added (list takes less time because not all
    CRDs added yet).
* Fix failing ASOv1 test
2023-08-22 08:08:08 -07:00
Bevan Arps 7f45f4faf6
Improvements to Taskfile (#3104)
* Use item format for deps
* Create `quick-checks` task
* Remove crossplane CRD codegen from quick checks
* Run CI sequentially for clearer logs
* Rename task to docs:build-site and relocate
* Don't need to regenerate CRDs for asoctl:unit-test
* Don't need to regenerate CRDs for asoctl:lint
* Don't need to regenerate CRDs for asoctl:build
* Rename task to doc:render-diagrams and relocate
* Rename task to doc:crd-api and relocate
* Rename task to doc:frontmatter-check and relocate
* Add zip to devcontainer
* Compress asoctl
2023-06-28 01:51:18 +00:00
Bevan Arps ecbc15e249
Fix postcss always reinstalling (#3106) 2023-06-27 21:57:25 +12:00
Bevan Arps 5c85fde2e7
Improve link checking for our docs (#3022)
* Switch to using htmltest
* Use relref function for page links
* Fix image links
* Fix external references
* Fix charts reference
* Code Gardening
* Remove markdown-link-check
* Document use of private fork
2023-05-30 16:53:38 +12:00
Bevan Arps e77b9764e9
Fix CRD Documentation workflow (#2935)
* Rebuild API Docs weekly
* Update search Regex
* Update action to v2.4
* Rename job
* Take ownership of files
* Update tool version
2023-05-08 04:51:28 +00:00
Matthew Christopher 75f8516e2d
Support KIND cluster with workload identity (#2942)
* Support Workload Identity KIND clusters
* Restructure scripts directory
Make it easier to exclude v2 scripts from v1 CI job, and also more clear
which scripts are for v2 vs v1.
2023-05-04 19:25:01 -07:00
Matthew Christopher fef81150cb
Update kind and other dependencies (#2897) 2023-04-18 17:37:13 +00:00
Bevan Arps 09b37293a0
Improve link checking (#2888)
* Add replacementPatterns to link checker config

* Update links

* Code gardening

* Move dependencies from Taskfile to devcontainer

* Fix up _index files

* Document link checker exclusions

* Fix end of file
2023-04-17 22:33:34 +00:00
Bevan Arps 42f49d4974
Upgrade Go-Task to v3.22 (#2771)
* Upgrade Go-Task to 3.22

* Limit concurrency in CI
2023-03-14 08:11:54 +13:00
Bevan Arps bd0032ee5c
Upgrade task and trivy versions (#2752) 2023-02-27 21:58:01 +00:00
Bevan Arps 8413717bdd
Upgrade to go 1.20.1 (#2735)
* Update go.mod files

* Upgrade devContainer to go 1.20

* Fix merge issues

* Upgrade golangci-lint

* Generics bug is fixed!

* Update Hugo
2023-02-22 07:53:34 +13:00
Bevan Arps a8ab5a872f
Add GraphViz to list of packages to install (#2659)
Co-authored-by: Harshdeep Singh <38904804+super-harsh@users.noreply.github.com>
2022-12-15 09:18:56 +00:00
Bevan Arps 4be29066fa
Fix Linting Issues (redux) (#2629)
* Update comments for new go fmt rules

* Update DevContainer to Go 1.19

* Tweak comment
2022-12-02 20:30:32 +00:00
Bevan Arps 2a81fa7fb5
Add git fix to install-dependencies.sh (#2558) 2022-10-20 09:23:28 -07:00
Matthew Christopher 0e4894e869
Refactor secrets handling to prepare for configmap support (#2500)
* Refactor secrets handling to prepare for configmap support

Refactors some code which can be shared between configmap and secrets.

* Use generic Resolved implementation

This reduces a small amount of duplciate code and paves the way
for other types of resolved references such as for configmaps.

* Change golangci-lint installation
2022-09-19 11:26:26 -07:00
Bevan Arps 72763e0d8e
Address lint issues (#2484) 2022-09-06 12:36:12 +12:00
Harshdeep Singh bc3bb35c1f
Add workflow to scan controller image (trivy) (#2461)
* Add workflow to scan controller image

Co-authored-by: Harshdeep Singh <harshdsingh@microsoft.com>
2022-08-23 15:15:22 +12:00
Matthew Christopher 32ae2762a3
Update kind and a few other dependencies (#2427) 2022-08-03 08:51:46 -07:00
George Pollard b91ee9223f
Update admission review version (#1893)
* Update admission review verstion to v1

* Update to newer envtest setup, remove Kubebuilder

* Make Dockerfile work for any UID/GID

Co-authored-by: Matthew Christopher <matthchr@users.noreply.github.com>
2022-07-08 10:29:45 -07:00
Bevan Arps 195ce0dece
Install updated versions of NodeJS and NPM (#2370) 2022-06-30 22:21:36 +00:00
Bevan Arps 9ae4953c90
Use prefix match for Go version (#2363) 2022-06-28 16:15:59 +00:00
George Pollard 03cfbbf342
Produce Markdown test-run summary for Github (#2275)
Take advantage of this [new feature](https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/) to make test passes/failures easier to find.
2022-05-13 11:53:53 +12:00
Bevan Arps 626fd4e919
Change site theme (#2256) 2022-05-04 13:30:57 +12:00
Bevan Arps a3460d9489
Modify installation script to be idempotent (#2231)
Co-authored-by: Matthew Christopher <matthchr@microsoft.com>
2022-04-13 11:06:25 +12:00
George Pollard df7ce5cb9e
Update golangci-lint install-depedencies.sh to match base image (#2220) 2022-04-06 13:07:07 +12:00
George Pollard 0ec178edba
Upgrade controller-runtime, controller-gen, envtest (#2217)
This seems to pass locally without any other changes.

Changes produced by `go get -u sigs.k8s.io/controller-runtime`, and manually updating `install-dependencies.sh`.

`kubebuilder` no longer installed.
2022-04-05 17:22:25 +12:00
Harshdeep Singh 34ad518513
Feature/add workflows (#2183)
* Add workflow for helm chart; Add workflow for API docs gen; Add pre-run task for gen-helm-manifest; Add helm installation for devcontainer

* Change trigger to workflow_dispatch for helm-chart and api-docs workflows

* Add new lines at the end of files

* Update install-dependency.sh to change helm installation

Co-authored-by: Harshdeep Singh <harshdsingh@microsoft.com>
Co-authored-by: Matthew Christopher <matthchr@microsoft.com>
2022-03-25 11:44:17 -07:00
George Pollard 9a0cabccb1
Go 1.18 (#2168)
GENERICS!
2022-03-18 12:23:13 +13:00
Harshdeep Singh 79b8124e32
Autogenerate CRD docs (#2116)
* Add support for doc.go file creation in code generator; Add doc.go files for CRDs

* Add doc generation task and script

* Add api docs; Add api docs templates

* Add doc.go for v2/api/resources

Co-authored-by: Harshdeep Singh <harshdsingh@microsoft.com>
2022-03-07 11:58:31 +13:00
Matthew Christopher e78c1b9317
Add E2E test infrastructure (#1953)
* Add E2E test infrastructure
 * Add a single test to this infrastructure to showcase its use.
 * E2E tests (in Kind) are run as part of CI on each PR.
* Give CI job access to creds
* Support ok-to-test workflow
2021-11-15 14:21:18 -08:00
George Pollard 6d69e85dd9
Hugo docs site (#1883)
We should present the docs in a format that they are nice to read on GitHub Pages.

![preview image of website](https://user-images.githubusercontent.com/12575/137663893-17a89af8-5713-4a7b-81d7-b71ef49ee7b4.png)

### TODO list (after merge)

- [x] ~~Note that build is expected to fail at the moment until links are fixed.~~
- [ ] Set up GitHub Pages.
- [ ] Publish to GitHub Pages on master merge.
- [ ] Get a better design.

### Open questions 

- Do we want to include design docs/decision records? (I think yes, I have put them at the bottom of the list)
- Do we want to move the README/setup instructions to the site and have the GitHub README be more minimal? (probably?)
2021-10-19 10:29:20 +13:00
George Pollard 91d85b4373
Update controller-gen & friends (#1833) 2021-10-06 16:30:52 +13:00