rancher / fleet

Deploy workloads from Git to large fleets of Kubernetes clusters
https://fleet.rancher.io/
Apache License 2.0
1.52k stars 229 forks source link

How to patch entire orphaned resources generated by Fleet chart #1521

Closed kkaempf closed 1 year ago

kkaempf commented 1 year ago

SURE-4655

Repro steps:

Provision a Rancher v2.6.5 instance and single all role node custom cluster (I used github.com/superseb/tf-do-rancher2 In the fleet-default Namespace add the  349505 branch of the repository https://github.com/axeal/fleet-test.git Observed orphaned vault-agent-injector-svc Endpoints resource with below summary. Attempt to add bundle diff for this resource with - {"op": "remove", "path": "/"} has no effect.

  summary:
    desiredReady: 1
    modified: 1
    nonReadyResources:
    - bundleState: Modified
      modifiedStatus:
      - apiVersion: v1
        delete: true
        kind: Endpoints
        name: vault-agent-injector-svc
        namespace: vault
      name: test
    ready: 0

Workaround:

Is workararound available and implemented? Yes What is the workaround: Issue does not occur when kustomize is not used in the bundle, i.e. the 345905-workaround branch

Actual behavior:

Inability to ignore orphaned resource created by Helm chart resource (vault-agent-injector-svc Service in this instance)

Expected behavior:

Ability to ignore orphaned resources created by chart

kkaempf commented 1 year ago

Closed in JIRA