Skip to content

Commit

Permalink
Update kustomize manifests. Call UpdateStatus.
Browse files Browse the repository at this point in the history
Signed-off-by: James Munnelly <[email protected]>
  • Loading branch information
munnerz committed Mar 18, 2019
1 parent febe9b0 commit 01f0ac7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

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

all: test manager

Expand Down
16 changes: 8 additions & 8 deletions config/default/kustomization.yaml → config/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ namePrefix: kubewg-
# YAML string, with resources separated by document
# markers ("---").
resources:
- ../rbac/rbac_role.yaml
- ../rbac/rbac_role_binding.yaml
- ../manager/manager.yaml
- rbac/rbac_role.yaml
- rbac/rbac_role_binding.yaml
- manager/manager.yaml
# Comment the following 3 lines if you want to disable
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
# which protects your /metrics endpoint.
- ../rbac/auth_proxy_service.yaml
- ../rbac/auth_proxy_role.yaml
- ../rbac/auth_proxy_role_binding.yaml
- rbac/auth_proxy_service.yaml
- rbac/auth_proxy_role.yaml
- rbac/auth_proxy_role_binding.yaml

patches:
- manager_image_patch.yaml
- patches/manager_image_patch.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_auth_proxy_patch.yaml
- patches/manager_auth_proxy_patch.yaml
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, uncomment the following line and
# comment manager_auth_proxy_patch.yaml.
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions peer-edgerouter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: mnrz
spec:
subnet: 10.30.51.0/24
selector: {}
---
apiVersion: wg.mnrz.xyz/v1alpha1
kind: Peer
Expand Down Expand Up @@ -50,7 +49,6 @@ metadata:
name: marley
spec:
subnet: 192.168.53.1/24
selector: {}
---
apiVersion: wg.mnrz.xyz/v1alpha1
kind: Peer
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/peer/peer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (r *ReconcilePeer) Reconcile(request reconcile.Request) (reconcile.Result,

if !reflect.DeepEqual(instance.Status, peer.Status) {
log.Info("Updating Peer", "namespace", peer.Namespace, "name", peer.Name)
err = r.Update(context.TODO(), peer)
err = r.Status().Update(context.TODO(), peer)
if err != nil {
return reconcile.Result{}, err
}
Expand Down

0 comments on commit 01f0ac7

Please sign in to comment.