Skip to content

Commit 01f0ac7

Browse files
committed
Update kustomize manifests. Call UpdateStatus.
Signed-off-by: James Munnelly <james@munnelly.eu>
1 parent febe9b0 commit 01f0ac7

7 files changed

Lines changed: 10 additions & 12 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Image URL to use all building/pushing image targets
3-
IMG ?= munnerz/kubewg-manager:canary
3+
IMG ?= munnerz/kubewg:canary
44

55
all: test manager
66

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ namePrefix: kubewg-
1818
# YAML string, with resources separated by document
1919
# markers ("---").
2020
resources:
21-
- ../rbac/rbac_role.yaml
22-
- ../rbac/rbac_role_binding.yaml
23-
- ../manager/manager.yaml
21+
- rbac/rbac_role.yaml
22+
- rbac/rbac_role_binding.yaml
23+
- manager/manager.yaml
2424
# Comment the following 3 lines if you want to disable
2525
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
2626
# which protects your /metrics endpoint.
27-
- ../rbac/auth_proxy_service.yaml
28-
- ../rbac/auth_proxy_role.yaml
29-
- ../rbac/auth_proxy_role_binding.yaml
27+
- rbac/auth_proxy_service.yaml
28+
- rbac/auth_proxy_role.yaml
29+
- rbac/auth_proxy_role_binding.yaml
3030

3131
patches:
32-
- manager_image_patch.yaml
32+
- patches/manager_image_patch.yaml
3333
# Protect the /metrics endpoint by putting it behind auth.
3434
# Only one of manager_auth_proxy_patch.yaml and
3535
# manager_prometheus_metrics_patch.yaml should be enabled.
36-
- manager_auth_proxy_patch.yaml
36+
- patches/manager_auth_proxy_patch.yaml
3737
# If you want your controller-manager to expose the /metrics
3838
# endpoint w/o any authn/z, uncomment the following line and
3939
# comment manager_auth_proxy_patch.yaml.
File renamed without changes.
File renamed without changes.

peer-edgerouter.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: mnrz
55
spec:
66
subnet: 10.30.51.0/24
7-
selector: {}
87
---
98
apiVersion: wg.mnrz.xyz/v1alpha1
109
kind: Peer
@@ -50,7 +49,6 @@ metadata:
5049
name: marley
5150
spec:
5251
subnet: 192.168.53.1/24
53-
selector: {}
5452
---
5553
apiVersion: wg.mnrz.xyz/v1alpha1
5654
kind: Peer

pkg/controller/peer/peer_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func (r *ReconcilePeer) Reconcile(request reconcile.Request) (reconcile.Result,
228228

229229
if !reflect.DeepEqual(instance.Status, peer.Status) {
230230
log.Info("Updating Peer", "namespace", peer.Namespace, "name", peer.Name)
231-
err = r.Update(context.TODO(), peer)
231+
err = r.Status().Update(context.TODO(), peer)
232232
if err != nil {
233233
return reconcile.Result{}, err
234234
}

0 commit comments

Comments
 (0)