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

feat: allow attaching firewalls to the server #221

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Conversation

jooola
Copy link
Member

@jooola jooola commented Aug 13, 2024

Closes #157

This allows to attach a list of firewalls using their names or the IDs.

@jooola jooola requested a review from a team as a code owner August 13, 2024 13:06
@jooola jooola requested a review from apricote August 13, 2024 13:06
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 43.75000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 33.69%. Comparing base (7bcfdcf) to head (5b8dded).
Report is 1 commits behind head on main.

Files Patch % Lines
builder/hcloud/step_create_server.go 46.66% 6 Missing and 2 partials ⚠️
builder/hcloud/config.hcl2spec.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #221      +/-   ##
==========================================
+ Coverage   33.56%   33.69%   +0.13%     
==========================================
  Files          12       12              
  Lines         727      739      +12     
==========================================
+ Hits          244      249       +5     
- Misses        454      459       +5     
- Partials       29       31       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apricote
Copy link
Member

A test for this would also be nice.

@jooola
Copy link
Member Author

jooola commented Aug 14, 2024

I added a global step test, but to really test this, I'd need to do a bigger refactor to break down the long step into smaller chunks.

I'll do this in a future PR.

@jooola jooola merged commit 73f10e4 into main Aug 14, 2024
10 checks passed
@jooola jooola deleted the server-firewalls branch August 14, 2024 08:56
jooola pushed a commit that referenced this pull request Aug 14, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.6.0](v1.5.4...v1.6.0)
(2024-08-14)


### Features

* allow attaching firewalls to the server
([#221](#221))
([73f10e4](73f10e4))


### Bug Fixes

* check if the image was found
([#223](#223))
([da3b49b](da3b49b)),
closes
[#222](#222)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

missing options to attach a firewall to the packer instance ?
2 participants