Skip to content

Feature logging debug#207

Merged
DiogoFerrao merged 11 commits into
mainfrom
feature-logging-debug
Apr 9, 2024
Merged

Feature logging debug#207
DiogoFerrao merged 11 commits into
mainfrom
feature-logging-debug

Conversation

@DiogoFerrao
Copy link
Copy Markdown
Contributor

No description provided.

joaopalet and others added 11 commits March 28, 2024 15:48
* Implement new print package

* Integrate in first commands

* Update all tests

* Fix linter

* Rename some consts and methods

* Add debug logs in activate-service-account login

* Add unit tests

* Add one additional test case
…pectively) (#198)

* switch prints to p.Info and p.Output

* fix linting

* remove remaining prints

* update curl

* more mapping fixes

* address PR comments
* switch prints to p.Info and p.Output

* fix linting

* address PR comments

* change cmd.outstdout to p.outstdout
* Move confirmation prompt to Print package

* Update confirmationPrompt signature, use p.Cmd

* remove p.OutOrStdout, use cmd instead
* change spinner to print package

* generate docs

* remove duplicate statements
* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.11.0 (#180)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>

* Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#183)

Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Only write to config file when needed (#185)

* UX improvements (#187)

* add default to project list

* project list: improve implementation, add testing

* Fix examples in project list

* Add version column to plans in DSAs

* Add dns record data to list and describe

* minor improvements to code

* fix linting

* add docs

* change keyring testing

* address comments in PR

* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/postgresflex to v0.11.0 (#189)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>

* UX Improvements: fixes and improvements (#190)

* add default to project list

* project list: improve implementation, add testing

* minor improvements to code

* fix linting

* change keyring testing

* address comments in PR

* address PR comments

* generate docs

* Update internal/pkg/args/args.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* fix linting

---------

Co-authored-by: João Palet <joao.palet@outlook.com>

* Add support for SKE new credentials rotation flow (#186)

* SKE Credentials Rotation: start-rotation command (#179)

* initial start rotation command implementation

* update go mod, rename files, generate docs

* start-rotation update long description

* Improve start-rotation documentation

* SKE Credentials Rotation: complete-rotation command  (#181)

* initial complete rotation command

* complete rotation command: improve documentation

* improve documentation

* SKE Credentials Rotation: kubeconfig create command (#184)

* initial kubeconfig create command

* finish create command implementation, add testing

* fix linting, generate docs

* address PR comments

* extract funcs to utils, add testing

* improve function documentation

* fix linting

* address PR comments, minor improvements

* make utils testing work on all OSes

* SKE Credentials Rotation: fixes and improvements (#188)

* improve docs

* Improve documentation, address acceptance comments

* fix testing, finish renaming filepath flag

* SKE Credentials Rotation: deprecate old commands (#191)

* deprecate describe and rotate commands

* improve deprecation messages, add docs

* SKE Credentials Rotation: deprecate old commands improvements (#192)

* remove example cluster name from deprecation message

* address comments

* UX improvements: update project describe help (#193)

* update project describe examples

* generate docs

* Onboard PostgreSQL Flex force delete (#194)

* update create examples to existing flavor

* add the --force flag to delete command

* generate docs

* add forcedeleteinstance waiter

* extract deletion logic to function, test it. Address PR comments

* fix linting, generate docs

* rename util function

* update sdk version

* change new methods to print package

* update testing to include verbosity, update docs

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: stackit-pipeline <142982727+stackit-pipeline@users.noreply.github.com>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.11.0 (#180)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>

* Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#183)

Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Only write to config file when needed (#185)

* UX improvements (#187)

* add default to project list

* project list: improve implementation, add testing

* Fix examples in project list

* Add version column to plans in DSAs

* Add dns record data to list and describe

* minor improvements to code

* fix linting

* add docs

* change keyring testing

* address comments in PR

* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/postgresflex to v0.11.0 (#189)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>

* UX Improvements: fixes and improvements (#190)

* add default to project list

* project list: improve implementation, add testing

* minor improvements to code

* fix linting

* change keyring testing

* address comments in PR

* address PR comments

* generate docs

* Update internal/pkg/args/args.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* fix linting

---------

Co-authored-by: João Palet <joao.palet@outlook.com>

* Add support for SKE new credentials rotation flow (#186)

* SKE Credentials Rotation: start-rotation command (#179)

* initial start rotation command implementation

* update go mod, rename files, generate docs

* start-rotation update long description

* Improve start-rotation documentation

* SKE Credentials Rotation: complete-rotation command  (#181)

* initial complete rotation command

* complete rotation command: improve documentation

* improve documentation

* SKE Credentials Rotation: kubeconfig create command (#184)

* initial kubeconfig create command

* finish create command implementation, add testing

* fix linting, generate docs

* address PR comments

* extract funcs to utils, add testing

* improve function documentation

* fix linting

* address PR comments, minor improvements

* make utils testing work on all OSes

* SKE Credentials Rotation: fixes and improvements (#188)

* improve docs

* Improve documentation, address acceptance comments

* fix testing, finish renaming filepath flag

* SKE Credentials Rotation: deprecate old commands (#191)

* deprecate describe and rotate commands

* improve deprecation messages, add docs

* SKE Credentials Rotation: deprecate old commands improvements (#192)

* remove example cluster name from deprecation message

* address comments

* UX improvements: update project describe help (#193)

* update project describe examples

* generate docs

* Onboard PostgreSQL Flex force delete (#194)

* update create examples to existing flavor

* add the --force flag to delete command

* generate docs

* add forcedeleteinstance waiter

* extract deletion logic to function, test it. Address PR comments

* fix linting, generate docs

* rename util function

* update sdk version

* Re-add APT installation instructions with new domain (#195)

* Revert "Temporarily remove APT installation instructions from guide (#162)"

This reverts commit 64faf39.

* Replace APT repo URL

* fix(deps): update module golang.org/x/oauth2 to v0.19.0 (#197)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>

* fix(deps): update module golang.org/x/mod to v0.17.0 (#196)

* Update module golang.org/x/mod to v0.16.0

* fix(deps): update module golang.org/x/mod to v0.17.0

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>

* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#199)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: stackit-pipeline <142982727+stackit-pipeline@users.noreply.github.com>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
* move warnings to verbosity package

* Remove Warnf, change Warn and Error to Printf formatting

* remove new line at the end of Warn output, callers have to add it themselves (printf behavior)
@DiogoFerrao DiogoFerrao merged commit d2e8240 into main Apr 9, 2024
@DiogoFerrao DiogoFerrao deleted the feature-logging-debug branch April 15, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants