feat(web): add a config property that allows front50 to be the source of truth for applications #1825
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is to address the issue of UI showing synthetic applications created by Spinnaker itself which are unknown to Front50.
Clouddriver creates these synthetic applications when it is caching resources in a cluster. If the account doesn’t have
onlySpinnakerManaged
set to true, it will create an application using the first part of the manifest name. i.e. a deployment with a name of test-abc will result in an application called test being created.Through spinnaker/clouddriver#5777, Clouddriver is equipped with discarding caching manifests whose application name(derived from moniker) doesn't exist in front50 but in spite of this, synthetic applications can exist in the following scenarios:
kubernetes.checkApplicationInFront50
is not enabled in clouddriverkubernetes.checkApplicationInFront50
in clouddriver.This PR makes sure that when gate is queried for the applications list, it gets the applications from front50 and clouddriver, and only considers the applications returned from front50 to be the source of truth.
It introduces the following property now in Gate, which when enabled discards all the applications that are obtained from clouddriver which are not known to front50.