From f61a616d413f5961259f693ca5ff667e2a4bee32 Mon Sep 17 00:00:00 2001 From: rahulsawra98 Date: Fri, 24 Feb 2023 17:35:27 +0530 Subject: [PATCH 1/3] test --- config/events/events.go | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/events/events.go diff --git a/config/events/events.go b/config/events/events.go new file mode 100644 index 0000000..f6f37a0 --- /dev/null +++ b/config/events/events.go @@ -0,0 +1 @@ +package events \ No newline at end of file From 782eb92ceb6404614699858d1e2e7ccfecc53f5a Mon Sep 17 00:00:00 2001 From: rahulsawra98 Date: Wed, 1 Mar 2023 15:55:40 +0530 Subject: [PATCH 2/3] add more events --- config/events/controller.yaml | 26 +++++++++++++++++++++++++- event.sh | 4 ++-- pkg/schema/event_names.go | 4 ++++ 3 files changed, 31 insertions(+), 3 deletions(-) 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 From 4a1323afcc363834fa040d8c3047a16efd704d47 Mon Sep 17 00:00:00 2001 From: rahulsawra98 Date: Wed, 1 Mar 2023 15:57:18 +0530 Subject: [PATCH 3/3] remove events.go --- config/events/events.go | 1 - 1 file changed, 1 deletion(-) delete mode 100644 config/events/events.go diff --git a/config/events/events.go b/config/events/events.go deleted file mode 100644 index f6f37a0..0000000 --- a/config/events/events.go +++ /dev/null @@ -1 +0,0 @@ -package events \ No newline at end of file