Skip to content

Releases: vmware-tanzu/tanzu-plugin-runtime

v1.4.5

05 Nov 18:56
0fe7714
Compare
Choose a tag to compare

Changes by Kind

Improvements

  • Support multiline = true to PromptConfig and be able to add multiline strings as prompt inputs. (#217, @gabbigum)
  • Hub unit test framework now sends back the GraphQL request it received for more thorough testing. This change breaks backwards-compatibility of the API used to write unit test for GraphQL: the Responder and EventGenerator types have a slightly different signature. (#206, @marckhouzam)

Dependencies

Added

Nothing has changed.

Changed

Nothing has changed.

Removed

Nothing has changed.

v1.4.4

12 Oct 12:57
d85a08f
Compare
Choose a tag to compare

Changes by Kind

✨ Enhancements

  • Fix DefaultTransport getting updated when creating Tanzu Hub Client (#215, @anujc25)

Dependencies

Added

Nothing has changed.

Changed

Nothing has changed.

Removed

Nothing has changed.

v1.4.3

30 Aug 20:19
Compare
Choose a tag to compare

Changes by Kind

✨ Enhancements

  • Add PrompOpt parameter to SelectConfig.Run() method. This allows SelectConfig to have behaviour similar to PromptConfig (#208, @gabbigum)
  • Support Self-Signed CA Cert and skip-cert-verify with Hub Client (#210, @anujc25)
  • GetCert API now accepts URI along with hostname (#210, @anujc25)

Dependencies

Added

Nothing has changed.

Changed

Nothing has changed.

Removed

Nothing has changed.

v1.4.2

08 Aug 18:57
Compare
Choose a tag to compare

Changes by Kind

🐛 Bug Fixes

  • Fix file lock issue on Windows (#204, @anujc25)
  • Make OperationName optional for Hub Client requests. Improvements to the Hub client unit test framework (#202, @anujc25)

📄 Documentation

Dependencies

Added

Nothing has changed.

Changed

Nothing has changed.

Removed

Nothing has changed.

v1.4.1

18 Jul 19:16
Compare
Choose a tag to compare

Changes by Kind

Miscellaneous

  • Remove dependency on github.com/juju/fslock library (#200, @prkalle)

Dependencies

Added

  • github.com/alexflint/go-filemutex: v1.3.0

Changed

Nothing has changed.

Removed

v1.4.0

11 Jul 19:26
88242b5
Compare
Choose a tag to compare

Changes by Kind

Feature

  • CommandMapEntry supports a RequiredContextType list, which controls whether the mapping should take effect based on the type of the active context. (#193, @vuil)
  • [Experimental] Add Subscription Support for the Tanzu Hub Client (#195, @anujc25)
  • [Experimental] Add Tanzu Hub Mock Server for Unit Testing (#191, @anujc25)

UX improvements

  • Enable multi-selection in Prompt and Select components. (#197, @vuil)
  • Fix OutputWriter Table to show rows when no headers are specified (#198, @anujc25)
  • Fix plugin command usage when the mission-control/operations target plugin remaps the commands (#199, @anujc25)
  • No longer show the invocation with the kubernetes target prefix in the help output. (#192, @marckhouzam)
  • Support Colors as part of the OutputWriter's Table output's field (#194, @anujc25)

Dependencies

Added

  • github.com/anujc25/tablewriter: v0.0.1
  • github.com/r3labs/sse/v2: v2.10.0
  • github.com/rivo/uniseg: v0.2.0
  • gopkg.in/cenkalti/backoff.v1: v1.1.0

Changed

Removed

  • github.com/olekukonko/tablewriter: v0.0.5

v1.3.0

08 May 16:24
Compare
Choose a tag to compare

Changes by Kind

Feature

  • Add support for plugin and command level mapping via PluginDescriptor's CommandMap (#164, #177, @vuil)
  • Add the new target operations (#163, @anujc25)
  • Added support to get kubeconfig for kubernetes context for GetKubeconfigForContext API (#162, @mpanchajanya)
  • Update GetKubeconfigForContext API to accept Project ID instead of Project Name (#173, @prkalle)
  • Update SetTanzuContextActiveResource API and GetTanzuContextActiveResource to use Project ID along with Project Name (#172, @prkalle)
  • Enhance GetTanzuContextActiveResource API to include organization name retrieval (#181, @prkalle)
  • Experimental: Add support to create the Tanzu Hub client (#175, @anujc25)

UX improvements

  • The spinner API has been updated to track all active spinners and stop them when the command ends or is terminated by the user. (#170, @chandrareddyp)
  • Fixes indent of multiline examples in usage and doc generation (#188, #189, #183 @vuil)
  • Remove the Upper casing of headers for the listtable output type and add padding (#169, @anujc25)
  • Add support for dynamic columns with the OutputWriter's TableOutputType output format (#168, @anujc25)
  • Fix usage string and aliases of help for commands involved in command-level mapping (#180, @vuil)

Miscellaneous

  • Set command displayname annotation when command is mapped (#165, @vuil)
  • Disable syncing of "tanzu" contexts between legacy and latest CLI configuration files (#187, @prkalle)
  • Ensure flags suffix is added to useline (#186, @vuil)
  • Ensure inherited flags are captured in generate-docs (#185, @vuil)

Notes to developers

  • Plugins should refrain from introducing their own custom indentation in any multiline Example fields of their commands because Example lines will always be indented in usage output by at least two 2 spaces.

Dependencies

Added

  • github.com/99designs/gqlgen: v0.17.44
  • github.com/Khan/genqlient: v0.7.0
  • github.com/agnivade/levenshtein: v1.1.1
  • github.com/alexflint/go-arg: v1.4.2
  • github.com/alexflint/go-scalar: v1.0.0
  • github.com/andreyvit/diff: c7f18ee
  • github.com/arbovm/levenshtein: 48b4e1c
  • github.com/bradleyjkemp/cupaloy/v2: v2.6.0
  • github.com/dgryski/trifles: dd97f9a
  • github.com/gorilla/websocket: v1.5.0
  • github.com/hashicorp/golang-lru/v2: v2.0.7
  • github.com/mitchellh/mapstructure: v1.5.0
  • github.com/sergi/go-diff: v1.3.1
  • github.com/sosodev/duration: v1.2.0
  • github.com/vektah/gqlparser/v2: v2.5.11
  • golang.org/x/telemetry: b75ee88

Changed

  • github.com/cpuguy83/go-md2man/v2: v2.0.2 → v2.0.3
  • github.com/google/uuid: v1.3.0 → v1.6.0
  • github.com/spf13/cobra: v1.7.0 → v1.8.0
  • github.com/stretchr/testify: v1.8.1 → v1.8.4
  • golang.org/x/crypto: v0.14.0 → v0.19.0
  • golang.org/x/mod: v0.9.0 → v0.15.0
  • golang.org/x/net: v0.17.0 → v0.21.0
  • golang.org/x/sync: v0.1.0 → v0.6.0
  • golang.org/x/sys: v0.13.0 → v0.17.0
  • golang.org/x/term: v0.13.0 → v0.17.0
  • golang.org/x/text: v0.13.0 → v0.14.0
  • golang.org/x/tools: v0.7.0 → v0.18.0

Removed

Nothing has changed.

v1.3.0-alpha.4

29 Apr 23:14
Compare
Choose a tag to compare
v1.3.0-alpha.4 Pre-release
Pre-release

Changes by Kind

Feature

  • Extend plugin mapping to command-level remapping. Introduce CommandMapEntry which replaces InvokedAs in PluginDescriptor. (#177, @vuil)
  • Enhance GetTanzuContextActiveResource API to include organization name retrieval (#181, @prkalle)
  • Fix generate-docs for plugins with command mapping directives (#183, @vuil)
  • Fix usage string and aliases of help for commands involved in command-level mapping (#180, @vuil)

Miscellaneous

  • Add support for dynamic columns with the OutputWriter's TableOutputType output format (#168, @anujc25)
  • Add the new target operations (#163, @anujc25)
  • Added support to get kubeconfig for kubernetes context for GetKubeconfigForContext API (#162, @mpanchajanya)
  • Remove the Upper casing of headers for the listtable output type and add padding (#169, @anujc25)
  • Set command displayname annotation when command is mapped (#165, @vuil)
  • The spinner API has been updated to track all active spinners and stop them when the command ends or is terminated by the user. (#170, @chandrareddyp)
  • Update GetKubeconfigForContext API to accept Project ID instead of Project Name (#173, @prkalle)
  • Update SetTanzuContextActiveResource API and GetTanzuContextActiveResource to use Project ID along with Project Name (#172, @prkalle)

Dependencies

Added

Nothing has changed.

Changed

Removed

Nothing has changed.

v1.3.0-alpha.3

19 Apr 23:54
Compare
Choose a tag to compare

Changes by Kind

Feature

  • Introduce two experimental fields in the PluginDescriptor, InvokedAs and SupportedContexttype to support plugin-level remapping (#164, @vuil)
  • Extend plugin mapping to command-level remapping. Introduce CommandMapEntry which replaces InvokedAs in PluginDescriptor.
  • (#177, @vuil)

Miscellaneous

  • Add null pointer checks in GetKubeconfigForContext API (#178, @prkalle)
  • Add support for dynamic columns with the OutputWriter's TableOutputType output format (#168, @anujc25)
  • Add the new target operations (#163, @anujc25)
  • Added support to get kubeconfig for kubernetes context for GetKubeconfigForContext API (#162, @mpanchajanya)
  • Remove the Upper casing of headers for the listtable output type and add padding (#169, @anujc25)
  • Set command displayname annotation when command is mapped (#165, @vuil)
  • The spinner API has been updated to track all active spinners and stop them when the command ends or is terminated by the user. (#170, @chandrareddyp)
  • Update GetKubeconfigForContext API to accept Project ID instead of Project Name (#173, @prkalle)
  • Update SetTanzuContextActiveResource API and GetTanzuContextActiveResource to use Project ID along with Project Name (#172, @prkalle)

Dependencies

Added

Nothing has changed.

Changed

Removed

Nothing has changed.

What's Changed

Full Changelog: v1.2.0...v1.3.0-alpha.3

v1.3.0-alpha.2

28 Mar 21:14
Compare
Choose a tag to compare
v1.3.0-alpha.2 Pre-release
Pre-release

Changes by Kind

Feature

  • Introduce two experimental fields in the PluginDescriptor, InvokedAs and SupportedContexttype to support plugin-level remapping (#164, @vuil)

Miscellaneous

  • Add support for dynamic columns with the OutputWriter's TableOutputType output format (#168, @anujc25)
  • Add the new target operations (#163, @anujc25)
  • Added support to get kubeconfig for kubernetes context for GetKubeconfigForContext API (#162, @mpanchajanya)
  • Set command displayname annotation when command is mapped (#165, @vuil)
  • Update GetKubeconfigForContext API to accept Project ID instead of Project Name (#173, @prkalle)
  • Update SetTanzuContextActiveResource API and GetTanzuContextActiveResource to use Project ID along with Project Name (#172, @prkalle)

Dependencies

Added

Nothing has changed.

Changed

Removed

Nothing has changed.