Commit 0949071
Onboard first set of Load Balancer functionality (#260)
* initial setup for the load balancer (#252)
* initial setup for the load balancer
* generate docs
* add load-balancer to set and unset config commands
* Onboard Load Balancer generate-payload command (#250)
* onboard load-balancer generate-payload command
* add go mod
* generate docs
* remove version from the default payload which will be used for create commands
* Update description
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
* Update description
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
* split create and update payloads
* move default create payload to a const
* delete unused utils files
* update docs
* remove redundant var declaration
---------
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
* LoadBalancer Describe, List and Quota commands (#254)
* initial setup for the load balancer
* generate docs
* Describe, list, quota
* Remove duplicate
* Uniformize descriptipnm
* Add tables for listeners and target pools
* Improve column name
---------
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
* Add config key (#261)
* Fix LB describe (#262)
* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#257)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
* Postgresflex backup command improvements (#259)
* change title to created at
* add note about current backup schedule in long description
* add backup schedule to the instance describe output
* Update internal/cmd/postgresflex/backup/update-schedule/update_schedule.go
Co-authored-by: João Palet <joao.palet@outlook.com>
* update docs
---------
Co-authored-by: João Palet <joao.palet@outlook.com>
* Add config key
* Fix nil pointer exception
---------
Co-authored-by: stackit-pipeline <142982727+stackit-pipeline@users.noreply.github.com>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
* Fixes to lb list and describe (#265)
* Fixes to lb list and describe
* Add separator
* Remove columns
* Remove separators
* remove separator
* Merge changes from main (#269)
* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#257)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
* Postgresflex backup command improvements (#259)
* change title to created at
* add note about current backup schedule in long description
* add backup schedule to the instance describe output
* Update internal/cmd/postgresflex/backup/update-schedule/update_schedule.go
Co-authored-by: João Palet <joao.palet@outlook.com>
* update docs
---------
Co-authored-by: João Palet <joao.palet@outlook.com>
* Update changelog generation implementation (#263)
* change recovery date format (#266)
* update description and generate docs (#267)
* Add debug logs to the CLI (#258)
* Initial debug implementation
* improve implementation
* remove unused code
* add documentation
* address PR comments
* fix linting
* sort map keys before building debug string
* Add testing to debug string builders
* address PR comments
* improve debug string construction
* Debug the input model on all commands
* add input model debugging to contribution guidelines
---------
Co-authored-by: stackit-pipeline <142982727+stackit-pipeline@users.noreply.github.com>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
* Load balancer delete command (#270)
* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#257)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
* Postgresflex backup command improvements (#259)
* change title to created at
* add note about current backup schedule in long description
* add backup schedule to the instance describe output
* Update internal/cmd/postgresflex/backup/update-schedule/update_schedule.go
Co-authored-by: João Palet <joao.palet@outlook.com>
* update docs
---------
Co-authored-by: João Palet <joao.palet@outlook.com>
* Update changelog generation implementation (#263)
* change recovery date format (#266)
* Delete loadbalancer command
* Update internal/cmd/load-balancer/delete/delete.go
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
* Update internal/cmd/load-balancer/delete/delete_test.go
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
* Changes after review
---------
Co-authored-by: stackit-pipeline <142982727+stackit-pipeline@users.noreply.github.com>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
* Onboard load balancer create & update commands (#268)
* onboard-create-command
* remove fields that are not needed for create
* remove fields that are not needed for create from default payload
* remove privateAddress from update payload (read only field)
* update generate payload to remove read-only fields from updatePayload
* onboard update load balancer command
* update description of update command
* Update internal/cmd/load-balancer/create/create.go
Co-authored-by: João Palet <joao.palet@outlook.com>
* Update internal/cmd/load-balancer/create/create.go
Co-authored-by: João Palet <joao.palet@outlook.com>
* add GetProjectName
* change instance name to load balancer name
* set listener name to nil
* abstract set listener name to nil in a function // add unit test
* add debug logs to the create command
* add debug logs to the generate payload command
* add debug logs to the update command
* Update test func name
Co-authored-by: João Palet <joao.palet@outlook.com>
* add additional listener to the unit test
---------
Co-authored-by: João Palet <joao.palet@outlook.com>
* LoadBalancer observability-credentials commands (#264)
* Lb observability-credentials add command
* Describe and update commands
* Improve update command
* List command
* Generate docs
* Add debug logs, uniformize descriptions
* Fix unit tests
* Update internal/cmd/load-balancer/observability-credentials/observability-credentials.go
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
* Update internal/cmd/load-balancer/observability-credentials/delete/delete_test.go
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
---------
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
* Nil checks on lb describe (#273)
* Fix examples (#275)
* Implement `lb target-pool add-target` command (#281)
* Add debug logs to list, describe and quota
* Add utils and tests
* Implement add-target command
* Fix lb list test
* Improvements after review
* Add docs
* Implement `lb target-pool remove-target` command (#283)
* Implement lb target-pool remove-target command
* Add util to get target name
* Generate docs
* Fix linter
* Make target pool name the argument and LB name a flag
* Update docs
* Load balancer target pool commands improvements (#294)
* Fix command example
* Add n shorthand to target-name flag
* Onboard load-balancer target-pool describe (#292)
* initial describe command implementation
* generate docs, fix linting
* remove unused vars
* rename flag
* generate docs
* rename vars
* address PR comments
* make JSON output match table
* Tidy go.mod
* Make pretty the default output for LB describe commands
* Prompt for password when adding credentials before prompt for confirmation
* Fix capitalization in example
* Add middleware to LB client if verbosity is debug
* change flag name in the example
* update docs
* Move password prompt before confirmation prompt in credentials update
* Make IP an argument in add-target and remove-target
* Support reading password from flag in add and update observablity credentials
* Add error description to LB describe table
* Update docs
* Improve examples of LB observability credentials commands
* Extend example
---------
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
Co-authored-by: stackit-pipeline <142982727+stackit-pipeline@users.noreply.github.com>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
Co-authored-by: João Palet <joao.palet@freiheit.com>1 parent b9dd3c8 commit 0949071
File tree
65 files changed
+8176
-3
lines changed- docs
- internal
- cmd
- config
- set
- unset
- load-balancer
- create
- delete
- describe
- generate-payload
- list
- observability-credentials
- add
- delete
- describe
- list
- update
- quota
- target-pool
- add-target
- describe
- remove-target
- update
- pkg
- config
- print
- services/load-balancer
- client
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+8176
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments