Skip to content

[BUG] Can't apply a resource if it's too big #295

@ryanzhang-oss

Description

@ryanzhang-oss

Describe the bug

The three way merge annotation hits the annotation length limit

'Failed to apply manifest: Secret "sh.helm.release.v1.ryan-redis.v1"
          is invalid: metadata.annotations: Too long: must have at most 262144 bytes'

Environment

Please provide the following:

  • Hub cluster details
  • Member cluster details

To Reproduce

Follow the steps of the redis install guide

Expected behavior

The secret should be omitted as it's created by the helm. This bug actually makes it work.

Screenshots

 status:
    conditions:
    - lastTransitionTime: "2022-09-16T18:57:06Z"
      message: Successfully scheduled resources for placement
      observedGeneration: 1
      reason: ScheduleSucceeded
      status: "True"
      type: Scheduled
    - lastTransitionTime: "2022-09-16T21:14:48Z"
      message: there are failed to apply manifests, please check the `failedResourcePlacements`
        status
      observedGeneration: 1
      reason: ApplyFailed
      status: "False"
      type: Applied
    failedPlacements:
    - clusterName: member1
      condition:
        lastTransitionTime: "2022-09-16T21:14:47Z"
        message: 'Failed to apply manifest: Secret "sh.helm.release.v1.ryan-redis.v1"
          is invalid: metadata.annotations: Too long: must have at most 262144 bytes'
        reason: appliedManifestFailed
        status: "False"
        type: Applied
      kind: Secret
      name: sh.helm.release.v1.ryan-redis.v1
      namespace: redis-test
      version: v1
    - clusterName: member2
      condition:
        lastTransitionTime: "2022-09-16T21:14:46Z"
        message: 'Failed to apply manifest: Secret "sh.helm.release.v1.ryan-redis.v1"
          is invalid: metadata.annotations: Too long: must have at most 262144 bytes'
        reason: appliedManifestFailed
        status: "False"
        type: Applied
      kind: Secret
      name: sh.helm.release.v1.ryan-redis.v1
      namespace: redis-test
      version: v1

Additional context

Add any other context about the problem here.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions