Skip to content

Conversation

a-hilaly
Copy link
Member

Fixes aws-controllers-k8s/community#1480

The runtime panics observed in issue 1480 were mainly caused by the
sdk_read_one hook we use for Function resource. The hook didn't
correctly initialise spec.Code.

This patch fixes the initialization to avoid nil pointer panics when
adopting function resources

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@a-hilaly
Copy link
Member Author

/hold

@ack-bot ack-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 21, 2022
Fixes aws-controllers-k8s/community#1480

The runtime panics observed in issue 1480 were mainly caused by the
`sdk_read_one` hook we use for `Function` resource. The hook didn't
correctly initialise `spec.Code`.

This patch fixes the initalisation to avoid nil pointer panics when
adopting function resources
Copy link
Contributor

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaypipes
Copy link
Contributor

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented Sep 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jaypipes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@a-hilaly
Copy link
Member Author

/unhold

@ack-bot ack-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 27, 2022
@ack-bot ack-bot merged commit cf95d82 into aws-controllers-k8s:main Sep 27, 2022
Vandita2020 pushed a commit to Vandita2020/ack-lambda-controller that referenced this pull request Sep 29, 2022
…8s#55)

Fixes aws-controllers-k8s/community#1480

The runtime panics observed in issue 1480 were mainly caused by the
`sdk_read_one` hook we use for `Function` resource. The hook didn't
correctly initialise `spec.Code`.

This patch fixes the initialization to avoid nil pointer panics when
adopting function resources

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
michaelhtm pushed a commit to rushmash91/lambda-controller that referenced this pull request Feb 5, 2025
…llers-k8s#55)

### Update to ACK runtime `v0.23.0`, code-generator `v0.23.1`

----------

* ACK code-generator `v0.23.1` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.23.1)
* ACK runtime `v0.23.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.23.0)

----------

NOTE:
This PR increments the release version of service controller from `v0.0.24` to `v0.0.25`

Once this PR is merged, release `v0.0.25` will be automatically created for `mq-controller`

**Please close this PR, if you do not want the new patch release for `mq-controller`**

----------

#### stdout for `make build-controller`:

```
building ack-generate ... ok.
installing controller-gen v0.9.2 ... ok.
==== building mq-controller ====
Copying common custom resource definitions into mq
Building Kubernetes API objects for mq
Generating deepcopy code for mq
Generating custom resource definitions for mq
Building service controller for mq
Generating RBAC manifests for mq
Running gofmt against generated code for mq
Updating additional GitHub repository maintenance files
==== building mq-controller release artifacts ====
Building release artifacts for mq-v0.0.25
Generating common custom resource definitions
Generating custom resource definitions for mq
Generating RBAC manifests for mq
```

----------

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when trying to adopt lambda function
3 participants