Skip to content

Commit 1869713

Browse files
Remove firewall integration (#40)
1 parent 35dd062 commit 1869713

34 files changed

+2
-1070
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ update-test-crds:
7777
go mod tidy
7878
rm -rf test/external-crds
7979
mkdir -p test/external-crds/cluster-api
80-
mkdir -p test/external-crds/firewall-controller-manager
8180
cp -f $(shell go list -mod=mod -m -f '{{.Dir}}' all | grep sigs.k8s.io/cluster-api)/config/crd/bases/* test/external-crds/cluster-api
82-
cp -f $(shell go list -mod=mod -m -f '{{.Dir}}' all | grep metal-stack/firewall-controller-manager)/config/crds/* test/external-crds/firewall-controller-manager
8381

8482
.PHONY: fmt
8583
fmt: ## Run go fmt against code.

api/v1alpha1/metalstackcluster_types.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4038
var (
@@ -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.
11280
type MetalStackClusterStatus struct {
11381
// Ready denotes that the cluster is ready.

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

capi-lab/deploy.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,4 @@
1111
- name: ansible-common
1212
- name: metal-roles
1313
- name: prometheus
14-
- name: firewall-controller-manager
15-
vars:
16-
firewall_controller_manager_namespace: capms-system
17-
firewall_controller_manager_ca: "{{ lookup('file', playbook_dir + '/fcm-certs/ca.pem') }}"
18-
firewall_controller_manager_cert: "{{ lookup('file', playbook_dir + '/fcm-certs/tls.crt') }}"
19-
firewall_controller_manager_cert_key: "{{ lookup('file', playbook_dir + '/fcm-certs/tls.key') }}"
2014
- name: cluster-api

capi-lab/fcm-certs/ca-config.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

capi-lab/fcm-certs/ca-csr.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

capi-lab/fcm-certs/ca-key.pem

Lines changed: 0 additions & 5 deletions
This file was deleted.

capi-lab/fcm-certs/ca.pem

Lines changed: 0 additions & 12 deletions
This file was deleted.

capi-lab/fcm-certs/roll.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

capi-lab/fcm-certs/tls.crt

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)