Skip to content

Addon upgrade flux 2.4#766

Open
bugbuilder wants to merge 5 commits intokubevela:masterfrom
bugbuilder:master
Open

Addon upgrade flux 2.4#766
bugbuilder wants to merge 5 commits intokubevela:masterfrom
bugbuilder:master

Conversation

@bugbuilder
Copy link

This update includes all the necessary changes to upgrade Flux to its 2.4 GA version, ensuring compatibility and enhanced functionality for the addon. The key changes are:

  • Integration of the Notification Controller: The Notification Controller is now included, enabling centralized event management within Flux and adding associated parameters for proper configuration.
  • Resource Parameter Customization: Support for customizing requests and limits values has been implemented to optimize resource usage for controllers.
  • CRD Updates: Custom Resource Definitions (CRDs) have been updated to reflect changes and improvements introduced in Flux 2.4 GA, ensuring compatibility with the new version.

Some practices, such as priorityClassName, securityContext, and terminationGracePeriodSeconds, were not implemented as they are currently not supported by the webservice component type. Discussions regarding their support are still ongoing in the community, as referenced in kubevela/kubevela#5580.

I would appreciate clarification on what types of tests should be run to ensure the changes meet the project's merge requirements. This would help validate the implementation further and ensure compatibility across different environments.

Copy link

@gsmartino23 gsmartino23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

wonderflow
wonderflow previously approved these changes Nov 29, 2024
Copy link
Collaborator

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appreciate the contribution, please help sign the DCO

Signed-off-by: bugbuilder <nelson@v7n.cl>
Signed-off-by: bugbuilder <nelson@v7n.cl>
Signed-off-by: bugbuilder <nelson@v7n.cl>
Signed-off-by: bugbuilder <nelson@v7n.cl>
wonderflow
wonderflow previously approved these changes Dec 4, 2024
@wonderflow
Copy link
Collaborator

oops, sorry the conflict happen when I merged other PR

Signed-off-by: bugbuilder <nelson@v7n.cl>
@bugbuilder
Copy link
Author

oops, sorry the conflict happen when I merged other PR

No worries, already fixed it

@bugbuilder bugbuilder requested a review from wonderflow December 4, 2024 18:51
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mrge found 17 issues across 25 files. View them in mrge.io

memory: "1Gi"
}
requests: {
cpu: "100m"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CPU resource request (100m) is significantly lower than the limit (1000m) with a 10:1 ratio, which could lead to resource overcommitment and potential container throttling

}
requests: {
cpu: "100m"
memory: "64Mi"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memory resource request (64Mi) is significantly lower than the limit (1Gi) with a 16:1 ratio, which could lead to pod evictions if actual usage exceeds requests

value: _targetNamespace
},
{
name: "GOMAXPROCS"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GOMAXPROCS set to limits.cpu might cause performance issues if container is throttled

properties: {
if parameter.imageAutomationControllerOptions != _|_ {
args: controllerArgs + parameter.imageAutomationControllerOptions
args: eventAddrArgs + parameter.imageAutomationControllerOptions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code replaces controllerArgs with eventAddrArgs but doesn't properly handle case when notification-controller (which eventAddrArgs depends on) is not deployed

value: _targetNamespace
},
{
name: "GOMAXPROCS"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing validation for CPU limits when setting GOMAXPROCS

@@ -1,5 +1,5 @@
name: fluxcd
version: 3.0.1
version: 3.1.0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version bump is correct, but there's a bug in the newly added notification-controller.cue file

if parameter.notificationControllerResourceLimits.memory != _|_ {
memory: parameter.notificationControllerResourceLimits.memory
}
if parameter.sourceControllerResourceLimits.memory == _|_ {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect variable reference: using sourceControllerResourceLimits when checking notification controller memory limits

type: "object"
}
served: true
storage: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting v1 as the storage version while keeping older versions served could lead to data loss if not handled properly during upgrade

type: "date"
}]
name: "v1beta1"
deprecated: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecating v1beta1 and v1beta2 without a migration path might lead to breaking changes for existing users

type: "string"
}
required: ["name"]
type: "object"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The schema for v1 introduces several new fields without specifying defaults that might cause issues for existing resources

@Jetiaime
Copy link

Still Have #785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants