Skip to content

Commit

Permalink
Allow dynamic reconfiguration of prefixes on the firewall (#169)
Browse files Browse the repository at this point in the history
* Remove unnecessary duplicated backend calls.

* Replace prefixes of machine allocation with prefixes from actual network.

* Update firewall-controller to 1.0.2.

* Generate.
  • Loading branch information
Gerrit91 authored Apr 8, 2021
1 parent dc8ee4e commit 3141b7d
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 51 deletions.
2 changes: 1 addition & 1 deletion charts/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ images:
# firewall-controller tag must be semver compatible with golang dependency!
- name: firewall-controller
sourceRepository: https://github.com/metal-stack/firewall-controller
tag: "v1.0.1"
tag: "v1.0.2"

# can be provided via image override:
# - name: authn-webhook
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+0ca2/bOLKf9SsI9xbYPZzlt7sQ0MNl29xu7trESHItDodDQUu0rVoWtaSUx3X732/4kETJkmUnadLualCgMh/DITkznBkOEzF65XuEdTckxkHv2ZeAPsCLyUT+D1D+X34PRuPBcDKcTkU5fPUnz9Dki1BTgoTHmCH0jFEa72rXVP+NQlTc/1crzGL7Fm+CBxyjaf+Hg0lp/8fj0egZ6j8gDbXwB99/HPnvCOM+DR10NbBwFOU/+/ZgYk8sj3CX+VEsC4/QLyTYIFfwCVpQhuIVQT9j5pGQMPRWMBGaaZ5C5CYmoUBmhXhDHFRkNuuqPNJTL8YfEEry71HXXtIHHqNJ/ifDsv4fTfuDVv4fA3q9JXWWQnhxTJBt9+DfFQk9ynpLP14lc9ulm95SC3j+scLuupf267o0jBkNAuAjRpY+j6EUJNvmq5LMI1uP8e74/OLk7FT/Ijd4EwWkV4dHHEjolaqcBTgkjsJ2Ei4YhlaJGycsLXxP2Zow9cOyej00A1rxkmilRUI8DwhH5rx5EkVUKzRd6IdLqdtcyhhxY5STh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oB/eo2DoLAz174Q0EOXJL2MbRpSXtZW4LuXFv9JccsXU+YwhI6BpbPeQaGVZeAZx0wDPWDNfQTVI08M1fmiEKF4GOPzqY/qLwK19p/WRg9hAjb6f/2t/N/+sM3/fxSozP/V0vN1eG+xzEPV2uBkVnDL9ru3zcLUXZ31NB6PpEdXjCfLgBpmYK8cFJ5+6h28HzTJv7ZG7qUGmuR/OB6U4j/9cb/N/3gU2CX/6en5pGrgqRfodw4l+Ve3Ew/8B4Ca4j/90aD8/n/6on3//Sig8lmko5HmrzhouXKZcBYMb6QqyaT0JFycnksHyeNDmNyRkd1yFFzjW25ZZpjVQQMrd2/Qp8+WZWQB6Oc+WdRFxWBLmQ0OmlioFMnZ0VAFaHZhqkvQcNACB5xY1nZCgoP+81+rlF4gy6znqOqGS2Qgi/s7X7/geG7cdUU44SoXQl6TW+qeTy3RublB+Z9myS/9zM95QOe9DRYmU2+e+IHXk6h7KkdWpPRY6TWrgVXt+pLSZUA+5ClSqm8Xb7zpWHeTO90Z2f2OLsj+ltPAHgzsm297VoOtWXX++lLMbKgqbNu2rIJN6FjqVjxNbRAWpuVmVdXvwKpegeFICoho1PvIaZjyav4iq7KFfCs16KvLSv2QaTDqW+X3QoIvzQc/pZT1/LFPWpA+31GICy9ysvc4Vnpxuv3Gxqp/NpLlwyvJkve2lY86KhpWvMtQM6t+PZG9ndC/pReQzTD7IkapSvhXe1d+7LNFUP6Ip4LW8vObTGvGssAqbULh1UDl1I3sfqE0azLq6/LpreyPeyieJZoTUrL068nW7mqhhRZaaKGFFlpooYUWWmihhRZaaKGFFlpooYUWWmihhRZaaKGFFlpooYUWWvi64f/5YrCUAHgAAA==
values:
image:
tag: v0.15.5
tag: v0.16.0
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/google/uuid v1.2.0
github.com/imdario/mergo v0.3.11
github.com/metal-stack/duros-controller v0.1.1
github.com/metal-stack/firewall-controller v1.0.1
github.com/metal-stack/firewall-controller v1.0.2
github.com/metal-stack/machine-controller-manager-provider-metal v0.1.3
github.com/metal-stack/metal-go v0.14.0
github.com/metal-stack/metal-lib v0.7.2
Expand Down
Loading

0 comments on commit 3141b7d

Please sign in to comment.