-
Notifications
You must be signed in to change notification settings - Fork 261
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
Fleet Performance Improvements #12413
base: master
Are you sure you want to change the base?
Conversation
const perEntry = r.perClusterState?.find((x) => x.clusterId === c.id); | ||
const tooMany = r.perClusterState?.length >= 10 || false; | ||
const tooMany = r.perClusterState?.length >= 10 || false; // FIXME: shouldn't we not calc perEntry if there are too many? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, in the current implementation Fleet creates an incomplete flag on the resource and shouldn't add more than 10 perCluster states.
@@ -323,14 +324,18 @@ export default class GitRepo extends SteveModel { | |||
get resourcesStatuses() { | |||
const clusters = this.targetClusters || []; | |||
const resources = this.status?.resources || []; | |||
const conditions = this.status?.conditions || []; | |||
// const conditions = this.status?.conditions || []; | |||
// const bundleDeployments = this.bundleDeployments || []; | |||
|
|||
const out = []; | |||
|
|||
for (const c of clusters) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code assumes each resource is installed on every cluster. This is not always the case. Users can for example use targetCustomization to deploy resources only to some clusters. Additionally, popular charts install different resources depending on the k8s version of the cluster. Some charts even allow to deploy "extraObjects" via a helm chart value. 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding get targetClusters() {
that can be overriden via fleet.yaml so this code can't really deduct the targeted clusters anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch, as in the gitrepo resource has a native targetClusters
property?
Summary
Contributes to #12424
Occurred changes and/or fixed issues
Technical notes summary
Areas or cases that should be tested
Areas which could experience regressions
Screenshot/Video
Checklist