Skip to content

Restart of keda-operator causes ScaledJob object to be updated #5656

@chinmaygopal

Description

@chinmaygopal

Report

Restart/Recreation of keda-operator causes ScaledJob object to be updated, which leads to Jobs being rolled out as per the RolloutStrategy.

Expected Behavior

Restart/Recreation of the keda-operator should not update the ScaledJob object

Actual Behavior

Restart/Recreation of the keda-operator somehow update the ScaledJob object leading to Jobs being rolled out as per the RolloutStrategy.

Steps to Reproduce the Problem

  1. Kill the keda-operator (with replicas >1).
  2. Wait for the keda-operator to be recreated.
  3. In the Kubernetes events for the ScaledJob object, around the time the keda-operator was restarted the following events can be seen:
    i. KEDAJobsCreated
    ii. KEDAScalersStarted

KEDA Version

2.13.1

Kubernetes Version

1.27

Platform

Microsoft Azure

Scaler Details

No response

Anything else?

This could also be the expected behavior of the keda-operator. However I do not understand why any changes the to keda-operator should affect the ScaledJob object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions