Skip to content

Commit

Permalink
add metal lb update policy-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
maleck13 committed Nov 10, 2023
1 parent 94483c5 commit 2a13002
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,14 @@ deploy-dependencies: kustomize dependencies-manifests ## Deploy dependencies to
$(KUSTOMIZE) build config/dependencies | kubectl apply -f -
kubectl -n "$(KUADRANT_NAMESPACE)" wait --timeout=300s --for=condition=Available deployments --all

.PHONY: install-metallb
install-metallb: $(KUSTOMIZE)
$(KUSTOMIZE) build config/metallb | kubectl apply -f -

.PHONY: uninstall-metallb
uninstall-metallb: $(KUSTOMIZE)
$(KUSTOMIZE) build config/metallb | kubectl delete -f -

.PHONY: install-olm
install-olm: $(OPERATOR_SDK)
$(OPERATOR_SDK) olm install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/kuadrant-operator:latest
createdAt: "2023-11-09T10:34:41Z"
createdAt: "2023-11-10T11:54:36Z"
operators.operatorframework.io/builder: operator-sdk-v1.28.1
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/Kuadrant/kuadrant-operator
Expand Down
7 changes: 7 additions & 0 deletions bundle/manifests/kuadrant.io_dnspolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ spec:
type: integer
type: object
type: object
routingStrategy:
default: loadbalanced
enum:
- simple
- loadbalanced
type: string
targetRef:
description: PolicyTargetReference identifies an API object to apply
policy to. This should be used as part of Policy resources that
Expand Down Expand Up @@ -195,6 +201,7 @@ spec:
- name
type: object
required:
- routingStrategy
- targetRef
type: object
status:
Expand Down
2 changes: 2 additions & 0 deletions config/metallb/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- github.com/metallb/metallb/config/native?ref=v0.13.7

Check failure on line 2 in config/metallb/kustomization.yaml

View workflow job for this annotation

GitHub Actions / Lint

[EOF Newline] reported by reviewdog 🐶 Missing newline Raw Output: config/metallb/kustomization.yaml:2: Missing newline
14 changes: 14 additions & 0 deletions config/metallb/metal-lb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: example
namespace: metallb-system
spec:
addresses:
- 172.31.200.0/24
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: empty
namespace: metallb-system

Check failure on line 14 in config/metallb/metal-lb.yaml

View workflow job for this annotation

GitHub Actions / Lint

[EOF Newline] reported by reviewdog 🐶 Missing newline Raw Output: config/metallb/metal-lb.yaml:14: Missing newline
2 changes: 1 addition & 1 deletion config/policy-controller/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resources:
- github.com/Kuadrant/multicluster-gateway-controller/config/policy-controller/default?ref=separate-controller-deploy
- github.com/Kuadrant/multicluster-gateway-controller/config/policy-controller/default?ref=main

patchesStrategicMerge:
- delete-ns.yaml
Expand Down

0 comments on commit 2a13002

Please sign in to comment.