Skip to content

Same app name for different Kinds #1409

@devdattakulkarni

Description

@devdattakulkarni

How does Kubeplus handle the case where there are two Kinds and we try to create app instances with the same name for both the Kinds?

Given that we are using app name as the name of application's namespace, do we have to enforce unique app name in a cluster constraint?

Note that just checking if namespace with the provided app name exists or not is not enough. This is because if the NS exists, we treat customer action as an update operation. We have to check the meta.helm.sh/release-name annotation. Get the Kind name from the annotation. If the Kind name is different than the Kind name in app instance, then we can conclude that an app instance cannot be created with that name as an app instance with that name already exists in the cluster, and it belongs to a different Kind than the Kind provided in the app yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions