Skip to content

v1.0.1

Latest
Compare
Choose a tag to compare
@gianlucam76 gianlucam76 released this 16 Aug 07:11
192b4b6

🐛 Bug Fixes

  • Helm Chart Templating: Previously, two paths in the addon controller failed to instantiate Helm charts correctly, causing them to be deployed and immediately undeployed. This occurred when the release namespace was defined as a template. The fix ensures that Helm charts are now properly templated and instantiated at runtime, resolving the deployment issue. PR

  • Stale HealthCheck Reports: The system no longer leaves behind stale HealthCheckReport objects after their corresponding HealthCheck is deleted. The fix now correctly identifies and cleans up these reports by using the ctrl.Request Name to ensure reconciliation occurs even after the HealthCheck object is gone. PR

  • SveltosCluster Kubeconfig Update: When a cluster is re-registered with Sveltos, the SveltosCluster.Spec.KubeconfigKeyName is now correctly updated to match the key in the Secret holding the cluster's kubeconfig. This prevents components from failing to locate the kubeconfig when the key changes (e.g., from re-kubeconfig back to kubeconfig), ensuring continuous operation. PR

  • EventReport Resource Parsing: The system now correctly reads resources from EventReports, even when they contain the --- separator within the resource data itself (e.g., certificates in a ConfigMap). The strings.Split function has been replaced with a custom function, deployer.CustomSplit, which accurately parses YAML and avoids misinterpreting internal content as resource delimiters. PR

  • Optimized Resource Instantiation: When instantiating referenced resources from ConfigMaps or Secrets, Sveltos now directly processes the string content instead of first marshaling it to JSON. This simplifies the templating process, as only the value (not the key) needs to be treated as a template. PR