Skip to content

Usage of global Scheme can cause Helm to wrongly choose a 3-way-merge patch  #7400

Closed

Description

@hiddeco

While using Helm as a package instead of just using the binary the problem exists that due to the usage of the global scheme.Scheme in pkg/kube/converter.go to create versioned objects, custom resources added to scheme.Scheme by e.g. versioned clients will make Helm attempt to 3-way-merge patch those resources as they are no longer of type runtime.Unstructured.

My proposal is to use a separate scheme.Scheme, with only native Kubernetes added to it, to break free from (generated) versioned Kubernetes clients automagically registering their resources to the global scheme.Scheme.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions