Skip to content

Commit 7820dda

Browse files
committed
Fixes.
1 parent 3831739 commit 7820dda

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

capi-lab/firewall-controller-manager/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ spec:
3333
- -shoot-kubeconfig-secret-name=none
3434
- -shoot-token-secret-name=none
3535
- -ssh-key-secret-name=none
36+
- -ssh-key-secret-namespace=none
3637
# - -shoot-token-path=/token
3738
env:
3839
- name: METAL_AUTH_HMAC

capi-lab/firewall-controller-manager/kustomization.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ resources:
1717
- validatingwebhookconfiguration.yaml
1818
- webhook-certs.yaml
1919

20-
labels:
21-
- includeSelectors: true
22-
pairs:
23-
clusterctl.cluster.x-k8s.io/move: ""
24-
# or cluster.x-k8s.io/provider: infrastructure-metal-stack?
25-
2620
patches:
27-
28-
configurations:
29-
- kustomizeconfig.yaml
21+
- patch: |-
22+
apiVersion: apiextensions.k8s.io/v1
23+
kind: CustomResourceDefinition
24+
metadata:
25+
name: firewalls.firewall.metal-stack.io
26+
labels:
27+
clusterctl.cluster.x-k8s.io/move: ""
28+
target:
29+
kind: CustomResourceDefinition
30+
name: firewalls.firewall.metal-stack.io
3031

3132
replacements:
3233
- source:

capi-lab/firewall-controller-manager/kustomizeconfig.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

internal/controller/metalstackcluster_controller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,12 @@ func (r *clusterReconciler) ensureFirewallDeployment(nodeNetworkID, sshPubKey st
572572
Protocol: fcmv2.NetworkProtocolTCP,
573573
To: []string{"0.0.0.0/0"},
574574
},
575+
{
576+
Comment: "allow outgoing traffic to control plane for ccm",
577+
Ports: []int32{8080},
578+
Protocol: fcmv2.NetworkProtocolTCP,
579+
To: []string{"0.0.0.0/0"},
580+
},
575581
{
576582
Comment: "allow outgoing dns via tcp",
577583
Ports: []int32{53},

0 commit comments

Comments
 (0)