You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Kong/gateway-operator#460 to adopt existing entities in Konnect.
We should define a spec.konnect.entityID to enable users to adopt an existing entity in Konnect with the specified ID. Based on the field, we should also define validation rules (present only controlled by Konnect Entity controller; immutable after progammed; ...).
Proposed Solution
Define a KonnectAttributes type including the EntityID field, and add the field in the spec of all CRDs supported in the Konnect entity controller.
Also we need to add at least the following rules on the field:
Can only be present when its controlPlaneRef is pointing to a Konnect Control plane
Be immutable when the resource is "Programmed", which means that the resource is already associated with a Konnect entity
Additional Information
Acceptance Criteria
konnect.entityID is present in each CRD we support in Konnect entity controller
Have the validation rules (CELs) to check the field
Can only be present when its controlPlaneRef is pointing to a Konnect Control plane
Cannot be added, modified or unset when the resource is "Programmed" (pointing to a Konnect entity)
The text was updated successfully, but these errors were encountered:
spec:
konnect:
adopt:
by: id # to allow interface extension in the future id: <id_to_adopt>
would make more sense, since @czeslavo has some thoughts of options of not changing the Konnect entity when it is not the same as the spec. This provides room for extensions.
How about making the strategy a parameter so it's clear what will be the behavior?
spec:
konnect:
adoption: # to use nouns instead of verbsstrategy: OverrideKonnectConfig # possible alternatives could be 'HaltOnKonnectConfigMismatch' or 'AdoptKonnectConfig'id: <id_to_adopt>
Problem Statement
From Kong/gateway-operator#460 to adopt existing entities in Konnect.
We should define a
spec.konnect.entityID
to enable users to adopt an existing entity in Konnect with the specified ID. Based on the field, we should also define validation rules (present only controlled by Konnect Entity controller; immutable after progammed; ...).Proposed Solution
Define a
KonnectAttributes
type including theEntityID
field, and add the field in thespec
of all CRDs supported in the Konnect entity controller.Also we need to add at least the following rules on the field:
controlPlaneRef
is pointing to a Konnect Control planeAdditional Information
Acceptance Criteria
konnect.entityID
is present in each CRD we support in Konnect entity controllercontrolPlaneRef
is pointing to a Konnect Control planeThe text was updated successfully, but these errors were encountered: