How to change queue status from open to closed without vcctl?
Please describe your problem in detail
Dear Volcano team,
I want to change queue status from open to closed programmatically in application. I am using python kube client calling apply function, but when I modify manifest, kuber returns code 200, but the changes do not apply. Volcano version: 1.9
- What I have before applying changes
apiVersion: scheduling.volcano.sh/v1beta1
kind: Queue
metadata:
creationTimestamp: '2024-08-21T12:52:48Z'
generation: 1
managedFields:
- apiVersion: scheduling.volcano.sh/v1beta1
fieldsType: FieldsV1
fieldsV1:
f:status:
.: {}
f:allocated:
.: {}
f:cpu: {}
f:memory: {}
f:reservation: {}
f:state: {}
manager: Go-http-client
operation: Update
subresource: status
time: '2024-08-21T12:52:48Z'
- apiVersion: scheduling.volcano.sh/v1beta1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:labels:
.: {}
f:oip/tenant-id: {}
f:oip/workspace-id: {}
f:spec:
.: {}
f:reclaimable: {}
f:weight: {}
manager: OpenAPI-Generator
operation: Update
time: '2024-08-21T12:52:48Z'
name: 4bba785b-003d-400d-8a23-a68c1e9f0b72
resourceVersion: '126398065'
uid: ae66c91a-7690-45d6-8a93-0a5c31446fa0
selfLink: >-
/apis/scheduling.volcano.sh/v1beta1/queues/4bba785b-003d-400d-8a23-a68c1e9f0b72
status:
allocated:
cpu: '0'
memory: '0'
reservation: {}
state: Open
spec:
reclaimable: false
weight: 1
- I modify state over command kube apply API call
...
status:
allocated:
cpu: '0'
memory: '0'
reservation: {}
state: Closed
...
- And get again the same
...
status:
allocated:
cpu: '0'
memory: '0'
reservation: {}
state: Open
...
Please, explain how can I change state over kube apply command?
P.S. I know that I can change status using 'vcctl queue operate -a close' but I want to find simply way programmatically change state over Python.
Best regards, Denis
Any other relevant information
No response
Queue status is reconciled by controller and it's an actual state of queue just like other k8s resource, so it's not recommended to change the status manually, you can find that k8s resources like pod and node is not allowed to modify status by kubectl either.
Hello 👋 Looks like there was no activity on this issue for last 90 days. Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗 If there will be no activity for 60 days, this issue will be closed (we can always reopen an issue if we need!).
Closing for now as there was no activity for last 90 days after marked as stale, let us know if you need this to be reopened! 🤗