Skip to content

ScaledObject no being cached correctly at all times #4955

Description

@gauron99

This is a tracking issue of a bug for which a workaround has been implemented in number of places for this time until its resolved globally.

What happens

ScaledObject is sometimes not cached correctly -> for example the metrics are an empty list or the .Status.ScaleTargetGVKR is nil

Workaround

A workaround has been implemented in a number of places. See below.

  • pkg/scaling/scale_handler.go in func (h *scaleHandler) getTrueMetricArray()
  • pkg/scaling/resolver/scale_resolvers.go in func ResolveScaleTargetPodSpec()

Other info

initial related issue link

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedLooking for support from communitystaleAll issues that are marked as stale due to inactivity

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions