Version: v1.0

Known Limitations

Limitations

Here are some known limitations for using Helm chart as application component.

Workload Type Indicator

Following best practices of microservice, KubeVela recommends only one workload resource present in one Helm chart. Please split your “super” Helm chart into multiple charts (i.e. components). Essentially, KubeVela relies on the workload filed in component definition to indicate the workload type it needs to take care, for example:

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: ComponentDefinition
  3. ...
  4. spec:
  5. workload:
  6. definition:
  7. apiVersion: apps/v1
  8. kind: Deployment
  1. ...
  2. spec:
  3. workload:
  4. definition:
  5. apiVersion: apps.kruise.io/v1alpha1
  6. kind: Cloneset

Note that KubeVela won’t fail if multiple workload types are packaged in one chart, the issue is for further operational behaviors such as rollout, revisions, and traffic management, they can only take effect on the indicated workload type.

Always Use Full Qualified Name

The name of the workload should be templated with fully qualified application name and please do NOT assign any value to .Values.fullnameOverride. As a best practice, Helm also highly recommend that new charts should be created via $ helm create command so the template names are automatically defined as per this best practice.

Control the Application Upgrade

Changes made to the component properties will trigger a Helm release upgrade. This process is handled by Flux v2 Helm controller, hence you can define remediation strategies in the schematic based on Helm Release documentation and specification in case failure happens during this upgrade.

For example:

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: ComponentDefinition
  3. metadata:
  4. name: webapp-chart
  5. spec:
  6. ...
  7. schematic:
  8. helm:
  9. release:
  10. chart:
  11. spec:
  12. chart: "podinfo"
  13. version: "5.1.4"
  14. upgrade:
  15. remediation:
  16. retries: 3
  17. remediationStrategy: rollback
  18. repository:
  19. url: "http://oam.dev/catalog/"

Though one issue is for now it’s hard to get helpful information of a living Helm release to figure out what happened if upgrading failed. We will enhance the observability to help users track the situation of Helm release in application level.

Issues

The known issues will be fixed in following releases.

Rollout Strategy

For now, Helm based components cannot benefit from rolling update API. As shown in this sample, if the application is updated, it can only be rollouted directly without canary or blue-green approach.

Updating Traits Properties may Also Lead to Pods Restart

Changes on traits properties may impact the component instance and Pods belonging to this workload instance will restart. In CUE based components this is avoidable as KubeVela has full control on the rendering process of the resources, though in Helm based components it’s currently deferred to Flux v2 controller.