Skip to content

Releases: nutanix-cloud-native/prism-go-client

v0.5.1

09 Aug 16:36
6ec748d
Compare
Choose a tag to compare

[v0.5.1] - 2024-08-09

Changed

  • Updated the v3 Subnet spec struct to match latest swagger spec

v0.5.0

29 Jul 17:00
58c0121
Compare
Choose a tag to compare

Added

  • Added v4 Categories beta APIs to v4 client
  • Added v4 VolumeGroups beta APIs to v4 client
  • Added a cache for v4 clients in v4 package

Changed

  • Updated v4 API clients from v4 alpha to v4 beta APIs
  • Handle trust bundle in v4 client cache GetOrCreate by setting VerifySSL

v0.4.0

03 May 13:52
15db883
Compare
Choose a tag to compare

Added

  • Added support for v4 client creation.
  • Added support for getting information about an AZ given a uuid.
  • Added support for getting a projection of attributes of entities using the 'groups' API endpoint.
  • Added support for creating, deleting, listing, and getting the status of recovery plan jobs.
  • Add optional function options for the NewKarbonAPIClient constructor
  • Add ClusterRegistration interface in karbon package
  • Add ClusterRegistration SetInfo and Cluster Addon SetInfo APIs
  • Added support for specifying volume groups by category in a recovery plan create request.
  • Added support for specifying primary and recovery clusters in a recovery plan.
  • Added WithUserAgent client option for v3 client constructor.
  • Added Cache for v3 Clients in v3 package.

Changed

  • Change the MetaService interface methods to take context.Context as a parameter
  • Local environment provider now fetches port from NUTANIX_PORT environment variable
  • Add logic to internal.Client for auto retry once after refreshing auth cookie on a 401 response in case of session auth.

Removed

  • remove the unexported method from the v3 service interface enabling mocking

v0.3.4

24 Nov 18:49
4b6fb61
Compare
Choose a tag to compare

Changed

  • Bugfix: Stop explicit base64 decoding of BinaryData from ConfigMap in Kubernetes env provider

v0.3.3

24 Nov 10:15
634dac6
Compare
Choose a tag to compare

Changed

  • Kubernetes env provider can now read the trust bundle from both BinaryData and Data

v0.3.2

04 Nov 09:09
210115b
Compare
Choose a tag to compare

Changed

  • Bugfix: Fix the kubebuilder enum annotations for NutanixTrustBundleKind

v0.3.1

03 Nov 18:22
57a9f7f
Compare
Choose a tag to compare

Added

  • Add AdditionalTrustBundle property to the NutanixPrismEndpoint struct in environment/credential/types.go
  • Add AdditionalTrustBundle property to the ManagementEndpoint struct in environment/types/types/go
  • Add WithPEMEncodedCertBundle ClientOption for handling PEM Blocks in the v3 Constructor

Changed

  • Add license header to generated file and add a makefile target for generate
  • NUTANIX_INSECURE and NUTANIX_ADDITIONAL_TRUST_BUNDLE environment variables are used to hydrate environment/local provider
  • Store the certpool in the client to allow injecting multiple certificates using the WithCertificate option
  • Use hashicorp/go-cleanhttp as the underlying http client constructor

v0.3.0

27 Sep 13:41
bd4aa73
Compare
Choose a tag to compare

Added

  • Added the "environment" package which provides abstraction for retrieving settings like API endpoints, credentials and their sources to evolve independently from clients
  • Add logr based configurable logging for internal.NewClient
  • Add WithCertificate functional option for v3 client constructor
  • Add WithRoundTripper functional option for v3 client to add custom interceptors
  • Add WithLogger functional option for v3 client
  • Add support for Nutanix-style credentials to "secretdir" environment provider

Changed

  • The http client has been moved from pkg/nutanix to repo root
  • The fc stubs have been moved from pkg/nutanix/fc to fc
  • The foundation stubs have been moved from pkg/nutanix/foundation to foundation
  • The karbon stubs have been moved from pkg/nutanix/karbon to karbon
  • The v3 stubs have been moved from pkg/nutanix/v3 to v3
  • The underlying http client is moved from root package to internal
  • The root package is renamed from prism_go_client to prismgoclient
  • Modify NewClient constructor to use functional options
  • NewRequest and NewAuthRequest methods on internal.Client don't admit context in params
  • v3 client constructor now takes functional options as parameters
  • v3 client constructor returns error instead of failing silently
  • Add context to v3 interface method parameters to explicitly propagate context
  • Bugfix in secretdir environment provider for tolerating symlinks

Removed

  • remove internal.NewBaseClient constructor

v0.2.0

14 Jun 08:14
035dfbf
Compare
Choose a tag to compare

Added

  • Add the fc stubs from nutanix/terraform-provider-nutanix
  • Add the foundation stubs from nutanix/terraform-provider-nutanix
  • Add the karbon stubs from nutanix/terraform-provider-nutanix
  • Added GetCurrentLoggedInUser in pkg/nutanix/v3/v3_service.go

Changed

  • Updated the http client with the latest from github.com/nutanix/terraform-provider-nutanix
  • Updated the v3 stubs with the latest from github.com/nutanix/terraform-provider-nutanix
  • Updated the utils package with the latest from github.com/nutanix/terraform-provider-nutanix

Removed

  • Remove the compiled binary for the client from the source code
  • Remove debug logs from pkg/nutanix/client.go

v0.1.0

08 Jun 14:48
b9cadb9
Compare
Choose a tag to compare

Added

Changed

  • Change MessageResource.Details type from map[string]string and map[string]interface{} to interface{}