Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package] [WorkerK8S] Implement Gopher Worker #103

Merged
merged 5 commits into from
Dec 21, 2023
Merged

[Package] [WorkerK8S] Implement Gopher Worker #103

merged 5 commits into from
Dec 21, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

Example :

2023-12-21T08:29:25.543+0700    INFO    workerk8s/logger.go:20  馃泩  Worker started       {"workerIndex": 0, "operation": "CheckHealth", "namespace": "Gophe Worker"}
2023-12-21T08:29:25.544+0700    INFO    workerk8s/logger.go:20  馃  Fetching pods       {"workerIndex": 0, "operation": "FetchPods", "namespace": "Gophe Worker"}
2023-12-21T08:29:25.743+0700    INFO    workerk8s/logger.go:20  馃  Pods fetched        {"workerIndex": 0, "operation": "FetchPods", "namespace": "Gophe Worker", "count": 0}
2023-12-21T08:29:25.744+0700    INFO    workerk8s/logger.go:20  馃  Worker finished processing pods     {"workerIndex": 0, "operation": "CheckHealth", "namespace": "Gophe Worker"}

- [+] chore(constant.go): add new constants for HOME, kube, Config, errconfig, cannotcreatek8s
- [+] feat(constant.go): add new constants for FetchingPods, PodsFetched, ProcessingPods
- [+] feat(constant.go): add new constants for TaskLabelKey, TaskCheckHealth, TaskGetPod, TaskFetchPods, TaskProcessPod
- [+] chore(go.mod): add github.com/imdario/mergo v0.3.6 as an indirect dependency
- [+] chore(go.sum): add github.com/imdario/mergo v0.3.6 to go.sum as a direct dependency
- [+] chore(go.mod): add github.com/spf13/pflag v1.0.5 as an indirect dependency
- [+] chore(go.sum): add github.com/spf13/pflag v1.0.5 to go.sum as a direct dependency
- [+] fix(internal.go): fix error handling and add support for kubeconfig file outside the cluster
- [+] feat(internal.go): add support for using the current context in kubeconfig
- [+] feat(logger.go): add logger functionality to workerk8s package
- [+] fix(logger.go): fix logInfoWithEmoji and logErrorWithEmoji functions to include emoji and context in log message
- [+] feat(logger.go): add createLogFields function to create log fields with operation, namespace, and additional info
- [+] feat(workerk8s): add structured logging to Worker function
- [+] feat(workerk8s): add structured logging to RunWorkers function
- [+] fix(workerk8s): fix log messages in getPods function
- [+] fix(workerk8s): fix log messages in processPods function
- [+] chore(workerk8s): update TODO list in docs.go
- [+] chore(workerk8s): update enhancements section in docs.go
@H0llyW00dzZ H0llyW00dzZ merged commit 7ba2e6e into master Dec 21, 2023
2 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the gopher branch December 21, 2023 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant