Skip to content

Onboard first set of Load Balancer functionality #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
May 8, 2024

Conversation

vicentepinto98
Copy link
Contributor

No description provided.

GokceGK and others added 7 commits April 26, 2024 14:41
* initial setup for the load balancer

* generate docs

* add load-balancer to set and unset config commands
* 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 <[email protected]>

* Update description

Co-authored-by: Vicente Pinto <[email protected]>

* 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 <[email protected]>
* 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 <[email protected]>
* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#257)

Co-authored-by: Renovate Bot <[email protected]>

* 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 <[email protected]>

* update docs

---------

Co-authored-by: João Palet <[email protected]>

* Add config key

* Fix nil pointer exception

---------

Co-authored-by: stackit-pipeline <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: GokceGK <[email protected]>
Co-authored-by: João Palet <[email protected]>
* Fixes to lb list and describe

* Add separator

* Remove columns

* Remove separators

* remove separator
@joaopalet joaopalet marked this pull request as draft April 30, 2024 15:13
@joaopalet
Copy link
Contributor

Do we still need this PR? We could merge all changes to main at once when all the stories are accepted, right?

@vicentepinto98
Copy link
Contributor Author

Do we still need this PR? We could merge all changes to main at once when all the stories are accepted, right?

Yes but we always need to open a PR, so it's the same as having it open from the start no?

@joaopalet
Copy link
Contributor

Yes but we always need to open a PR, so it's the same as having it open from the start no?

Ah ok, I was just checking if you were planning to merge this PR with some of the changes

joaopalet and others added 15 commits April 30, 2024 17:17
* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#257)

Co-authored-by: Renovate Bot <[email protected]>

* 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 <[email protected]>

* update docs

---------

Co-authored-by: João Palet <[email protected]>

* 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 <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: GokceGK <[email protected]>
Co-authored-by: Diogo Ferrão <[email protected]>
* fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.8 (#257)

Co-authored-by: Renovate Bot <[email protected]>

* 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 <[email protected]>

* update docs

---------

Co-authored-by: João Palet <[email protected]>

* 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 <[email protected]>

* Update internal/cmd/load-balancer/delete/delete_test.go

Co-authored-by: Diogo Ferrão <[email protected]>

* Changes after review

---------

Co-authored-by: stackit-pipeline <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: GokceGK <[email protected]>
Co-authored-by: João Palet <[email protected]>
Co-authored-by: Diogo Ferrão <[email protected]>
* 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 <[email protected]>

* Update internal/cmd/load-balancer/create/create.go

Co-authored-by: João Palet <[email protected]>

* 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 <[email protected]>

* add additional listener to the unit test

---------

Co-authored-by: João Palet <[email protected]>
* 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 <[email protected]>

* Update internal/cmd/load-balancer/observability-credentials/delete/delete_test.go

Co-authored-by: GokceGK <[email protected]>

---------

Co-authored-by: GokceGK <[email protected]>
* 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

* Add util to get target name

* Generate docs

* Fix linter

* Make target pool name the argument and LB name a flag

* Update docs
* Fix command example

* Add n shorthand to target-name flag
* 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
@DiogoFerrao DiogoFerrao marked this pull request as ready for review May 8, 2024 09:47
@joaopalet joaopalet changed the title Onboard LoadBalancer Onboard first set of Load Balancer functionality May 8, 2024
@joaopalet joaopalet merged commit 0949071 into main May 8, 2024
3 checks passed
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.

4 participants