-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
microk8s just broke chectl -p microk8s #16408
Comments
@TheRealChssAddct |
With this PR we maintain the old CLI interface and out put for microk8s.status and microk8s.status --yaml. We introduce a --format argument with which you can select a human readable pretty output format (that includes the addon descriptions) or select the new yaml format with yaml Fixes: #1041 and eclipse-che/che#16408
@tolusha @TheRealChssAddct we have taken corrective action in MicroK8s in order not to change the CLI and output format. The PR with the fix is merged and the edge channel should be updated within a few hours. Thank you for reporting this, apologies for any inconvenience. |
Problem resolved by microk8s team. |
@ktsakalozos Cool, thank you! |
Reopening, because the microk8s team has decided (canonical/microk8s#1041 (comment)) to have the default of microk8s.status be 'pretty'. This is a breaking change for chectl (on microk8s). It can't be ignored. The fix will be in src/tasks/platforms/microk8s.ts. Line 113 needs to include '--format short'
in order for lines 115,116 to find the expected output:
alternatively, as I mentioned in my original description above, the following could be used.
It is unfortunate that it will in fact break everyone who is using an older version of chectl if their microk8s snap auto updates to the latest with the breaking change. |
@TheRealChssAddct |
Microk8s team decided to 'pretty up' the output of microk8s.status. It released today (2020-03-19) on the latest/edge channel with v1.17.4 rev: 1278.
The PR is here: here
Their changes break the ingress and storage enabled checks in chectl/src/tasks/platforms/microk8s.ts lines 112 and 113.
With their change it is less simple to get the array of enabled addons. There is the option to get yaml output which is still parsable, but less simply than currently done in the code above. e.g.:
microk8s status -o yaml
They also added a --addon tag, for querying the status of an individual addon and returns either "enabled" or "disabled". e.g.:
microk8s.status --addon ingress
microk8s.status --addon storage
For now, I can switch to another channel such as latest/stable, latest/candidate, or latest/beta. But this breaking change is coming fast. (latest/stable is dated 1020-03-09).
I submit a bug to microk8s canonical/microk8s#1041 complaining and suggesting they keep the old format as default and provide the new format with a new switch such as
--pretty
or-o pretty
But no guarantees they would accomodate.The text was updated successfully, but these errors were encountered: