Skip to content

Commit

Permalink
Enhance Update Event Notifications
Browse files Browse the repository at this point in the history
This Commit,
- enhances update event notifications with details of what Spec is getting changed
- adds custom `SpecDiffReporter` and `utils.Diff()` method.
- adds update events in all config.yaml files
- adds unit-test for utils.Diff()
  • Loading branch information
codenio committed Aug 17, 2019
1 parent 2a41da1 commit b804b3c
Show file tree
Hide file tree
Showing 9 changed files with 202 additions and 61 deletions.
18 changes: 17 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,119 +5,135 @@ resources:
- all
events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
- create
- update
- delete
- error
- name: service
namespaces:
- all
events:
- create
- update
- delete
- error
- name: deployment
namespaces:
- all
events:
- create
- update
- delete
- error
- name: statefulset
namespaces:
- all
events:
- create
- update
- delete
- error
- name: ingress
namespaces:
- all
events:
- create
- update
- delete
- error
- name: node
namespaces:
- all
events:
- create
- update
- delete
- error
- name: namespace
namespaces:
- all
events:
- create
- update
- delete
- error
- name: persistentvolume
namespaces:
- all
events:
- create
- update
- delete
- error
- name: persistentvolumeclaim
namespaces:
- all
events:
- create
- update
- delete
- error
- name: secret
namespaces:
- all
events:
- create
- update
- delete
- error
- name: configmap
namespaces:
- all
events:
- create
- update
- delete
- error
- name: daemonset
namespaces:
- all
events:
- create
- update
- delete
- error
- name: job
namespaces:
- all
events:
- create
- update
- delete
- error
- update
- name: role
namespaces:
- all
events:
- create
- update
- delete
- error
- name: rolebinding
namespaces:
- all
events:
- create
- update
- delete
- error
- name: clusterrolebindings
namespaces:
- all
events:
- create
- update
- delete
- error
- name: clusterrolebinding
namespaces:
- all
events:
- create
- update
- delete
- error

Expand Down
16 changes: 16 additions & 0 deletions deploy-all-in-one-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,83 +15,95 @@ data:
- all
events: # List of lifecycle events you want to receive, e.g create, update, delete OR all
- create
- update
- delete
- error
- name: service
namespaces:
- all
events:
- create
- update
- delete
- error
- name: deployment
namespaces:
- all
events:
- create
- update
- delete
- error
- name: statefulset
namespaces:
- all
events:
- create
- update
- delete
- error
- name: ingress
namespaces:
- all
events:
- create
- update
- delete
- error
- name: node
namespaces:
- all
events:
- create
- update
- delete
- error
- name: namespace
namespaces:
- all
events:
- create
- update
- delete
- error
- name: persistentvolume
namespaces:
- all
events:
- create
- update
- delete
- error
- name: persistentvolumeclaim
namespaces:
- all
events:
- create
- update
- delete
- error
- name: secret
namespaces:
- all
events:
- create
- update
- delete
- error
- name: configmap
namespaces:
- all
events:
- create
- update
- delete
- error
- name: daemonset
namespaces:
- all
events:
- create
- update
- delete
- error
- name: job
Expand All @@ -107,27 +119,31 @@ data:
- all
events:
- create
- update
- delete
- error
- name: rolebinding
namespaces:
- all
events:
- create
- update
- delete
- error
- name: clusterrole
namespaces:
- all
events:
- create
- update
- delete
- error
- name: clusterrolebinding
namespaces:
- all
events:
- create
- update
- delete
- error
Expand Down
16 changes: 16 additions & 0 deletions deploy-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,83 +15,95 @@ data:
- all
events: # List of lifecycle events you want to receive, e.g create, update, delete OR all
- create
- update
- delete
- error
- name: service
namespaces:
- all
events:
- create
- update
- delete
- error
- name: deployment
namespaces:
- all
events:
- create
- update
- delete
- error
- name: statefulset
namespaces:
- all
events:
- create
- update
- delete
- error
- name: ingress
namespaces:
- all
events:
- create
- update
- delete
- error
- name: node
namespaces:
- all
events:
- create
- update
- delete
- error
- name: namespace
namespaces:
- all
events:
- create
- update
- delete
- error
- name: persistentvolume
namespaces:
- all
events:
- create
- update
- delete
- error
- name: persistentvolumeclaim
namespaces:
- all
events:
- create
- update
- delete
- error
- name: secret
namespaces:
- all
events:
- create
- update
- delete
- error
- name: configmap
namespaces:
- all
events:
- create
- update
- delete
- error
- name: daemonset
namespaces:
- all
events:
- create
- update
- delete
- error
- name: job
Expand All @@ -107,27 +119,31 @@ data:
- all
events:
- create
- update
- delete
- error
- name: rolebinding
namespaces:
- all
events:
- create
- update
- delete
- error
- name: clusterrole
namespaces:
- all
events:
- create
- update
- delete
- error
- name: clusterrolebinding
namespaces:
- all
events:
- create
- update
- delete
- error
Expand Down
Loading

0 comments on commit b804b3c

Please sign in to comment.