Commit Graph

144 Commits

Author SHA1 Message Date
renovate[bot] f525da27c1
fix(deps): update module github.com/crossplane/crossplane-runtime to v1.14.4 2024-01-29 15:14:09 +00:00
Philippe Scorsolini e7de6689e2
Merge pull request #56 from lsviben/init-hooks
add init hooks
2024-01-29 11:27:42 +00:00
lsviben e0dd990bc6
add init hooks
Signed-off-by: lsviben <sviben.lovro@gmail.com>
2024-01-19 12:23:16 +01:00
renovate[bot] 06d9ee5496
fix(deps): update module k8s.io/apimachinery to v0.29.1 2024-01-18 01:54:46 +00:00
Nic Cope 108f4ee5da
Merge pull request #53 from negz/facts
Update to v4 of the upload and download artifacts actions
2024-01-04 17:21:28 -08:00
Nic Cope 1facea7db7
Merge pull request #52 from crossplane/renovate/google.golang.org-protobuf-1.x
fix(deps): update module google.golang.org/protobuf to v1.32.0
2024-01-02 12:37:52 -08:00
Nic Cope 7b817aa3c7 Use upload and download-artifact v4
This new version requires unique artifact names. We achieve this by
omitting the downloaded artifact name, which causes the action to
download all artifacts from the run.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-01-02 12:36:16 -08:00
Nic Cope a4a4cad5f2 Use Go style pseudo-versions when there is no semver supplied
The CI workflow uses a semver (e.g. v1.0.0) when you run it using the
workflow_dispatch trigger and supply one explicitly. This is how you
'release' a function.

Today when the workflow runs for a PR or regular main branch build we
default to v0.0.0-<git-short-sha>. This is a very simple way to tag
development builds with no user input required. It's handy that the
resulting package can be correlated to the git commit that produced it
using the git SHA.

A major flaw of this implementation is that newer SHAs do not sort above
older SHAs when treated as semantic versions.

This commit switches us to a simple approximation of the Go
pseudoversions you would see in a go.mod file, as described by
https://go.dev/ref/mod#pseudo-versions. These versions include the git
commit time before the SHA, so newer commits will be considered newer
versions when processing the semver. We also switch to using the first
12 characters of the SHA. This reduces the risk of collision, and makes
us match exactly Go's pseudoversion implementation.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-01-02 12:33:15 -08:00
renovate[bot] 3671234390
fix(deps): update module google.golang.org/protobuf to v1.32.0 2024-01-02 20:18:11 +00:00
Nic Cope 2117aaf090
Merge pull request #49 from crossplane/renovate/kubernetes-go
fix(deps): update module k8s.io/apimachinery to v0.29.0
2024-01-02 12:17:06 -08:00
Nic Cope 554595b916
Merge pull request #45 from phisco/dev/renovate-examples
chore(deps): renovate examples
2024-01-02 12:15:27 -08:00
renovate[bot] 452d57c45b
Update module k8s.io/apimachinery to v0.29.0 2023-12-13 20:10:16 +00:00
Philippe Scorsolini e68f1e3873
Merge pull request #46 from crossplane/renovate/github.com-crossplane-crossplane-runtime-1.x
Update module github.com/crossplane/crossplane-runtime to v1.14.3
2023-12-08 16:35:48 +01:00
Philippe Scorsolini 5e75b1cf7a
Merge pull request #47 from crossplane/renovate/actions-setup-go-5.x
Update actions/setup-go action to v5
2023-12-08 16:33:09 +01:00
renovate[bot] b53e6f0423
Update actions/setup-go action to v5 2023-12-06 18:31:33 +00:00
renovate[bot] 2cfdca9587
Update module github.com/crossplane/crossplane-runtime to v1.14.3 2023-12-01 13:29:22 +00:00
Philippe Scorsolini a7e3db65a4
chore(renovate): bump examples using crossplane manager
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-11-22 12:42:50 +01:00
Philippe Scorsolini 811b3725c1
chore(renovate): move to new recommended base config
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-11-22 12:32:25 +01:00
Nic Cope 9c3c69909f
Merge pull request #44 from crossplane/renovate/kubernetes-go
Update module k8s.io/apimachinery to v0.28.4
2023-11-16 13:05:57 -08:00
renovate[bot] be3c9e3c60
Update module k8s.io/apimachinery to v0.28.4 2023-11-16 01:12:26 +00:00
Philippe Scorsolini 1102ff311d
Merge pull request #42 from crossplane/renovate/github.com-crossplane-crossplane-runtime-1.x
Update module github.com/crossplane/crossplane-runtime to v1.14.2
2023-11-14 09:48:51 +01:00
renovate[bot] c4b9410104
Update module github.com/crossplane/crossplane-runtime to v1.14.2 2023-11-14 07:12:00 +00:00
Nic Cope a3edeff078
Merge pull request #40 from crossplane/renovate/github.com-crossplane-crossplane-runtime-1.x
Update module github.com/crossplane/crossplane-runtime to v1.14.1
2023-11-02 21:50:28 -07:00
renovate[bot] 6b48afe495
Update module github.com/crossplane/crossplane-runtime to v1.14.1 2023-11-02 13:24:23 +00:00
Nic Cope e5733a2e35 Copy linter config from crossplane/crossplane
This is the c/c linter config. The one exception is (hopefully) less
fussy sorting of crossplane related imports. It just wants all
crossplane org things in one block, and all contrib org things in
another block. This means folks won't need to update the linter config
when they use the template (e.g. to update the GCI prefixes).

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-01 17:43:51 -07:00
Nic Cope 115b4a4526
Merge pull request #38 from negz/sortie
Use Go style pseudo-versions when there is no semver supplied
2023-11-01 16:04:07 -07:00
Nic Cope 8a818b9573 Use Go style pseudo-versions when there is no semver supplied
The CI workflow uses a semver (e.g. v1.0.0) when you run it using the
workflow_dispatch trigger and supply one explicitly. This is how you
'release' a function.

Today when the workflow runs for a PR or regular main branch build we
default to v0.0.0-<git-short-sha>. This is a very simple way to tag
development builds with no user input required. It's handy that the
resulting package can be correlated to the git commit that produced it
using the git SHA.

A major flaw of this implementation is that newer SHAs do not sort above
older SHAs when treated as semantic versions.

This commit switches us to a simple approximation of the Go
pseudoversions you would see in a go.mod file, as described by
https://go.dev/ref/mod#pseudo-versions. These versions include the git
commit time before the SHA, so newer commits will be considered newer
versions when processing the semver. We also switch to using the first
12 characters of the SHA. This reduces the risk of collision, and makes
us match exactly Go's pseudoversion implementation.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-01 15:37:29 -07:00
Nic Cope 1091066df7
Merge pull request #37 from crossplane/renovate/github.com-crossplane-function-sdk-go-0.x
Update module github.com/crossplane/function-sdk-go to v0.1.0
2023-11-01 11:51:42 -07:00
renovate[bot] e1fef4e5ca
Update module github.com/crossplane/function-sdk-go to v0.1.0 2023-11-01 18:48:22 +00:00
Nic Cope c7716fac23
Merge pull request #36 from crossplane/renovate/github.com-crossplane-crossplane-runtime-1.x
Update module github.com/crossplane/crossplane-runtime to v1.14.0
2023-11-01 11:46:55 -07:00
renovate[bot] e410a6b5d4
Update module github.com/crossplane/crossplane-runtime to v1.14.0 2023-11-01 09:56:46 +00:00
Nic Cope 0005b71cf8
Merge pull request #34 from negz/release-prep
Slim down README.md
2023-10-31 23:41:49 -07:00
Nic Cope 44b3fc66df Add an example directory
This is mostly useful to prompt function authors to have an example
directory, rather than to exercise the template code.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-31 23:39:02 -07:00
Nic Cope 971901cd1d Slim down README.md
Instead mostly link to the new guide, which has all the information this
used to have either directly or by links to the other functions docs.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-31 23:13:23 -07:00
Nic Cope d1077de0e6 Run go generate
Think this was needed after a recent controller-tools bump.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-31 22:51:21 -07:00
Nic Cope d8afac9570
Merge pull request #33 from negz/tidy
Run go mod tidy
2023-10-31 15:33:54 -07:00
Nic Cope 80bb37dea8 Run go mod tidy
Not sure how these became messy - renovate PRs?

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-31 15:30:54 -07:00
Nic Cope 9fb9c8f06b
Merge pull request #32 from crossplane/renovate/github.com-crossplane-function-sdk-go-digest
Update github.com/crossplane/function-sdk-go digest to 8835a3e
2023-10-31 15:30:21 -07:00
renovate[bot] 9b7221e3c3
Update github.com/crossplane/function-sdk-go digest to 8835a3e 2023-10-31 18:48:57 +00:00
Nic Cope 3635442a60
Merge pull request #31 from crossplane/renovate/github.com-crossplane-function-sdk-go-digest
Update github.com/crossplane/function-sdk-go digest to 81ac1ac
2023-10-31 11:48:20 -07:00
renovate[bot] 1f49081376
Update github.com/crossplane/function-sdk-go digest to 81ac1ac 2023-10-31 10:12:57 +00:00
Nic Cope a16cbdb23f
Merge pull request #30 from crossplane/renovate/github.com-crossplane-function-sdk-go-digest
Update github.com/crossplane/function-sdk-go digest to 7a3f487
2023-10-30 14:53:37 -07:00
renovate[bot] 48afc43c4b
Update github.com/crossplane/function-sdk-go digest to 7a3f487 2023-10-30 20:32:34 +00:00
Nic Cope 91a1a5eed2
Merge pull request #29 from crossplane/renovate/github.com-crossplane-function-sdk-go-digest
Update github.com/crossplane/function-sdk-go digest to 086e9dd
2023-10-26 11:23:51 -07:00
renovate[bot] 0d4b08ae2d
Update github.com/crossplane/function-sdk-go digest to 086e9dd 2023-10-26 01:22:05 +00:00
Nic Cope 9f8c06c51f
Merge pull request #27 from crossplane/renovate/github.com-crossplane-function-sdk-go-digest
Update github.com/crossplane/function-sdk-go digest to 142a5c0
2023-10-25 16:22:47 -07:00
Nic Cope 0914d572ce
Merge pull request #28 from negz/continuous
Add commentary to the Dockerfile, too
2023-10-25 16:05:48 -07:00
renovate[bot] ff482a2396
Update github.com/crossplane/function-sdk-go digest to 142a5c0 2023-10-25 23:05:31 +00:00
Nic Cope 6feb8d8820
Merge pull request #20 from crossplane/renovate/github.com-alecthomas-kong-0.x
Update module github.com/alecthomas/kong to v0.8.1
2023-10-25 16:04:57 -07:00
Nic Cope d97491044d Add commentary to the Dockerfile, too
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-25 16:03:55 -07:00