Commit Graph

111 Commits

Author SHA1 Message Date
Steven Borrelli 66fe852bf9
Sync with upstream crossplane-runtime changes
* Bump crossplane-runtime
* Update GetInteger to handle floats locally
* Use new claim.Reference type

Signed-off-by: Steven Borrelli <steve@borrelli.org>
2023-10-24 14:16:20 -07:00
Philippe Scorsolini 36bee0c36a
Merge pull request #60 from phisco/dev/golangci-lint-fix 2023-10-23 12:21:31 +02:00
Philippe Scorsolini 3207167d5b
Run golangci-lint with --fix by default
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-10-23 11:58:38 +02:00
Philippe Scorsolini 6eb6cc8d2b
Merge pull request #57 from crossplane/renovate/fkirc-skip-duplicate-actions-5.x
Update fkirc/skip-duplicate-actions action to v5.3.1
2023-10-23 10:42:04 +02:00
Philippe Scorsolini fb08653791
Merge pull request #56 from crossplane/renovate/github-codeql-action-digest
Update github/codeql-action digest to 49abf0b
2023-10-23 10:41:13 +02:00
renovate[bot] 4aef09b03d
Update fkirc/skip-duplicate-actions action to v5.3.1 2023-10-21 07:52:28 +00:00
renovate[bot] a9b787aac5
Update github/codeql-action digest to 49abf0b 2023-10-20 19:44:20 +00:00
Philippe Scorsolini 51b85f7be2
Merge pull request #53 from crossplane/renovate/kubernetes-deps
Update kubernetes deps to v0.28.3
2023-10-19 17:31:20 +02:00
Philippe Scorsolini d4f7e31a66
Merge pull request #54 from crossplane/renovate/actions-checkout-digest
Update actions/checkout digest to b4ffde6
2023-10-19 17:27:15 +02:00
renovate[bot] 888964a7c9
Update actions/checkout digest to b4ffde6 2023-10-19 11:07:20 +00:00
renovate[bot] e934b701e4
Update kubernetes deps to v0.28.3 2023-10-18 17:38:38 +00:00
Philippe Scorsolini de1e60076b
Merge pull request #52 from crossplane/renovate/google.golang.org-grpc-1.x
Update module google.golang.org/grpc to v1.59.0
2023-10-18 11:12:05 +02:00
renovate[bot] 72cbf4f9ec
Update module google.golang.org/grpc to v1.59.0 2023-10-18 00:58:56 +00:00
Philippe Scorsolini 76d62b9e2c
Merge pull request #51 from crossplane/renovate/github.com-bufbuild-buf-1.x
Update module github.com/bufbuild/buf to v1.27.1
2023-10-17 09:14:12 +02:00
renovate[bot] b567665529
Update module github.com/bufbuild/buf to v1.27.1 2023-10-16 23:34:50 +00:00
Nic Cope 0a4b30c5da
Merge pull request #50 from negz/contextual
Handle nil context fields, not just a nil context
2023-10-16 16:34:07 -07:00
Nic Cope ffe3c155b4 Handle nil context fields, not just a nil context
Found while testing https://github.com/crossplane-contrib/function-patch-and-transform/pull/17

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-16 16:28:38 -07:00
Nic Cope 26c3c27409
Merge pull request #48 from crossplane/renovate/github-codeql-action-digest
Update github/codeql-action digest to 0116bc2
2023-10-13 18:07:16 -07:00
Philippe Scorsolini 46545057a8
Merge pull request #39 from negz/contextual 2023-10-13 18:11:28 +02:00
renovate[bot] 25f398b141
Update github/codeql-action digest to 0116bc2 2023-10-13 13:25:06 +00:00
Nic Cope 0eb69ebaea Support injecting Function environment via context
This is the Go SDK end of https://github.com/crossplane/crossplane/pull/4632

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-10-12 18:29:31 -07:00
Philippe Scorsolini 4b68a49bf0
Merge pull request #47 from crossplane/renovate/go-golang.org/x/net-vulnerability
Update module golang.org/x/net to v0.17.0 [SECURITY]
2023-10-12 10:31:19 +02:00
renovate[bot] 00a5834ff4
Update module golang.org/x/net to v0.17.0 [SECURITY] 2023-10-12 08:29:31 +00:00
Philippe Scorsolini a16c73fd64
Merge pull request #46 from Mitsuwa/duplicate-getcomposed-readme
fix(docs): Remove duplicate call to GetObservedCompositeResource in docs
2023-10-12 10:28:41 +02:00
Bryan Nobuhara ccc779dc63 fix(docs): Remove duplicate call to GetObservedCompositeResource in docs
Signed-off-by: Bryan Nobuhara <bnobuhara@gmail.com>
2023-10-11 14:08:32 -04:00
Philippe Scorsolini f69b324fd9
Merge pull request #45 from crossplane/renovate/google.golang.org-grpc-1.x
Update module google.golang.org/grpc to v1.58.3
2023-10-11 09:03:20 +02:00
Philippe Scorsolini e7378d9e31
Merge pull request #44 from crossplane/renovate/github.com-google-go-cmp-0.x
Update module github.com/google/go-cmp to v0.6.0
2023-10-11 09:00:49 +02:00
Philippe Scorsolini c7c60f50eb
Merge pull request #43 from crossplane/renovate/golang-1.x
Update dependency golang to v1.21.3
2023-10-11 09:00:19 +02:00
renovate[bot] b15f3fd613
Update module google.golang.org/grpc to v1.58.3 2023-10-10 21:05:54 +00:00
renovate[bot] f03cf1d3d6
Update module github.com/google/go-cmp to v0.6.0 2023-10-10 19:54:51 +00:00
renovate[bot] 3d71e834e9
Update dependency golang to v1.21.3 2023-10-10 19:54:15 +00:00
Philippe Scorsolini 0797f30ca9 Merge pull request #42 from crossplane/renovate/github-codeql-action-digest
Update github/codeql-action digest to fdcae64
2023-10-09 15:40:21 +02:00
renovate[bot] 08de4d746d
Update github/codeql-action digest to fdcae64 2023-10-09 13:02:59 +00:00
Philippe Scorsolini bc48b5c764
Merge pull request #41 from crossplane/renovate/github-codeql-action-digest
Update github/codeql-action digest to 2cb752a
2023-10-08 10:15:41 +02:00
renovate[bot] c09c183ed8
Update github/codeql-action digest to 2cb752a 2023-10-06 13:35:44 +00:00
Philippe Scorsolini fc90e8ee7c
Merge pull request #40 from crossplane/renovate/golang-1.x
Update dependency golang to v1.21.2
2023-10-06 10:10:27 +02:00
renovate[bot] 87f3d96322
Update dependency golang to v1.21.2 2023-10-05 21:04:13 +00:00
Nic Cope 9111e681fb
Merge pull request #38 from crossplane/renovate/github.com-bufbuild-buf-1.x
Update module github.com/bufbuild/buf to v1.27.0
2023-10-04 19:24:25 -07:00
renovate[bot] 66e7cf15ea
Update module github.com/bufbuild/buf to v1.27.0 2023-10-05 01:32:58 +00:00
Nic Cope ec31b88ab6
Merge pull request #37 from negz/billions
Make a non-nil map of desired XR connection details
2023-09-29 18:14:19 -07:00
Nic Cope d23e2c8fb4 Make a non-nil map of desired XR connection details
This way even if the RunFunctionRequest doesn't include a desired XR,
GetDesiredComposedResource will return a datastructure that you can
mutate and return without fear of writing to a nil map.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-29 18:11:48 -07:00
Nic Cope 230c7dfcb3
Merge pull request #35 from negz/read-me
Add a more discoverable example to README.md
2023-09-28 22:29:52 -07:00
Nic Cope 4833d97b80 Add a more discoverable example to README.md
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-28 22:28:18 -07:00
Nic Cope bb85756945
Merge pull request #34 from negz/pavement
Automatically fieldpath.Pave composite and composed resources
2023-09-28 22:16:08 -07:00
Nic Cope 0fbc5662fd Add an example of using structured types
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-28 22:13:33 -07:00
Nic Cope 391e26d51d Make GetInteger work with 'normal' non-Kubernetes JSON data
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-28 22:12:58 -07:00
Nic Cope d3170f88ed Better detect *unstructured.Unstructured
We don't need the GetUnstructured interface since any type that has it
embeds Unstructured, and lets us get its object directly.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-28 21:17:34 -07:00
Nic Cope 04836aaa91 Add a top-level example
Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-28 20:56:13 -07:00
Nic Cope efcec9694a Automatically fieldpath.Pave composite and composed resources
This makes it more convenient and discoverable to get and set arbitrary
unstructured data from a composed or composite resource.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-28 20:04:38 -07:00
Philippe Scorsolini 3727afec73
Merge pull request #31 from phisco/dev/logging-and-errors
feat: introduce logging and errors packages
2023-09-28 11:31:30 +02:00