Skip to content

Deployment failure using Helm via Rancher Fleet 0.15 #345

Open

Description

@srplexus

Problem

We use Rancher Fleet to deploy applications at scale, including the SentinelOne Agent. Fleet uses Helm to deploy charts and manifests.

After upgrading Rancher to version 2.15.1, our agent deployment breaks. The trigger is in the hooks.uninstallScript define in _helpers.tpl:

echo -e "\n----------------------------------\n";

Fleet pins Helm 4.1.4, which improperly handles strings of 6 or more consecutive dashes (see rancher/fleet#5443 (comment)). The issue was fixed in Helm 4.2, and is fixed in the subsequent Fleet releases, but it may take a while for these to percolate through the supply chain.

Solution

Implement one of the following workarounds in _helpers.tpl:

  1. Use some other character for the ruler such as "=" or "*";
  2. Shorten the string to 5 or less dashes; or
  3. Replace the problematic line with echo -e "\n"$(printf '=%.0s' {1..34})"\n";

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions