Skip to content
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

Observed generation #1

Merged
merged 137 commits into from
May 20, 2024
Merged

Observed generation #1

merged 137 commits into from
May 20, 2024

Conversation

stevendborrelli
Copy link
Owner

Description of your changes

Adds 1.16's observedGeneration

renovate bot and others added 30 commits October 20, 2023 19:44
…ql-action-digest

Update github/codeql-action digest to 49abf0b
…duplicate-actions-5.x

Update fkirc/skip-duplicate-actions action to v5.3.1
Signed-off-by: Philippe Scorsolini <[email protected]>
* Bump crossplane-runtime
* Update GetInteger to handle floats locally
* Use new claim.Reference type

Signed-off-by: Steven Borrelli <[email protected]>
…deps

Update module sigs.k8s.io/yaml to v1.4.0
…crossplane-crossplane-runtime-1.x

Update module github.com/crossplane/crossplane-runtime to v1.14.0-rc.1
…y-trivy-action-0.x

Update aquasecurity/trivy-action action to v0.13.0
Notably this includes a handy new linter that warns when you don't use
GetFoo methods to access protobuf fields.

Signed-off-by: Nic Cope <[email protected]>
Bump golangci-lint to v1.55.1
…ql-action-digest

Update github/codeql-action digest to 74483a3
This is necessary for functions to be able to return JSON (as
structpb.Struct) that can be used as server side apply fully specified
intent. Without it we include empty structs that are non-nil, even if
they have the omitempty marker.

Signed-off-by: Nic Cope <[email protected]>
I don't love the package-scoped state here but this seems like the
nicest API to offer callers.

Signed-off-by: Nic Cope <[email protected]>
Marshal MR structs in a (more) server-side apply compatible way
Without this change any resource that has no ObjectMeta will end up with
an empty metadata (like "metadata": {}) when rendered. This is because
json serialization adds the generation field. We then delete it,
resulting in an empty metadata object.

This isn't actually so bad because Crossplane will always add a few
labels, owner refs, etc before the metadata becomes part of the SSA
fully-specified intent. So in reality we'll never ask the API server to
make metadata an empty object. It is misleading in unit tests though.

Signed-off-by: Nic Cope <[email protected]>
Clear out empty object metadata if it exists after conversion
…om/docker/docker-vulnerability

Update module github.com/docker/docker to v24.0.7+incompatible [SECURITY]
…bufbuild-buf-1.x

Update module github.com/bufbuild/buf to v1.27.2
phisco and others added 29 commits January 23, 2024 00:04
This is mostly useful when a function loads its input from the
RunFunctionRequest. Crossplane isn't (yet) aware of input schema and
will send anything the user supplies.

Right now that could include extra unknown, misindented, or typod fields
and those will be silently ignored by the function. With this change in
place they will result in an error.

This code will also be used to load desired and observed resource state,
but it's unlikely for those to be invalid.

This is a small behavior change, but I feel okay with it. The new
behavior is safer, probably won't affect anyone, and we're pre 1.0.

crossplane-contrib/function-patch-and-transform#91 (comment)

Signed-off-by: Nic Cope <[email protected]>
…-bufbuild-buf-1.x

Update module github.com/bufbuild/buf to v1.29.0
Reject unknown fields when converting from Struct to Object
…go-json-experiment-json-digest

Update github.com/go-json-experiment/json digest to 2e55bd4
Fix error formatting for GetInput
…che-4.x

Update actions/cache action to v4
Signed-off-by: Philippe Scorsolini <[email protected]>
…-bufbuild-buf-1.x

Update module github.com/bufbuild/buf to v1.30.0
…decov-action-digest

Update codecov/codecov-action digest to 8450866
Signed-off-by: Steven Borrelli <[email protected]>
Signed-off-by: Steven Borrelli <[email protected]>
@stevendborrelli stevendborrelli merged commit 262887d into main May 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants