Preliminary scaffolding

This commit is contained in:
2025-04-15 15:25:30 +02:00
parent 4c873ea723
commit 89a811bef9
8 changed files with 266 additions and 21 deletions

View File

@@ -37,15 +37,15 @@ spec:
metadata:
type: object
spec:
description: FirewallGroupSpec defines the desired state of FirewallGroup.
properties:
addressType:
description: AddressType can be "ip", "cidr", or "both"
enum:
- ip
- cidr
- both
type: string
auto_created_from:
description: FirewallRuleSpec defines the desired state of FirewallRule.
properties:
name:
type: string
namespace:
type: string
type: object
autoIncludeSelector:
description: AutoIncludeSelector defines which services to extract
addresses from

View File

@@ -37,12 +37,45 @@ spec:
metadata:
type: object
spec:
description: FirewallRuleSpec defines the desired state of FirewallRule.
properties:
foo:
description: Foo is an example field of FirewallRule. Edit firewallrule_types.go
to remove/update
destination:
properties:
firewall_group:
items:
type: string
type: array
service:
items:
description: FirewallRuleSpec defines the desired state of FirewallRule.
properties:
name:
type: string
namespace:
type: string
type: object
type: array
type: object
match_firewall_groups_in_all_namespaces:
type: boolean
match_services_in_all_namespaces:
type: boolean
name:
type: string
source:
properties:
from_networks:
items:
type: string
type: array
from_zones:
items:
type: string
type: array
type: object
required:
- destination
- name
- source
type: object
status:
description: FirewallRuleStatus defines the observed state of FirewallRule.

View File

@@ -6,4 +6,3 @@ metadata:
app.kubernetes.io/managed-by: kustomize
name: firewallrule-sample
spec:
# TODO(user): Add fields here