Skip to content

Commit

Permalink
Merge pull request #9 from kubeslice/license-events
Browse files Browse the repository at this point in the history
kubeslice-controller license events
  • Loading branch information
rahulsawra98 authored Mar 1, 2023
2 parents e8da0f8 + 4a1323a commit 82f96e9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
26 changes: 25 additions & 1 deletion config/events/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,28 @@ events:
action: ValidateLicense
type: Warning
reportingController: controller
message: License Expired , grace period is on ,please contact kubeslice support team to get it renewed!
message: License Expired , grace period is on ,please contact kubeslice support team to get it renewed!
- name: MachineFingerPrintErr
reason: MachineFingerPrintErr
action: GetMachineFingerPrint
type: Warning
reportingController: kubeslice-controller
message: Unable to fetch MachineFingerPrint.Please look at the kubeslice-controller logs for more details.
- name: GotMachineFingerPrint
reason: GotMachineFingerPrint
action: GetMachineFingerPrint
type: Normal
reportingController: kubeslice-controller
message: Got MachineFingerPrint successfully
- name: ConfigMapErr
reason: ConfigMapErr
action: GetConfigMap
type: Warning
reportingController: kubeslice-controller
message: Unable to validate license keys from configmap. please contact kubeslice support team
- name: GotConfigMap
reason: GotConfigMap
action: GetConfigMap
type: Normal
reportingController: kubeslice-controller
message: Got ConfigMap and kubeslice-license public keys successfully.
4 changes: 2 additions & 2 deletions event.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ license=$(
*/
EOF
)
input1="pkg/schema/config/controller.yaml"
input2="pkg/schema/config/worker.yaml"
input1="config/events/controller.yaml"
input2="config/events/worker.yaml"
output="pkg/schema/event_names.go"

if [ ! -f $input1 ] || [ ! -f $input2 ]; then
Expand Down
4 changes: 4 additions & 0 deletions pkg/schema/event_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ var (
EventLicenseKeyInvalid = "LicenseKeyInvalid"
EventLicenseExpired = "LicenseExpired"
EventLicenseExpiredGracePeriodOn = "LicenseExpiredGracePeriodOn"
EventMachineFingerPrintErr = "MachineFingerPrintErr"
EventGotMachineFingerPrint = "GotMachineFingerPrint"
EventConfigMapErr = "ConfigMapErr"
EventGotConfigMap = "GotConfigMap"
)

0 comments on commit 82f96e9

Please sign in to comment.