diff --git a/config/events/controller.yaml b/config/events/controller.yaml index b0f38c4..2181dfa 100644 --- a/config/events/controller.yaml +++ b/config/events/controller.yaml @@ -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! \ No newline at end of file + 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. \ No newline at end of file diff --git a/event.sh b/event.sh index da5d8df..84de0ec 100755 --- a/event.sh +++ b/event.sh @@ -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 diff --git a/pkg/schema/event_names.go b/pkg/schema/event_names.go index 54fe887..e2b38e1 100644 --- a/pkg/schema/event_names.go +++ b/pkg/schema/event_names.go @@ -29,4 +29,8 @@ var ( EventLicenseKeyInvalid = "LicenseKeyInvalid" EventLicenseExpired = "LicenseExpired" EventLicenseExpiredGracePeriodOn = "LicenseExpiredGracePeriodOn" + EventMachineFingerPrintErr = "MachineFingerPrintErr" + EventGotMachineFingerPrint = "GotMachineFingerPrint" + EventConfigMapErr = "ConfigMapErr" + EventGotConfigMap = "GotConfigMap" ) \ No newline at end of file