Allow running custom script for debugging purposes#497
Allow running custom script for debugging purposes#497lmiccini wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lmiccini The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
e24529c to
73c403f
Compare
This commit adds a CustomScriptConfigMap spec field to let users run custom scripts for debugging purposes. If CustomScriptConfigMap is used, the status of the instanceha resource would reflect setting status.unsupported.
73c403f to
8cabcd9
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/47d250aadd854d79bee3ef55692c25f7 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 02m 01s |
|
recheck |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/885226d2d82d447185e589625b33877b ❌ openstack-k8s-operators-content-provider FAILURE in 12m 14s |
Sometimes it is useful to quickly spin up a pod using a custom script.
This change would allow users to create a configmap holding a modified copy of the script and running it via:
apiVersion: instanceha.openstack.org/v1beta1
kind: InstanceHa
spec:
customScriptConfigMap: my-custom-script-cm # optional
# ... other fields
if customScriptConfigMap is not empty a special status field "status.unsupported" will be added to the instanceha resource.