Skip to content

RHIDP-11271: fixing 404 error after cached dynamic plugins config change#1786

Open
deerskindoll wants to merge 6 commits intoredhat-developer:mainfrom
deerskindoll:RHIDP-11271
Open

RHIDP-11271: fixing 404 error after cached dynamic plugins config change#1786
deerskindoll wants to merge 6 commits intoredhat-developer:mainfrom
deerskindoll:RHIDP-11271

Conversation

@deerskindoll
Copy link
Member

@deerskindoll deerskindoll commented Feb 10, 2026

@rhdh-bot
Copy link
Collaborator

rhdh-bot commented Feb 10, 2026

Copy link
Member

@gazarenkov gazarenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@deerskindoll deerskindoll added Peer review needed 📖 Technical review done ⛅ Any procedure has been succesfully tested and removed Technical review needed 🔩 Test all the procedures labels Feb 13, 2026
@deerskindoll deerskindoll changed the title RHIDP-9554: fixing 404 error after cached dynamic plugins config change RHIDP-11271: fixing 404 error after cached dynamic plugins config change Feb 16, 2026
@deerskindoll
Copy link
Member Author

/cherry-pick release-1.9

@openshift-cherrypick-robot
Copy link
Contributor

@deerskindoll: once the present PR merges, I will cherry-pick it on top of release-1.9 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-1.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Comment on lines +29 to +32
kind: StatefulSet
patch:
spec:
replicas: 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be worth calling out the following for awareness:

  • The default kind for RHDH is Deployment, so after switching an existing CR to StatefulSet, the user will need to manually remove the previous Deployment that was created by the Operator. Otherwise, they will have both Deployment and StatefulSet running
  • Using a StatefulSet with a single replica might introduce some downtime when the pod needs to be updated, as the previous pod will need to be deleted first before the new one is recreated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add removing Deployment as a step in the procedure and add a note about the downtime. would that make sense?

@sonarqubecloud
Copy link

requests:
storage: 1Gi
----
. Remove the default `kind: Deployment` from the Backstage CR
Copy link
Member

@rm3l rm3l Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, if users are updating an existing Backstage CR (that did not previously have this new spec.deployment.kind field set, or had it set to Deployment) by switching to StatefulSet, they would need to manually delete the previous Deployment resource that was created by the RHDH Operator. They would need to actually remove this Deployment resource from the cluster, not the Backstage CR.
This is because the Operator would now be managing a StatefulSet resource in the cluster. So the previous Deployment would remain orphan. Worse, traffic may still be sent to the previous Deployment pods.
They can do so by running this command for example, after the CR is reconciled (to avoid potential downtime):

oc delete deployment -l 'app.kubernetes.io/instance=<CR_NAME>'

Hope that clarifies.

Copy link
Member

@rm3l rm3l Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you can generalize this: whenever the spec.deployment.kind is changed in the CR (from Deployment to StatefulSet or vice-versa), users would need to explicitly remove the previous left-over resources from the Cluster.
If they change this field from Deployment to StatefulSet, they would need to delete the previous Deployment resource from the cluster.
If they change this field from StatefulSet to Deployment, they would need to delete the previous StatefulSet resource from the cluster.
I'll file a JIRA for the Install team to track this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Peer review needed 📖 Technical review done ⛅ Any procedure has been succesfully tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants