rancher/rancher · error

failed to add tolerations for CP nodes: %w

Error message

failed to add tolerations for CP nodes: %w

What it means

Error "failed to add tolerations for CP nodes: %w" thrown in rancher/rancher.

Source

Thrown at pkg/catalogv2/helmop/operation.go:146

		roles:             rbac.Role(),
		nodes:             nodes,
		secretCache:       secrets.Cache(),
		secrets:           secrets,
	}
}

// Uninstall gets the uninstall commands using the given namespace, name and options and gets the user information using the isApp flag as true.
// Returns a catalog.Operation that represents the helm operation to be created
func (s *Operations) Uninstall(ctx context.Context, user user.Info, namespace, name string, options io.Reader, imageOverride string) (*catalog.Operation, error) {
	status, cmds, err := s.getUninstallArgs(namespace, name, options)
	if err != nil {
		return nil, err
	}

	if status.AutomaticCPTolerations {
		status.Tolerations, err = s.AddCpTaintsToTolerations(status.Tolerations)
		if err != nil {
			return nil, fmt.Errorf("failed to add tolerations for CP nodes: %w", err)
		}
	}

	user, err = s.getUser(user, namespace, name, true)
	if err != nil {
		return nil, err
	}

	return s.createOperation(ctx, user, status, cmds, imageOverride, name)
}

// Upgrade gets the upgrade commands using the given namespace, name and options and gets the user using the isApp flag as false.
// Returns a catalog.Operation that represents the helm operation to be created
func (s *Operations) Upgrade(ctx context.Context, user user.Info, namespace, name string, options io.Reader, imageOverride string) (*catalog.Operation, error) {
	status, cmds, err := s.getUpgradeCommand(namespace, name, options)
	if err != nil {
		return nil, err
	}

View on GitHub (pinned to 932558d4e6)

When it happens

Trigger: Thrown at pkg/catalogv2/helmop/operation.go:146 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of rancher/rancher@932558d4e6 (2026-08-16). Data as JSON: /api/errors/71a02a69e0158882. Report an issue: GitHub.