-
Notifications
You must be signed in to change notification settings - Fork 405
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
Runtime Agent fails to apply Application CR when application name is not normalized #10070
Comments
ProposalAfter further discussion with @crabtree and @PK85 here's the following proposal we jointly formed together in order to achieve the desired outcome:
|
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions. |
Will be handled in: kyma-incubator/reconciler#419 |
Overview
Description
When runtime agent regularly fetches the applications for the runtime from Compass it tries to create Application CRs for each.
The problem is that if an application is retrieved from Compass which is not with a normalized DNS name, the runtime agent fails to create the Application CR.
Expected result
Currently the Services part of the same Application CR are sanitized/normalized so that the runtime agent is sure that the name is DNS compliant so that later on the necessary Service Catalog ServiceClasses and ServicePlans CRs can be created.
Reference 1:
kyma/components/compass-runtime-agent/internal/kyma/applications/converter.go
Line 54 in ef34835
Reference 2:
kyma/components/compass-runtime-agent/internal/kyma/applications/converter.go
Line 80 in ef34835
Reference 3:
kyma/components/compass-runtime-agent/internal/kyma/applications/util.go
Line 19 in ef34835
I would expect that the runtime agent normalizes the application name as well so that the Application CR can be created without any issues. But this doesn't happen as we can see that the value is used directly as retrieved from Compass:
kyma/components/compass-runtime-agent/internal/kyma/applications/converter.go
Line 48 in ef34835
I would expect that runtime agent ensures all application names are normalized (like it does for Packages into Services) rather than expect Compass to provide DNS compliant application names.
Actual result
Steps to reproduce
Quick way to reproduce: Create Application CR with non-DNS compliant name.
Long way to reproduce:
The text was updated successfully, but these errors were encountered: