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] - implement AddressSet CRD and support in firewall controller #583

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AshleyDumaine
Copy link
Member

What this PR does / why we need it: Adds a new CRD that can be reused to construct LinodeFirewalls in case addresses are common between firewalls (e.g. common allowed hosts for control plane and worker node Firewalls)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@@ -70,6 +70,9 @@ type FirewallRule struct {
// +kubebuilder:validation:Enum=TCP;UDP;ICMP;IPENCAP
Protocol linodego.NetworkProtocol `json:"protocol"`
Addresses *NetworkAddresses `json:"addresses"`
// AddressSetRefs is a list of references to AddressSets
// If Addresses is present, AddressSetRefs will be ignored
AddressSetRefs []*corev1.ObjectReference `json:"addressSetRefs,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do these have to be mutually exclusive or could we do both?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do both if it's less confusing

@AshleyDumaine AshleyDumaine force-pushed the addrset-crd branch 2 times, most recently from d7c494e to 05cd652 Compare November 27, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants