-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add read-only support for ACK resources via annotation
This commit adds support for making ACK resources read-only via an annotation. A new `services.k8s.aws/read-only` annotation can be added to a resource to instruct the ACK service controller to not create/patch/delete the underlying AWS resource. If the annotation is set to "true", the reconciler will: - return an error on create if the resource doesn't exist - only patch metadata/spec for updates but not make cloud API calls - skip deletion of the underlying resource when the Kubernetes resource is deleted This allows adopting externally-managed resources into ACK for read-only purposes like referencing values, without ACK attempting to manage the resource lifecycle. Signed-off-by: Amine Hilaly <[email protected]>
- Loading branch information
Showing
5 changed files
with
144 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters