@@ -22,7 +22,6 @@ import (
2222 clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2323 capierrors "sigs.k8s.io/cluster-api/errors" //nolint:staticcheck
2424
25- fcmv2 "github.com/metal-stack/firewall-controller-manager/api/v2"
2625 "github.com/metal-stack/metal-lib/pkg/tag"
2726)
2827
@@ -34,7 +33,6 @@ const (
3433
3534 ClusterNodeNetworkEnsured clusterv1.ConditionType = "ClusterNodeNetworkEnsured"
3635 ClusterControlPlaneEndpointEnsured clusterv1.ConditionType = "ClusterControlPlaneEndpointEnsured"
37- ClusterFirewallDeploymentReady clusterv1.ConditionType = "ClusterFirewallDeploymentReady"
3836)
3937
4038var (
@@ -67,11 +65,6 @@ type MetalStackClusterSpec struct {
6765
6866 // Partition is the data center partition in which the resources are created.
6967 Partition string `json:"partition"`
70-
71- // Firewall describes the firewall for this cluster.
72- // If not provided this will automatically be created during reconcile.
73- // +optional
74- Firewall * Firewall `json:"firewall,omitempty"`
7568}
7669
7770// APIEndpoint represents a reachable Kubernetes API endpoint.
@@ -83,31 +76,6 @@ type APIEndpoint struct {
8376 Port int `json:"port"`
8477}
8578
86- // Firewall defines parameters for the firewall creation along with configuration for the firewall-controller.
87- type Firewall struct {
88- // Size is the machine size of the firewall.
89- // An update on this field requires the recreation of the physical firewall and can therefore lead to traffic interruption for the cluster.
90- Size string `json:"size"`
91- // Image is the os image of the firewall.
92- // An update on this field requires the recreation of the physical firewall and can therefore lead to traffic interruption for the cluster.
93- Image string `json:"image"`
94- // AdditionalNetworks are the networks to which this firewall is connected.
95- // An update on this field requires the recreation of the physical firewall and can therefore lead to traffic interruption for the cluster.
96- // +optional
97- AdditionalNetworks []string `json:"networks,omitempty"`
98-
99- // RateLimits allows configuration of rate limit rules for interfaces.
100- // +optional
101- RateLimits []fcmv2.RateLimit `json:"rateLimits,omitempty"`
102- // EgressRules contains egress rules configured for this firewall.
103- // +optional
104- EgressRules []fcmv2.EgressRuleSNAT `json:"egressRules,omitempty"`
105-
106- // LogAcceptedConnections if set to true, also log accepted connections in the droptailer log.
107- // +optional
108- LogAcceptedConnections * bool `json:"logAcceptedConnections,omitempty"`
109- }
110-
11179// MetalStackClusterStatus defines the observed state of MetalStackCluster.
11280type MetalStackClusterStatus struct {
11381 // Ready denotes that the cluster is ready.
0 commit comments