Skip to content
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

Sthwang/make port optional #2

Merged
merged 76 commits into from
Jan 17, 2024
Merged

Conversation

sthwang-metal
Copy link
Owner

No description provided.

rizzza and others added 30 commits August 28, 2023 22:24
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
* new manual event hooks

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* update tests for auth-relationships

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* relationships

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* add location to manual hook

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* finesse manual hook

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
…#200)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ographer#216)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
* Add configuration to define restricted ports which the API cannot create for a loadbalancer

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Cleanup

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Use validate func in schema to check restricted ports

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Fix lints

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

---------

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
… change message (infratographer#231)

* query all for hooks and add additionalSubjects to msg

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* origin delete additional subjects

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
…#225)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ratographer#146)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ratographer#236)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…tgres to v0.24.1 (infratographer#237)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ographer#223)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* add more checks to resolvers

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* add tests

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* add more tests

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* update permission checks

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* update query method

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* remove tests

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* update error

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

---------

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
…nfratographer#242)

* generate :allthethings:

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* handle case to populate multiple location ids

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* inverted logic in port delete hook

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
…pher#230)

* move loadbalancer delete auth relationships into resolver

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* bump to go 1.21 to get context.WithoutCancel

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* disable entc extension for generating hooks

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* use go 1.21 context.WithCancel for delete auth relationship

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* testcontainers bug fix, back to go.mod version

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
* remove old

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* loadbalancer error logs, do no expose internals

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* origin error logs, do no expose internals

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* handle invalid gidx

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* pool error logs, do no expose internals

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* port error logs, do no expose internals

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* provider error logs, do no expose internals

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* minor logging additions

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* rollback error log

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* last look

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
* write manualhooks tests

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* add init script

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* get init script

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* terminate container only if running

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* refactor setup and teardown

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* remove leftover testdata

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* refactor to re-use code

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* use pointer receivers

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* use TestMain pragma, swap ifErrPanic, add t to sub

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* add more assertions, add createXXX tests

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* less code

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

---------

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
* Add ability to set weight for an origin

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Linters gonna lint

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* add weight to origin node

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* add migration to add origin weight column

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* postgres compatible

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* change to int instead of bigint

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

---------

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* refactor setup and teardown

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* refactor builders

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* generate code

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* use TestMain pragma, swap ifErrPanic, add t to sub

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

---------

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
Co-authored-by: Matt Siwiec <rizzza@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…tgres to v0.25.0 (infratographer#246)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
tylerauerbeck and others added 29 commits November 20, 2023 22:13
…fratographer#281)

* Adds ability to limit number of loadbalancers an owner can create

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Fix data race in test

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

---------

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
* metadata node

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* add client query for node metadata

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
…#284)

* add ip address metadata types

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* flexible metadata helper

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* add load-balancer-api metadata source

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* make port name optional

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

* fix unit tests

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>

---------

Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
* do not return internal server error on failure to update metadata

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* add deployment extraEnvFrom for additional environment

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
* check permissions against ownerID, rather than resource

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* establish permissions auth-relationship in ports

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
…#293)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ographer#280)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…grapher#286)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…her#285)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…her#301)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ographer#302)

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
…nfratographer#299)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…pher#308)

* ignore go work files

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* oidc=false

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

* ensure additionalSubjects are present in port create when no pool ids associated

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>

---------

Signed-off-by: Matt Siwiec <rizzza@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…nfratographer#310)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…grapher#309)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Siwiec <rizzza@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…her#306)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@sthwang-metal sthwang-metal merged commit 47cd740 into main Jan 17, 2024
16 of 17 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.

3 participants