-
Notifications
You must be signed in to change notification settings - Fork 23
Adding delete all layer versions functionality for layerVersion resource #70
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
Adding delete all layer versions functionality for layerVersion resource #70
Conversation
Skipping CI for Draft Pull Request. |
ef13d00
to
a7a08e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start the logic is correct! 👍
Left few comments in line
a7a08e1
to
5115fa4
Compare
/test all |
5115fa4
to
f08445f
Compare
/test all |
f08445f
to
a432205
Compare
/test all |
a432205
to
a946469
Compare
/test all |
a946469
to
0b91d2f
Compare
/test all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits about Go code formatting and syntax
templates/hooks/layerversion/sdk_delete_pre_build_request.go.tpl
Outdated
Show resolved
Hide resolved
0b91d2f
to
53fb12a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job on this @Vandita2020 !
Leaving the lgtm-ing for @RedbackThomson
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, Vandita2020 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 |
53fb12a
to
1f32bd1
Compare
/test all |
1 similar comment
/test all |
61e1024
to
b713418
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great yeah I'm happy with this
/lgtm
// customPreDelete deletes all the previous versions of a | ||
// LayerVersion except the latest version | ||
// This function is used as a sdk_delete hook, to delete all the previous versions of a LayerVersion when delete API call is made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny nit: These comments seem to be saying the same thing.
1081dc6
to
232baf7
Compare
/test all |
232baf7
to
575d12c
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, RedbackThomson, Vandita2020 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 |
…llers-k8s#70) ### Update to ACK runtime `v0.29.2`, code-generator `v0.29.2` ---------- * ACK code-generator `v0.29.2` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.29.2) * ACK runtime `v0.29.2` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.29.2) ---------- NOTE: This PR increments the release version of service controller from `v0.0.29` to `v0.0.30` Once this PR is merged, release `v0.0.30` 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. ==== 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.30 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.
Description of changes:
Currently when you delete a LayerVersion it deletes the most recent version of it and keep the previous versions. The functionality we want is to delete all the versions of a LayerVersion when DeleteLayerVersion is executed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.