Closed faizanbashir closed 1 year ago
I also reached out to Redhat support, but they said there are two ways to scale DeploymentConfigs
oc
cli commandI have solved this issue, although not with the UpdateScale()
function. The solution uses the .Patch()
function call by passing it a JSONPatch to replace the replicas.
I have documented the solution in my blog post Scaling DeploymentCofigs
The
UpdateScale()
function for DeploymentConfigs is not working.I am using the following code snippet to call the function.
The
GetScale()
function is working fine, although it throws a warning. Thereafter I am passing the scale object which I am getting from theGetScale()
to the update scale function, but it's not working.Getting the below error
Points to consider:
github.com/openshift/api v0.0.0-20221103085154-ea838af1820e
Patch()
function defined in the same interface as theUpdateScale()
. I have documented it in my blog post.openshift version
command returns the below result: