Skip to content

Commit

Permalink
Algorithm for finding default external network for metal-ccm deployme…
Browse files Browse the repository at this point in the history
…nt. (#92)
  • Loading branch information
Gerrit91 authored Sep 10, 2020
1 parent 057910d commit 642ee99
Show file tree
Hide file tree
Showing 13 changed files with 239 additions and 15 deletions.
2 changes: 1 addition & 1 deletion charts/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ images:
- name: metalccm
sourceRepository: github.com/metal-stack/metal-ccm
repository: metalstack/metal-ccm
tag: v0.3.0
tag: v0.5.0
- name: machine-controller-manager
sourceRepository: github.com/gardener/machine-controller-manager
repository: eu.gcr.io/gardener-project/gardener/machine-controller-manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ spec:
value: {{ .Values.cloudControllerManager.networkID }}
- name: METAL_CLUSTER_ID
value: {{ .Values.cloudControllerManager.clusterID }}
- name: METAL_DEFAULT_EXTERNAL_NETWORK_ID
value: {{ .Values.cloudControllerManager.defaultExternalNetwork }}
livenessProbe:
httpGet:
path: /healthz
Expand Down
1 change: 1 addition & 0 deletions charts/internal/control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cloudControllerManager:
partitionID: partition-id
networkID: network-id
clusterID: cluster-id
defaultExternalNetwork: external-network-id
metal:
endpoint: api-url
resources:
Expand Down
4 changes: 2 additions & 2 deletions example/controller-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
deployment:
type: helm
providerConfig:
chart: H4sIAAAAAAAAA+0ca3PbNjKf+SswynWm7ZxIvSz3NJObcxNf6rnE1jhuOjc3NxmIhCRGFMECpG1dmv9+iwdJkCJFyXbspuW2M6EA7GIB7C52F4AjRq99j7DumsQ4cJ59CegBHB8dyX8Byv/K7/5w1B8cDcZjUQ5fvaNn6OiLcFOChMeYIfSMURrvatdU/5VCVFz/l0vMYnuD18ED9tG0/oP+UWn9R6Ph8BnqPSAPtfAnX38c+e8J4z4N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vTVBJvjSIpx5WwLzGZSIAmUuzjYtW5AI4atPYBRp82VxjbyKYUbtNldVRKeQ3x6g4OgsDI3vlDQpim5l9X9Ua3uFzO+0IXOWaUTsoNDK7sxZWwLDfyA9/URTIW08Ar5XSGj8DDO4lNvrV8F1Pp/2ho9hAvYGP/1Blvvfwbt/e9Hgcr7n1obfx/RWyzvIWrrcjYthGX7ndtmaequvqEyGg1lRFfMJ8uEGmbgrxyUnn7qFbwfNOm/9kbuZQaa9H8w6pfyP71Rr73/8SiwS//T3fhJzcBTT9AfHEr6r04nHvgPwDTo/+D4eOv993H79x8eB9R9FhnbpPdX9PsJGfdU3S0pvQQWm+ZiguSuITz3yLjUchLc4A23LDO7OkF9Kw+k0KfPlmUc/utXHlmyRaVeSxcaJujIQqUEzo6GKi+zi1LdvYwJmsNEEMvavocwQf/5r1W6VSDLrOeo6mBLXBIVx3a+vrj/3DjiinDC1RUIeTpuqeM9NUWXxroYf5EjP+szP2cBnTlrLDwlZ5b4gedI0s4r6sIMiJs8Vnq6alB1mYg0F5QuAvIhvxmlcLt47Y1HGk2udGdo9zq6IPsTPn2737dvv+5R9bdG1fn7CzGygaqwbduyCq7gxFKH4emNBuFYWm5WVf38p+rxD46kgohGzkdOw1RW84c4lS3kE5l+T51R6vcr/WHP2nomkq9KMgMdTKziMPt/s3sjdVCsL7ipZl1ZYZlPREoPRIznIQF1cdCNcLxM67K3Hz/0XvuKx8KbjvxFR6eHvncGI/S9+E8wUvcwILuLrxRTnvZWXtuvaFhx814orBrG9v347Ha8/i1jh2xo2RcxStWVbpk5yR6dVDBSfi6SWdRYFlgVD0EqqOhHG+m3eophZX+7Qckm0cuWdqGNe+tWtdBCCy200EILLbTQQgsttNBCCy200EILLbTQQgsttNBCCy200EILLbTQQgsttNDCVwz/B4y9xyoAeAAA
values:
image:
tag: v0.12.0
tag: v0.12.1
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ require (
github.com/gardener/machine-controller-manager v0.33.0
github.com/go-logr/logr v0.1.0
github.com/gobuffalo/packr/v2 v2.8.0
github.com/golang/mock v1.4.4-0.20200731163441-8734ec565a4d
github.com/golang/mock v1.4.4
github.com/google/go-cmp v0.5.2
github.com/google/uuid v1.1.1
github.com/google/uuid v1.1.2
github.com/imdario/mergo v0.3.8
github.com/metal-stack/firewall-controller v0.1.8
github.com/metal-stack/metal-go v0.8.3
github.com/metal-stack/metal-lib v0.5.0
github.com/metal-stack/metal-lib v0.6.1
github.com/onsi/ginkgo v1.14.0
github.com/onsi/gomega v1.10.1
github.com/pkg/errors v0.9.1
Expand Down
Loading

0 comments on commit 642ee99

Please sign in to comment.