generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Labels
area/apikind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Milestone
Description
Feature Description
Problem Statement:
We want to support different life-cycle modifiers such as:
- Create : allowed or not , force re-create if it exists
- Delete : allowed or not
- Update : allowed or not
Some example use cases:
- Annote a service account. May be create. But dont delete it.
- Create a DB object, but dont delete it.
- Create a Job but dont delete it.
Proposed Solution:
resources:
- id: something
template: ...
lifecycle:
create: always* | once | never
delete: always* | abandon
update: always* | never
Alternatives Considered:
For KCC (https://cloud.google.com/config-connector/docs/overview), the individual objects support its own lifecycle annotation to deal with the underlying GCP objects. We can use it for these resources.
Use annotations on the resource being created.
resources:
id: something
template:
...
metadata:
annotation:
kro.lifecycle.delete: abandon
Advantage is this allows user to modify object lifecycle without modifying RGD for break-glass.
Additional Context:
Resource annotateDefaultServiceAccount is the default SA created by Kubernetes for a namespace. We want to annotate it for Workload identity but not delete it.
- Please vote on this issue by adding a 👍 reaction to the original issue
- If you are interested in working on this feature, please leave a comment
Ashish7812 and jakobmoellerdev
Metadata
Metadata
Assignees
Labels
area/apikind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.