This document describes the relevant changes between releases of the
ocm
command line tool.
- Improve existing VPC and proxy code.
- Disable color in Windows.
- Added account number to "ocm describe cluster ...".
- Show limited support flag in "ocm describe cluster ...".
- Update to SDK 0.1.240
- Only show relevant regions in interactive cluster create
- Update linter config
- Add linting GH action
- Fix linting issues
- Run go mod tidy
- Unify PR actions
- ocm-cli - Improve the cluster-wide-proxy use cases
- It should fail to create a cluster with proxy atrribute but no --use-existing-vpc
- [WIP] ocm-cli should support byovpc and cluster-wide-proxy for gcp
- It should be failed when create a non-ccs cluster with proxy attributes
- Support byovpc and cluster-wide-proxy features
- GCPNetwork attributes should show in cluster describe
- Fix HTML escaping
- It should be successful to edit a ccs cluster with proxy attribute
- Update SDK to v0.1.242
- Add STS to
describe cluster
output. - Add BYOPC flag to
describe cluster
command. - Support BYO-VPC cluster creation flags.
- Support cluster-wide proxy during cluster creation and update.
- Don't allow additional trust bundle as parameter.
- Add more URLs to expander.
- Readable error message when creating a CCS cluster with invalid
--htts-proxy
value.
This version doesn't contain changes to the functionality, only to the development and build workflows:
-
Rename
master
branch tomain
.To adapt your local repository to the new branch name run the following commands:
git branch -m master main git fetch origin git branch -u origin/main main git remote set-head origin -a
-
Automatically add changes from
CHANGES.md
to release descriptions.
- Fix binary names inside
.sha256
files - Build for all RHEL architectures
- Replace quota_summary by quota_cost
- Add alias
-p
to--parameter
The only change in this relase is that the GitHub action that publishes releases has been fixed so that it publishes correct binaries. There are no changes in functionality. See #319 for details.
-
Replace
go-bindata
with Go 1.16embed.FS
. This has no practical implication for users, but for developers it means that the project requires Go 1.16. -
Run tests using GitHub actions instead of Jenkins. This increases the platform coverate as tests now run in Linux, MacOS and Windows.
-
Color output is now generated internally without requiring the installation of the
jq
tool. -
Show provisioning error code and message.
-
Use standard XDG configuration path for
ocm.json
.If the legacy
~/.ocm.json
file already exists it continues using that, otherwise it prefers the standard XDG configuration directory. That usually means~/.config/ocm/ocm.json
.We recommend removing the old file and running the
login
command again:$ rm ~/.ocm.json $ ocm login ...
Or move the existing file to the new location:
$ mkdir -p ~/.config/ocm $ mv ~/.ocm.json ~/.config/ocm/ocm.json
-
User friendly message when offline token is no longer valid.
- Add CLI tests
- Don't remove config file on logout
- Add
pager
configuration setting - Use pager command for
list clusters
- Add table printer
- Add printer table for organizations
- Add table for plugins
- Add table for
addons
- Use table for
list idps
- Add column width learning
- Support specifying IdD Name
- feat(login): allow for empty OCM_CONFIG
- llokup clusters by subscriptions
- Update login URL for upcoming move to console.redhat.com
- Add password generation option for IDP
- Add htapssed IDP
- Update to OCM SDK 0.1.190.
- Don't require refresh token for client credentials grant.
- Don't use refresh token if have client credentials.
The only change in this release is the removal of the paging feature that was introduced in the previous release. Users have complained that it disrupts their workflows. In particular the fact that less clears the screen after finishing when the results fit in one page.
Note that in version of less included in many Linux operating systems can be
configured to disable this screen clearing adding the -F
option to the LESS
environment variable:
export LESS="-F"
But apparently other operating systems, in particular macOS, don't have this version or less, or have a version that doesn't support that option or environment variable.
This feature will be reintroduced later with a mechanism to persistently enable or disable it.
- Update ocm-sdk-go to 0.1.186
- Use
less
to page cluster list - Added ccs_only to cloud regions
- Honor machine_types ccs_only field
- ocm post: pass correct info to ApplyHeaderFlag()
- Add option to encrypt etcd during cluster installation
- list versions by channel group
- Modify resource_name comparison when populating add-ons
- Add PrivateLink To Describe Cluster
- Remove ResourceQuota Allowed field
- Merge value of
--parameter search="..."
with search query generated by thelist clusters
command.
- Update ocm-sdk-go to 0.1.173
- Commands for Job Queues
- Convert ocm account quota to ocm list quota command
- Support creating clusters in different channel groups
- Edit cluster channel group
- Adjust column padding for
list clusters
- Add flag to suppress printing of headers
- Add cluster state to
describe cluster
command - Allow autoscaling non-default machine pool with 0 replicas
- Add support for hibernate / resume cluster.
- Add flag to sshuttle.
- Fix cluster admin enabled output.
- Fix empty edit default machine pool.
- Update ocm-sdk-go to 0.1.152
- Avoid
survey.Select
bug when Default is not one of Options - Fix CheckOneOf() error message
- Drop default of --region
ocm list machinepools
- added autoscaling field, and rangeocm create cluster
- added autoscaling paramsocm describe cluster
- added autoscaling indication and rangeocm edit machinepool
- can now edit default machine pool - and autoscaling paramsocm edit cluster
- no longer able to edit compute nodes
- Show sorted version list in
ocm list versions
- Fixed API endpoint in the README file
- Support creating GCP CCS clusters
- Added taints to machine pool commands
- Machine pool labels and taints can be edited via
ocm edit machinepool
command - Added interactive option to create cluster command
- Added shell completion
- Added list
ocm list orgs
command - Updated OCM integration URL helper
instance-type
is a required parameter in create machine pool command.- Improve help and positional arg enforcement in most command.
- Show version in describe cluster command.
- Fix version check when creating a cluster.
- Add upgrade policy commands.
- Update ocm-sdk-go to 0.1.145
- Add
dry-run
parameter to create cluster command. - Add list regions comamand.
- Convert cluster versions to list versions
ocm tunnel
uses cluster id directly without a flag- Update ocm-sdk-go to 0.1.139
- Add list/create/edit/delete machine pool commands
- Show channel group in 'ocm describe cluster'.
- Add goreleaser config for homebrew-tap.
- Output sshuttle command execution string.
- new sub-command to show the plugins.
- Simplify cluster login via browser.
- Enable logging in via external_id.
- Add creator details.
- Support creating CCS clusters.
- Implement edit cluster command.
- Add token generation command.
- bump ocm-sdk-go to v0.1.131.
- Display provision shard name in describe cluster
- Add more options to create cluster command
- Add
ocm tunnel
command - Hide expiration time parameters in create cluster command
- Support git style ocm plugin
- Assume expiration is 0 when missing 'exp' claim in the jwt token.
- Add Product ID field to list/describe clusters.
- Add more env aliases to login command.
- Add delete identity provider command.
- Add delete ingress command.
- Add list addons command.
- Add edit ingress command.
- Usage is not displayed after error occurs.
- Bump ocm-sdk-go to 0.1.122.
- Add support for creating a private cluster.
- Don't fail "cluster describe" if a user is unauthorized to get account.
- cluster list, create and describe are deprecated and replaced by
list clusters
,create cluster
anddescribe cluster
. - Add support for creating identity providers.
- Add support for creating users.
- Add support for creating ingresses.
- Add support for listing identity providers.
- Add support for listing users.
- Add support for listing ingresses.
- Bump ocm-sdk-go to 0.1.112.
- Add support for expiration in ocm cluster create.
- Add support for specifying cloud provider.
- Add cloud provider to default columns.
- config: beef up help message.
- Add console URL to describe.
- Output Console URL.
- Add shell completion for resources.
- Add API Listening to cluster descrribe.
- Update to ocm-sdk-go 0.1.105
- Allow setting --managed=false in cluster list.
- Describe by name, identifier or external identifier (fixes #59).
- Support query parameters in raw HTTP methods (fixes #6).
- Add
state
to list of default columns for cluster list. - Preserve order of attributes in JSON output.
- Display quota so it supports add-ons.
- Add number of infra nodes to the output of the
cluster describe
command. - Add
--roles
flag to theaccount users
command. - Add support for
OCM_CONFIG
environment variable to indicate an alternative location of the configuration file. - Tighten output of the
account orgs
,account quota
,account users
andcluster list
commands.
- Update to SDK 0.1.78.
- Add quota resource name.
- Tighten up list output.
- Remove redundant
href
column from organization list. - Add parameter usage example.
- Add organization details to account status command.
- Add shortcuts for role bindings and resource quota.
- Add shortcuts for roles and SKUs.
- Add support for Windows.
- Add
--flavour
option toocm cluster create
.
- Allow bare
ocm login
to suggest the token page without extra noise.
- Dropped support for developers.redhat.com.
- Added
oc cluster versions
command.
- Fixed the
cluster create
command so that it retrieves all the enabled versions.
-
Added new
cluster create
command. -
Added support for
production
,staging
andintegration
as values of the--url
parameter.
- Fix quota output to look at correct API field.
- Fix
login
command so that it clears old tokens.
-
Change default version field to point to current version.
-
Add ability to open the console URL in browser.
- Don't print usage message when the
get
,post
,patch
anddelete
commands receive error responses from the server.
- Rename the tool to
ocm
.
- Fixed issue #62: the
--url
option of thelogin
command should not be mandatory.
-
Improvements in the
cluster list
command, including increasing the size of the name column. -
Added new
orgs
command to list organizations. -
Added new
account orgs
command to list organizations for the current account. -
Print roles of current user with the
account status
command. -
Add filter positional argument to the
cluster list
command.
- Added the
account
command.
- Fix deprecated issuer: should be developers.redhat.com instead of sso.redhat.com.
-
Added the
--single
option to theget
command to format the output in one single line. -
Improvements in the
cluster login
command. -
Changed the default authentication service from developers.redhat.com to sso.redhat.com. The old service will still be used when authenticating with a user name and password or with token issued by developers.redhat.com.
-
Added the
config get
andconfig set
commands to get and set configuration settings. -
Added support for shortcuts to the raw HTTP commands.
-
Added the
whoami
command. -
Added support for custom columns in the
cluster list
command.
- Added the
cluster login
command.
- Improvements in the
cluster list
andcluster describe
commands.
- Added the
completion
command that generates bash completion scripts.
- Adapt to changes in the API and SDK that moved cluster basic metrics to a new
metrics
attribute.
- Added the
cluster
command.
-
Update to use the new package names of the SDK and the CLI.
-
Build static binary.
- Send output to
stderr
only if the response HTTP code is greater than 400.
- Update to SDK 0.1.3.
- Don't pass empty tokens to connection constructor.
- Fix printing of tokens.
- Don't reorder JSON output if
jq
is available.
- Fix check of token expiration.
- Add support for login with token.
- Don't split the values of the
--parameter
command line option at commas.
- Moved from the
api-client
project into its ownuhc-cli
project.