This document describes the relevant changes between releases of the OCM API SDK.
- Update metamodel version v0.0.60
- Update model version v0.0.366
- Fix Default Capabilities.
- Update model version v0.0.365
- [OCM-6763] Add default capability resource to SDK.
- Upgrade pgx version and other dependencies
- Update model version v0.0.364
- Add
BreakGlassCredentials
to theCluster
resource model.
- Add
- Update model version v0.0.363
- Add
NodeDrainGracePeriod
to theNodePool
model.
- Add
- Update model version v0.0.362
- Changed
UserName
attribute for TokenClaimMappings toUsername
.
- Changed
- Update model version v0.0.361
- Add
Scope
attribute toReservedResource
. - Add
Scope
attribute toClusterAuthorizationRequest
.
- Add
- Update model version v0.0.360
- Add
ComponentRoutes
attribute toIngress
- Add
- Migrate Keychain
securestore
usage to non-CGO libraries
- Update model version v0.0.359
- Add
ExternalAuthConfig
resource toCluster
model. - Add
DomainPrefix
toCluster
model.
- Add
- Update model version v0.0.357
- Add
ExternalAuth
toExternalAuthConfig
model
- Add
- Update model version v0.0.356
- Reverting change to remove provision shard from cluster
- Update model version v0.0.355
- Removed undefined api calls from the model
- Add support to
securestore
that allows the caller to define a keyring target - Additional
securestore
Error Standardization - Add error handling to
securestore
for denied Keychain access due to permissions
- Update model version v0.0.353
- Added support for
PackageImage
forclusters_mgmt
- Added support for
- Update model version v0.0.352
- Remove
StatusBoard
fullname
search parameter. - Deprecate
Notify
resource.
- Remove
- Additional error handling for
securestore
- Add regions support from ocm shards
- Don't error when response is 204 and no content-type
- Add
NewUnauthenticatedConnectionBuilder
function to allow creating aConnection
without client side authentication
- Remove redundant fields from /notify_details
- Add
ExternalAuthConfig
toCluster
model.
- Add
SubnetOutposts
andAvailabilityZoneTypes
toaws_node_pool_type
andaws_machine_pool_type
resources.
- Added Device Code flow to
authentication
- Update model version v0.0.347
- Add
HostedControlPlaneDefault
boolean toVersion
Type model.
- Add
- Add authentication using OAuth2 and PCKE
- Add secure token storage
- Update model version v0.0.346
- Modify notify_details response
- Update model version v0.0.345
- Add
validate_credentials
resource toAwsInquiries
- Add
- Update model version v0.0.344
- Add the /notify_details endpoint to the SDK
- Update model version v0.0.343
- Add
Platform
tosubnet_network_verification_type
resource
- Add
- Update model version v0.0.342
- Add
Search
andOrder
methods to List/api/clusters_mgmt/v1/clusters/{id}/node_pools
- Add
- Update model version v0.0.341
- Add DELETE /api/addons_mgmt/v1/clusters/{id}/addons endpoint
- Update model version v0.0.340
- Add get
Platform
tonetwork_verification_type
resource
- Add get
- Update model version to v0.0.339
- Add
MachineTypes
toGCPInquiriesClient
endpoints
- Add
- Update model version to v0.0.338
- Add
ProductTechnologyPreviews
andProductMinimalVersions
endpoints
- Add
- Updated client for
KubeletConfig
to alignpost
andupdate
function signatures
- Update model version to v0.0.336
- Added
security
field to Cluster Service GCP field
- Added
-
Update model version to v0.0.335
- Add
doc_references
field inLogEntry
- Add tags to subnet network verification resource
- Add
-
Update model version to v0.0.334
- Add Search method to status_board status_updates model
- Update model version to v0.0.333
- Add
/api/clusters_mgmt/v1/clusters/{id}/kubelet_config
endpoint - Add
KubeletConfig
struct - Update
Cluster
struct to be able to optionally embed theKubeletConfig
struct
- Add
- Update model version v0.0.332
- Add
AdditionalInfraSecurityGroupIds
toAWS
type - Add
AdditionalControlPlaneSecurityGroupIds
toAWS
type
- Add
- Update model version v0.0.331
- Add
Search
method tostatus_board
products_resource
,applications_resource
, andservices_resource models
- Add
- Require Go 1.21
- Update model version v0.0.330
- Add
Update
method toHypershiftConfig
resource
- Add
- Update model version v0.0.329
- Add get
ClusterId
tonetwork_verification_type
resource
- Add get
- Update model version v0.0.328
- Add get
VPC
toCluster
resource
- Add get
- Update model version v0.0.327
- Add
BestEffort
to methodDelete
inCluster
- Add
- Update model version v0.0.326
- Add
BackplaneURL
toEnvironment
type
- Add
- Update model version to v0.0.325
- Add
OrganizationId
toFeatureReviewRequest
type
- Add
- Update model version to v0.0.324
- Add
CreatedAt
toLogEntry
type - Add
CreatedBy
toLogEntry
type
- Add
- Update model version to v0.0.323
- Add
GCPMarketplaceEnabled
toversion
type
- Add
- Update model version to v0.0.322
- Add AdditionalComputeSecurityGroupIds to AWS type
- Add AdditionalSecurityGroupIds to AWS Machine Pool type
- Add AwsSecurityGroups to VPC type
- Update model version to v0.0.321
- Exposes
/api/clusters_mgmt/v1/aws_inquiries/sts_account_roles
in the SDK
- Exposes
- Update model version v0.0.318
- Add
ImageOverrides
toVersion
type
- Add
- Windows: Update SSO CA
- Update model version v0.0.315
- Add DisplayName and Description properties to
BillingModelItem
- Add DisplayName and Description properties to
- Update model version v0.0.314
- Add new resources and a type for
BillingModelItem
- Add new resources and a type for
- Update model version v0.0.312
- Added support for
AddonInstallations
endpoints foraddons_mgmt
. - Updated APIs for
AddonStatus
,AddonStatusCondition
,AddonSubOperator
andAddonVersion
.
- Added support for
- Update model version v0.0.311
- Add a new resource to OSL clusters/cluster_log
- Modify SelfAccessReview to return IsOCMInternal field
- Redact aws access and secret access keys from debug logs
- Update model version v0.0.309
- Modify access review response to include
is_ocm_internal
field. - Add the remainder of cluster-autoscaler parameters.
- Modify access review response to include
- Update model version v0.0.307
- Move
PrivateHostedZoneID
andPrivateHostedZoneRoleARN
toaws_type
resource
- Move
- Update model version v0.0.306
- Fix upgrade related constants JSON output to align with existing values
- Update model version v0.0.305
- Add
PrivateHostedZoneID
andPrivateHostedZoneRoleARN
tocluster_type
resource
- Add
- Update model version v0.0.304
- Add upgrade related constants also for
NodePoolUpgradePolicy
. - Change DNS domain field names.
- Add upgrade related constants also for
- Update model version v0.0.303
- Add upgrade related constants.
- Update model version v0.0.302
- Add property
MarketplaceGCP
tobilling_model_type
inclusters_mgmt
andaccounts_mgmt
- Document
GovCloud
,KMSLocationID
andKMSLocationName
fields toCloudRegion
- Document
fetchRegions=true
tocloud_providers
- Add property
- Update model version v0.0.301
- Update name for
ClusterStsSupportRole
resource and type toStsSupportJumpRole
- Update name for
- Update model version v0.0.300
- Add
UserDefined
in dns domain resource
- Add
- Update model version v0.0.299
- OCM-209 | feat: Add cluster autoscaler API resources
- OCM-209 | feat: Add autoscaler locator in cluster resource
- Prevent connection leak in retry wrapper
- Update model version v0.0.297
- Add managed ingress attributes
- Fix
fetchLabels
andfetchAccounts
url parameter names - Add
ClusterStsSupportRole
resource and type
- Update model version v0.0.296
- Add json annotation to
DeleteAssociatedResources
parameter in account resource
- Add json annotation to
- Update model version v0.0.294
- Add
DeleteAssociatedResources
locator to account resource
- Add
- Update model version v0.0.295
- Update
ReservedAt
toReservedAtTimestamp
in dns domain type
- Update
- Update metamodel version 0.0.59:
- Honor
@http
annotation for query parameters
- Honor
- Update model to version v0.0.293
- Add label list to OSDFM cluster request payloads
- Replace references to labels in OSDFM cluster structs with the labels themselves
- Fix typos in OSDFM cluster Label struct fields
- Add HashedPassword field to clusters_mgmt to provide encrypted value
- Add cluster autoscaler structs
- Update model version v0.0.291
- Add Reason to access review responses
- Enable users to provide both hashed and plain-text passwords
- API model for network verification
- Update model version v0.0.290
- Rename
MachineTypeRootVolume
toRootVolume
- Put
RootVolume
inClusterNodes
- add contracts to cloud accounts (#765)
- Rename
- Update model version v0.0.289
- Add Load balancer type to Ingress model
- remove unused API endpoints
- Update model version v0.0.288
- Add
DNSDomains
resource to theroot_resource
. - Complete OSD FM api for SDK usage.
- Add
- Update model version v0.0.287
- Add Htpasswd to Cluster
- Update model version v0.0.286
- Add MachineTypeRootVolume to MachinePool
- Update model version v0.0.285
- Changed DNS Domain from Class to a Struct.
- Change dns domain type to class and remove ID.
- Update model version v0.0.282
- Changing parameter name from HttpTokensState to Ec2MetadataHttpTokens
- Update model version v0.0.281
- Add
RootVolume
of typeMachineTypeRootVolume
toMachineType
type.
- Add
- Update model version v0.0.280
- Add
HttpTokensState
toAWS
resource.
- Add
- Windows: Update API CA
- Windows: Update SSO CA
- Update model version v0.0.279
- Add
AuditLog
toAWS
resource. - Add
RoleArn
attribute to theAuditLog
model.
- Add
- Update model version v0.0.278
- Add InflightChecks locator to cluster resource
- Add BillingAccountID to AWS model
- Update model version v0.0.276
- Add delete method to
Account
resource. - Add
tuning_configs
endpoints. - Add
tuning_configs
field to Node Pools.
- Add delete method to
- Update model version v0.0.275
- Add pending delete cluster API.
- Update model version v0.0.274
- Add
Subnets
property to the CloudProviderData model.
- Add
- Update model version v0.0.273
- update metamodel version 0.0.57
- remove circular dependencies from clusters mgmt
- Update model to v0.0.272
- adding quota version
- Update model to v0.0.271
- Adding
version_inquiry
endpoint to Managed Services.
- Adding
- Update model to v0.0.270
- adding quota auth to root resource model
- Update model to v0.0.269
- Add
DeleteProtection
resource toCluster
resource. - adding quota auth models
- Add
- Update model to v0.0.268
- Replace
OidcConfigId
forOidcConfig
inSTS
resource.
- Replace
- Update model to v0.0.267
- Add
OidcConfigId
toSTS
resource. - Remove
OidcPrivateKeySecretArn
fromSTS
resource.
- Add
- Update model to v0.0.266
- Adjust
Oidc Configs
endpoints.
- Adjust
- Update model to v0.0.265
- Rename
HypershiftEnabled
boolean toHostedControlPlaneEnabled
inVersion
Type model.
- Rename
- Update model to v0.0.264
- Add
Hosted Oidc Configs
endpoints.
- Add
- Update model to v0.0.263
- Add
HypershiftEnabled
boolean toVersion
Type model.
- Add
- Update model to v0.0.262
- Add
Control Plane Upgrade Scheduler
endpoints.
- Add
- Update to model v0.0.261
- Add
commonAnnotations
andcommonLabels
to addons
- Add
- Update to Addon structs and openapi.json for supporting
commonAnnotations
commonLabels
- Update to model v0.0.260
- Add
ManagedPolicies
field to theSTS
type model.
- Add
- Update to model v0.0.259
- Add master and infra instance types to cluster nodes
- Update to model v0.0.258
- Export cluster name for mgmt, mgmt_parent, and svc clusters
- Update to model v0.0.257
- Add
ByoOidc
type to Cluster type model - Add addon upgrade policy to clusters_mgmt
- Add
Labels
andTaints
to NodePool type
- Add
- Update to model v0.0.256
- Add
LogType
field to Cluster Log type model - Fix Addon status type and value constants
- Add
- Update to model v0.0.255
- Add
Version
field to node pool
- Add
- Update to model v0.0.254
- Add
PrivateLinkConfiguration
type with related endpoints
- Add
- Update to model v0.0.253
- Update Permission resource attributes
- Rename ResourceType to Resource
- Update Permission resource attributes
- Update to metamodel 0.0.57
- Update to model v0.0.252
- Update
STS
resource attributes- Remove
BoundServiceAccountSigningKey
- Remove
BoundServiceAccountKeyKmsId
- Rename
BoundServiceAccountKeySecretArn
toOidcPrivateKeySecretArn
- Remove
- Update
- Update to model v0.0.251
- Update
NodePool
with status attributes - Added
current_compute
attribute inClusterStatus
for hosted clusters. - Added missing variable to
addon environment variable
for addons mgmt
- Update
- Update to model v0.0.250
- Add
Addon Inquiries API
toaddons_mgmt
- Add
- Update to model v0.0.249
- Add
BoundServiceAccountKeySecretArn
attribute to theSts
model.
- Add
- Update to model v0.0.248
- Add
AwsEtcdEncryption
type model and reference fromAWS
. - Add
Enabled
attribute toSTS
model.
- Add
- Update to model v0.0.247
- Corrected
Metrics
type onDeletedSubscription
- Corrected
- Update to model v0.0.246
- Add Search to
Capabilities
resource
- Add Search to
- Update to model v0.0.245
- Add
BoundServiceAccountKeyKmsId
attribute to theSts
model.
- Add
- Update to model v0.0.244
- Add
ARN
attribute to theAWSSTSPolicy
model.
- Add
- Update to model v0.0.243
- Add
BoundServiceAccountSigningKey
attribute to theSts
model.
- Add
- Update to model v0.0.242
- Add
AddonNamespace
resource model. - Add
CommonLabels
attribute to theAddon
model. - Add
CommonAnnotations
attribute to theAddon
model. - Add
MachineType
locator onMachineTypes
model.
- Add
- Update to model v0.0.241
- Add
DeletedSubscriptions
- Add
AddonCluster
- Add
AddonStatus
- Add
- Update PR check to include go v1.19
- Update goimports to v0.4.0
- Update to model v0.0.240
- Fix
AddonConfig
onAddonConfigType
resource model.
- Fix
- Update to model 0.0.239
- Fixes for
NodePoolAutoScaling
andAWSNodePool
.
- Fixes for
- Update to model 0.0.238
NodePool
fixes.
- Update to model 0.0.237
- Add
NodePool
resource types. - Add
NodePools
locator toCluster
type.
- Add
- Update to model 0.0.236
- Add extra fields to label model:
- Type
- ManagedBy
- AccountID
- SubscriptionID
- OrganizationID
- Add extra fields to label model:
- Update to model 0.0.235
- Add
capabilities
resource model.
- Add
- Update to model 0.0.233
- Add SupportsHypershift property to CloudRegion model.
- Update to model 0.0.232
- Modify
availabilityZone
property in CloudProviderData model fromstring
to[]string
.
- Modify
- Update to model 0.0.231
- Add
AvailabilityZone
property to CloudProviderData model. - Add
Public
property to Subnetwork model.
- Add
- Update to model 0.0.230
- Add creation timestamp and modification timestamp to provision shard
- Add pull secret for addon version
- Add addon secret props for addon version config
- Add additional catalog sources for addon version
- Add addon parameter condition
- Update to model 0.0.229
- Add Addon Management models
- Add GCP Encryption Keys to cluster model
- Add client for Fleet Management service
- Add client for Addons Management service
- Update to model 0.0.228
- Add hypershift endpoint with its ManagementCluster.
- Align hypershift case usage.
- [Hypershift] Expose /manifests
- Added expiry setting to managed service clusters.
- Added Manifests to external_configuration.
- Add marketplace specific enum for clusters mgmt
- Add Search method to ProvisionShards
- Windows: Update CA
- Update to model 0.0.223:
- Add Version property to CloudProviderData model.
- Add InfraID property to Cluster model.
- Drop deprecated DisplayName property from ClusterRegistration model.
- Add ConsoleUrl and DisplayName properties to ClusterRegistration model and correct documentation.
- Update to model 0.0.220:
- Add
ManagedBy
property in RoleBinding type
- Add
- Update to model 0.0.219:
- Add billing model to addon installations
- Update to model 0.0.218:
- Change provision shard to include kube client configurations and server URL.
- Update to model 0.0.217:
- Change provision shard to include kube client configurations.
- Add GCP volume size to flavour API.
- Add fleet manager related structures and API.
- Update to model 0.0.215:
- Add hypershift config to provision shard API.
- Update to model 0.0.214:
- Add locator
label
to Generic Labels resource.
- Add locator
- Update to model 0.0.213:
- Add update function to provision shard API.
- Update to model 0.0.212:
- Add status to provision shard API.
- Update to model 0.0.211:
- Remove
DisplayName
field from Cluster model. - Add API for adding and removing a provision shard.
- Remove
- Update to model 0.0.209:
- Add
capabilities
field to account type.
- Add
- Update to model 0.0.208:
- Add
delete
method to registryCredentials type.
- Add
- Update to model 0.0.207:
- Add
Subnets
field to machinePool type.
- Add
- Update to model 0.0.206:
- Add
ExcludeSubscriptionStatuses
field to ResourceReview type. - Add
dry_run
flag to ClusterDeleteRequest type.
- Add
- Update to model 0.0.205:
- Add
BillingMarketplaceAccount
field to ReservedResource type.
- Add
- Update to model 0.0.204:
- Remove volume type from flavour
- Add Network Configuration for Managed Services
- Update to model 0.0.203:
- Add
MarketplaceAWS
,MarketplaceAzure
,MarketplaceRHM
billing models.
- Add
- Update to model 0.0.202:
- Add
CloudAccount
type. - Add
CloudAccounts
field to QuotaCost type. - Add
BillingMarketplaceAccount
field to Subscription type.
- Add
- authentication: Allow client credential grants with basic auth
- Update to model 0.0.201:
- Adding groups claim to openID IDP
- Update to model 0.0.200:
- Add
hypershift.enabled
field to the cluster type.
- Add
- Update to model 0.0.199:
- Fix cred request api model parameters
- Update to model 0.0.198:
- Add cred request to api model
- Add AWSRegionMachineTypes endpoint to api model
- windows: Update certificates
- Update to model 0.0.197:
- Change inflight check type Details field to Interface
- Update to model 0.0.196:
- Added Machine Pool Security Group Filters for Machine Pools and Cluster Nodes
- Drop RoleARN from AddOnInstallation
- Update to model 0.0.195:
- Added Import method to the HTPasswd IDP user collection.
- Added credential request type and updated the addon type to include it
- Update to model 0.0.194:
- Added availability zone fields to managed service cluster struct.
- Update to model 0.0.193:
- Add limitedSupportReasonCount to cluster status struct.
- Add inflight check API.
- Update to model 0.0.191:
- Fix JSON representation of log severity.
- Update to model 0.0.190:
- Fix JSON names of identity provider types.
- Add enable minor version upgrades flag to upgrade policy.
- Update to model 0.0.189:
- Added QuotaRules to ocm-sdk-go
- Added no_proxy field to the proxy project
- Added errors resource.
- Added errors support for status-board.
- Add
web-rca
examples. - Update to metamodel 0.0.53:
- Don't consider
Status
andError
built-in request parameters.
- Don't consider
- Update to metamodel 0.0.54:
- Remove generation of experimental server code.
- Update to model 0.0.188:
- Add Status query param for incidents resource.
- Update to model 0.0.187:
- Add new
web-rca
service.
- Add new
- Update to model 0.0.186:
- Add ManagementCluster to ProvisionShard
- Update to model 0.0.185:
- Fixes to Cloud Resources endpoints.
- Update to model 0.1.184:
- Adding Cloud Resources endpoints.
- Update to model 0.1.183:
- Added field for parameters to be specified for managed services.
- Update to model 0.1.182:
- Adding
service_mgmt
service.
- Adding
- Update to model 0.0.181:
- Add aws sts policy
- Add ReleaseImage to Version
- Update to model 0.0.180:
- Add CloudProvider info to ProvisionShards.
- Update to model 0.0.179:
- Fix cluster logs URL, should be
cluster_logs
instead ofcluster_logs_uuid
.
- Fix cluster logs URL, should be
- Update to metamodel 0.0.52:
- Add support for annotations.
- Add
@json
and@http
annotations. - Add
@go
annotation. - Add original text to names.
- Add
Impersonate
method to support theImpersonate-User
header.
- Update to model 0.0.178:
- Add
managed_service
field to add-on type. - Add
credentials_secret
field to add-on type. - Add
region
field to provision shard.
- Add
- Update to model 0.0.177:
- Fix update method of environment endpoint, should be
Update
instead ofPatch
. - Remove unimplemented
POST /api/service_logs/v1/cluster_logs/clusters/{uuid}/cluster_logs
method.
- Fix update method of environment endpoint, should be
- Update to model 0.0.176
- adding new endpoint for 'environment'
- Update to model 0.0.175
- adding new apis for addon config attribute
- adding list of requirements to addon parameter options
- adding name fields to VPCs and Subnetworks
- rename addon env object
- Update to model 0.0.174
- adding rhit_account_id to Account class
- Update to model 0.0.173:
- addons: Support attributes necessary for STS.
- Add ProductIds param to Status Resource.
- Add Role bindings to Subscription.
- Update to model 0.0.172:
- Remove deprecated
SKUs
endpoint. - Remove deprecated quota summary resource and type.
- Add QuotaVersion to ClusterAuth.
- Allow adding/removing operator roles.
- Remove deprecated
- Update to metamodel 0.0.51:
- Check for
io.EOF
before trying to parse response body.
- Check for
- Update to model 0.0.170:
- Add
ServiceInfo
type to status board service.
- Add
- Update to metamodel 0.0.50:
- Fix format of date query parameters so that it is RFC3339.
- Update to model v0.0.169
- Version gate type: Add warning message field
- Install metamodel with
go install
- Update to model v0.0.168
- Fix description of various API attributes
- OVN: Add network type selection
- adding field to hold validation error message
-
Update to version 4 of JWT library.
Note that this is a backwards compatibility breaking change because the
jwt.Token
type is used as parameter in theauthentication.ContextWithToken
andauthentication.TokenFromContext
methods. If you are using those methods then you will have to change your code to importgithub.com/jwt-go/jwt/v4
instead ofgithub.com/jwt-go/jwt
. -
Update to Ginkgo 2.
This change affects only the tests, but if you are using Ginkgo in your project and you are still using version 1 then you may find issues when running the
ginkgo
command because both versions of the library will be included in your tests binaries and both will try to use theflag
package to create conflicting command line flags. If that is the case the best approach is to update your project go use version 2 as well.
- Update to model 0.0.167:
- Change field name in version gate agreement link to version gate.
- Update to model 0.0.166:
- Change version gate agreement URL.
- Update to model 0.0.165:
- Move version gates to be top level resource.
- Add version raw id prefix to version gates.
- Update version of JSON iterator.
- Update SQL drivers.
- Don't use github.com/ghodss/yaml
- Require Go 1.16
- Update to model 0.0.163:
- Add support for deleting version gate.
- Update to model 0.0.162:
- Add support for adding version gate.
-
Update to metamodel 0.0.46:
- Remove unused imports.
- Check result of
Flush
method. - Cancel poll context.
- Avoid some ineffectual assignments.
- Explicitly use
jsoniter
package selector.
-
Update to model 0.0.161:
- Support for version gate agreements.
- Update to model 0.0.160:
- Change version gates URL.
- Update to model 0.0.159:
- Support for version gates.
- MatchJQ should require at least one result
- Update to model 0.0.158:
- Adding subnetworks to vpc inquiry
- Add statuses path to service model, add some comments.
- [SDB-2509] Update OSL API schema to be compatible with ocm-sdk-go
-
Support pull-secret access token as a valid token.
-
Update to model 0.0.156:
- Add
updates
method to status board product resource. - Fix status get method of status board.
- Add
- Update to model 0.0.155:
- Add
status_board
service.
- Add
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.
- 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
andgithub.com/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.