Skip to content

Commit

Permalink
Merge pull request #10 from kubeslice/feature-license-job
Browse files Browse the repository at this point in the history
feat(AM-6866): events for licensejob
  • Loading branch information
mridulgain authored Mar 2, 2023
2 parents 82f96e9 + a15dacc commit 04ca219
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
57 changes: 56 additions & 1 deletion config/events/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,59 @@ events:
action: GetConfigMap
type: Normal
reportingController: kubeslice-controller
message: Got ConfigMap and kubeslice-license public keys successfully.
message: Got ConfigMap and kubeslice-license public keys successfully.
# license job
- name: LicenseProxyUnreachable
reason: LicenseProxyUnreachable
action: LicenseProxy
type: Warning
reportingController: kubeslice-controller
message: Failed to get response from license proxy for automatic license creation. Please contact Avesha to obtain licernse manually.
- name: LicenseDeployError
reason: LicenseDeployError
action: LicenseDeploy
type: Warning
reportingController: kubeslice-controller
message: Failed to deploy license secret.
- name: LicenseDeploySuccess
reason: LicenseDeploySuccess
action: LicenseDeploy
type: Normal
reportingController: kubeslice-controller
message: Successfully fetched license data & deployed license secret.
- name: ClusterMetadataCollectionFailed
reason: ClusterMetadataCollectionFailed
action: CollectClusterMetadata
type: Warning
reportingController: kubeslice-controller
message: Failed to collect cluster metadata for cluster creation.
- name: ClusterMetadataCollectionSuccess
reason: ClusterMetadataCollectionSuccess
action: CollectClusterMetadata
type: Normal
reportingController: kubeslice-controller
message: Successfully collected cluster metadata for license creation.
- name: LicenseDataFetchError
reason: LicenseDataFetchError
action: LicenseDataFetch
type: Warning
reportingController: kubeslice-controller
message: Failed to fetch license data from license proxy.
- name: LicenseDataFetchSuccess
reason: LicenseDataFetchSuccess
action: LicenseDataFetch
type: Normal
reportingController: kubeslice-controller
message: Successfully fetched license data from license proxy.
- name: LicenseSecretCreationFailed
reason: LicenseSecretCreationFailed
action: LicenseSecretCreation
type: Warning
reportingController: kubeslice-controller
message: Failed to create license secret.
- name: LicenseSecretCreationSuccess
reason: LicenseSecretCreationSuccess
action: LicenseSecretCreation
type: Normal
reportingController: kubeslice-controller
message: Successfully created license secret.
9 changes: 9 additions & 0 deletions pkg/schema/event_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,13 @@ var (
EventGotMachineFingerPrint = "GotMachineFingerPrint"
EventConfigMapErr = "ConfigMapErr"
EventGotConfigMap = "GotConfigMap"
EventLicenseProxyUnreachable = "LicenseProxyUnreachable"
EventLicenseDeployError = "LicenseDeployError"
EventLicenseDeploySuccess = "LicenseDeploySuccess"
EventClusterMetadataCollectionFailed = "ClusterMetadataCollectionFailed"
EventClusterMetadataCollectionSuccess = "ClusterMetadataCollectionSuccess"
EventLicenseDataFetchError = "LicenseDataFetchError"
EventLicenseDataFetchSuccess = "LicenseDataFetchSuccess"
EventLicenseSecretCreationFailed = "LicenseSecretCreationFailed"
EventLicenseSecretCreationSuccess = "LicenseSecretCreationSuccess"
)

0 comments on commit 04ca219

Please sign in to comment.