Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
466 commits
Select commit Hold shift + click to select a range
90716bf
DEV-61404- correct key name for propertymap
lmshubhashri Aug 4, 2020
da37a8c
DEV-61404-removed commented code
lmshubhashri Aug 4, 2020
e32030e
DEV-62227: Refactored code in worker model way.
lmvaibhavk Aug 6, 2020
f3ae7c5
DEV-62227: removing unused code
lmvaibhavk Aug 6, 2020
9749730
DEV-62227: replaced struct to interface
lmvaibhavk Aug 6, 2020
8b63752
DEV-62227: replaced worker config with interface references
lmvaibhavk Aug 6, 2020
bc3a6dc
Merge pull request #54 in DEV/k8s-argus from DEV-61404-argus-golang-u…
lmshubhashri Aug 7, 2020
7e4d77f
Merge branch 'develop' into DEV-61404-argus-unitTests-part2
lmshubhashri Aug 7, 2020
0cac79e
Merge pull request #55 in DEV/k8s-argus from DEV-61404-argus-unitTest…
lmshubhashri Aug 7, 2020
61094e2
DEV-62227: moved log methods of lmcontext to log package, moved confi…
lmvaibhavk Aug 10, 2020
d2373d0
DEV-62227: added package comment and moved log context update to log
lmvaibhavk Aug 10, 2020
363e19d
DEV-62227: renamed method name to new
lmvaibhavk Aug 10, 2020
66bdcc8
Merge pull request #56 in DEV/k8s-argus from DEV-62227-worker-model t…
lmvaibhavk Aug 11, 2020
1a9ae51
Merge branch 'develop' into feature/rate-limiter-handling
lmvaibhavk Aug 11, 2020
f03fddd
DEV-62229: Unit test fixes
lmvaibhavk Aug 11, 2020
0d8e742
DEV-62229: lm sdk modified to return rate limit headers
lmvaibhavk Aug 11, 2020
71a2733
DEV-62229: rate limiter handling implemented
lmvaibhavk Aug 27, 2020
bba12e5
DEV-62229: method name changed
lmvaibhavk Aug 28, 2020
71d75d6
DEV-62229: incorporated review comments
lmvaibhavk Aug 31, 2020
89c7a64
DEV-62229: incorporated review comments, restructured rate limit manager
lmvaibhavk Sep 1, 2020
e657185
DEV-62229: updated 429 error with http status code constant
lmvaibhavk Sep 2, 2020
76519b2
Merge pull request #57 in DEV/k8s-argus from DEV-62229-rate-limit-han…
lmvaibhavk Sep 2, 2020
dfdd7ef
Merge pull request #58 in DEV/k8s-argus from feature/rate-limiter-han…
lmvaibhavk Sep 2, 2020
7721cfb
DEV-63522: Changed node applies to function to use labels
lmvaibhavk Sep 3, 2020
e8788e7
Merge pull request #59 in DEV/k8s-argus from DEV-63522-node-groups to…
lmvaibhavk Sep 3, 2020
72138e0
DEV-63522: updated deleted device group applies to also
lmvaibhavk Sep 3, 2020
26c38c4
Merge pull request #60 in DEV/k8s-argus from DEV-63522-node-groups to…
lmvaibhavk Sep 3, 2020
1ebdce3
DEV-63945-implementation of discovery filtering.
lmshubhashri Sep 4, 2020
770351e
DEV-63945-logging type modifications.
lmshubhashri Sep 4, 2020
062d411
DEV-63845- fixed build failures.
lmshubhashri Sep 7, 2020
3093293
DEV-63945- implemented update filter scenario.
lmshubhashri Sep 7, 2020
04fa981
DEV-63945- added unit test cases and address review comments.
lmshubhashri Sep 8, 2020
27710c8
DEV-63945- toml file changes.
lmshubhashri Sep 8, 2020
a781707
DEV-63945- review comments.
lmshubhashri Sep 8, 2020
bfb8e65
DEV-63945-review comments addressed.
lmshubhashri Sep 9, 2020
a480498
DEV-63945- reverted incorrect changes from lm-sdk.
lmshubhashri Sep 9, 2020
ad9bf96
Merge pull request #61 in DEV/k8s-argus from feature/DEV-63945-discov…
lmshubhashri Sep 9, 2020
97da650
V4.0.0 changes 2 (#143)
vkumbhar94 Sep 11, 2020
836c58e
Merge branch 'master' into develop
vkumbhar94 Sep 11, 2020
912c55c
DEV-63945- fixed issue with invalid keys in expression.
lmshubhashri Sep 11, 2020
29b823f
removed uncaught conflict
vkumbhar94 Sep 11, 2020
6dbc974
DEV-63945-unit test for back slash.
lmshubhashri Sep 11, 2020
598c1c3
DEV-63945-formatting.
lmshubhashri Sep 11, 2020
c3f7cff
Merge pull request #63 in DEV/k8s-argus from feature/DEV-63945-discov…
lmshubhashri Sep 11, 2020
03c1287
DEV-64472- handled back slash value in labelKey for evaluating filter…
lmshubhashri Sep 12, 2020
8d6e154
DEV-64472-handled characters which are not supported by govaluate lib…
lmshubhashri Sep 16, 2020
5be9088
DEV-64472-corrected typo.
lmshubhashri Sep 16, 2020
8f36ee1
Merge pull request #64 in DEV/k8s-argus from bugfix/DEV-64472-handle-…
lmshubhashri Sep 17, 2020
687c384
DEV-64223-implemented periodic delete for dangling resources.
lmshubhashri Sep 17, 2020
ec299ec
Merge pull request #48 in DEV/k8s-argus from TECHOPS-39286-argus-shou…
kaladaLM18 Sep 17, 2020
da9dc08
Merge branch 'develop' into feature/DEV-64223-periodic-delete
lmshubhashri Sep 18, 2020
8499bc7
DEV-64911: Handling regex error parse
lmvaibhavk Sep 18, 2020
7d30e3c
DEV-64908-fixed hpa implementation as per new code structure.
lmshubhashri Sep 18, 2020
d5129b9
feature/DEV-64908: added worker channel for hpa
lmvaibhavk Sep 19, 2020
9933593
Merge pull request #67 in DEV/k8s-argus from feature/DEV-64908-fix-HP…
lmvaibhavk Sep 20, 2020
99d69f6
go-mod: migrate repository to go mod
lmvaibhavk Sep 20, 2020
968d366
go-mod: recreate vendor with go.mod
lmvaibhavk Sep 20, 2020
0c6c188
go-mod: Update vendor
lmvaibhavk Sep 20, 2020
ee8c356
go-mod: run tidy and recreate go.sum
lmvaibhavk Sep 20, 2020
0b7d2c7
Merge pull request #66 in DEV/k8s-argus from DEV-64911-regex-error to…
lmvaibhavk Sep 21, 2020
ce6663b
Merge branch 'develop' into feature/DEV-64223-periodic-delete
lmshubhashri Sep 21, 2020
efbe1c2
DEV-64395 log k8s version and helm chart details in clsuter device group
pranay-lonkar-logicmonitor Sep 21, 2020
57783a4
DEV-64395 cron job run at midnight
pranay-lonkar-logicmonitor Sep 21, 2020
4a5894f
DEV-64395 moved GetNamespaceList to namespce file
pranay-lonkar-logicmonitor Sep 21, 2020
153c81a
index-bound: Merge pull request #66 in DEV/k8s-argus from DEV-64911-…
vkumbhar94 Sep 21, 2020
39f970e
Merge branch 'master' into develop
vkumbhar94 Sep 21, 2020
1dba28b
Merge pull request #68 in DEV/k8s-argus from go-mod-migration to develop
lmvaibhavk Sep 21, 2020
7d5deeb
DEV-64223- changed func name and context in logging.
lmshubhashri Sep 21, 2020
eda3a29
Merge pull request #65 in DEV/k8s-argus from feature/DEV-64223-period…
lmshubhashri Sep 21, 2020
f37e3c3
DEV-64395 refactored code and added some test cases
pranay-lonkar-logicmonitor Sep 21, 2020
304e358
Merge branch 'develop' into feature/DEV-64395-log-k8s-and-helm-versio…
pranay-lonkar-logicmonitor Sep 22, 2020
3b1807c
DEV-64395 refactored code
pranay-lonkar-logicmonitor Sep 22, 2020
c0024bf
Discovery filtering implementation (#148)
shubhashri12 Sep 23, 2020
79041a1
DEV-64395 read helm chart details from configmap annotations
pranay-lonkar-logicmonitor Sep 24, 2020
c40b374
DEV-64395 refatored cron job code
pranay-lonkar-logicmonitor Sep 24, 2020
720d38f
DEV-64395 refactored code
pranay-lonkar-logicmonitor Sep 25, 2020
c9d888b
DEV-53897- Updated displayName for Pods by appending respective names…
lmshubhashri Sep 28, 2020
2bf1008
DEV-64395 refactored code
pranay-lonkar-logicmonitor Sep 29, 2020
a79a064
Merge pull request #69 in DEV/k8s-argus from feature/DEV-64395-log-k8…
pranay-lonkar-logicmonitor Sep 29, 2020
3e0318b
Merge pull request #71 in DEV/k8s-argus from feature/DEV-53897-duplic…
lmshubhashri Sep 29, 2020
db685c9
DEV-65158: converted for kind of loop to do while
lmvaibhavk Sep 29, 2020
d7d2013
Merge pull request #72 in DEV/k8s-argus from DEV-65158-grpc-conn to d…
lmvaibhavk Sep 30, 2020
91c7e5a
DEVTS-9220 fixed system.ips property issue in add device functionality
pranay-lonkar-logicmonitor Oct 2, 2020
6332f30
DEVTS-9220 fixed system.ips property issue
pranay-lonkar-logicmonitor Oct 5, 2020
e300302
Merge pull request #73 in DEV/k8s-argus from bugfix/DEVTS-9220-discov…
pranay-lonkar-logicmonitor Oct 6, 2020
401f7fc
Release-4.2.0 (#150)
pranaylonkar19 Oct 8, 2020
28ac48a
Merge remote-tracking branch 'origin/master' into develop
vkumbhar94 Oct 8, 2020
fc4041b
DEV-65186: Fixed resource name and device name to displayname. Typically
lmvaibhavk Oct 17, 2020
2a14217
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 19, 2020
2e62386
Merge pull request #75 in DEV/k8s-argus from DEV-65186-hpa-changes to…
lmvaibhavk Oct 19, 2020
c28b39e
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 21, 2020
4181331
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 22, 2020
bf85b67
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 23, 2020
b92c8ee
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 23, 2020
61fcde6
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 23, 2020
e48b912
DEV-64397 updated docs
pranay-lonkar-logicmonitor Oct 23, 2020
da43bd3
DEV-64397 updated docs - added syntax highlighter
pranay-lonkar-logicmonitor Oct 23, 2020
fcf2ff8
DEV-64397 updated docs - removed roadmap and device tree, added all h…
pranay-lonkar-logicmonitor Oct 28, 2020
0bd6cb4
DEV-65186: added hpa discovery filtering
lmvaibhavk Oct 28, 2020
9b73445
Merge pull request #76 in DEV/k8s-argus from DEV-65186-hpa-disc-filte…
lmvaibhavk Oct 29, 2020
d2bf655
DEV-65186: Enable alerts on HPA
lmvaibhavk Oct 29, 2020
a3c24b2
Merge pull request #77 in DEV/k8s-argus from DEV-65186-hpa-disc-filte…
lmvaibhavk Oct 29, 2020
47a6c55
DEV-64397 updated docs
pranay-lonkar-logicmonitor Nov 4, 2020
811e142
Merge branch 'develop' into DEV-64397-update-github-docs
pranay-lonkar-logicmonitor Nov 4, 2020
0915ad2
DEV-64397 updated docs
pranay-lonkar-logicmonitor Nov 4, 2020
87d07ee
Merge pull request #74 in DEV/k8s-argus from DEV-64397-update-github-…
pranay-lonkar-logicmonitor Nov 9, 2020
8985de3
DEV-65940-Unique names for resources handling..
lmshubhashri Nov 18, 2020
667edd9
DEV-65940- updating device cache on check n update call.
lmshubhashri Nov 18, 2020
57160b2
DEV-66059 added support for AWS Fargate
pranay-lonkar-logicmonitor Nov 18, 2020
ff2ba76
dev-vk: use logicmonitor lm-sdk-go v2 release lib, since logicmonitor
lmvaibhavk Nov 23, 2020
08b20f7
DEV-65940- changed naming format to contain resourceType.
lmshubhashri Nov 23, 2020
d582b3d
DEVTS-9598-Added support for filtering by resource name containing sp…
lmshubhashri Nov 24, 2020
f86831f
dev-vk: format go files and imports
lmvaibhavk Nov 24, 2020
5eebd5d
DEV-65940- Fixed unit test cases, issue related to auto deletion of r…
lmshubhashri Nov 25, 2020
fffd0e0
DEV-65940- fixed build issue.
lmshubhashri Nov 25, 2020
7279a3b
DEV-65940-corrected resourcetype.
lmshubhashri Nov 25, 2020
4abde78
dev-vk: removed vkumbhar94 from go mod
lmvaibhavk Nov 25, 2020
fe41a50
Merge pull request #79 in DEV/k8s-argus from feature/DEV-66059-handle…
pranay-lonkar-logicmonitor Nov 26, 2020
4ea039d
DEV-66613 fixed delete devices issue
pranay-lonkar-logicmonitor Nov 27, 2020
d7475b4
DEV-65940-Handled multiple device conflict scenario and restricted re…
lmshubhashri Nov 27, 2020
1b02386
DEV-65940- code refactor and fixed build issue
lmshubhashri Nov 30, 2020
8d9561f
Merge pull request #80 in DEV/k8s-argus from dev-vk-lm-sdk-go to develop
lmvaibhavk Nov 30, 2020
04f902e
DEV-65940-golint issue fix.
lmshubhashri Dec 1, 2020
867fbed
DEV-65940- compile error resolved.
lmshubhashri Dec 1, 2020
40be233
Merge branch 'develop' into feature/DEV-65940-unique-naming-approach-…
lmshubhashri Dec 1, 2020
63a7e94
DEV-65940 - fixed lint issue.
lmshubhashri Dec 1, 2020
c81f6b9
DEV-65940-fixed issue with deployment type for same hostname
lmshubhashri Dec 1, 2020
837b78a
DEV-66613 removed unused method
pranay-lonkar-logicmonitor Dec 1, 2020
3e0a51f
Merge branch 'develop' into bugfix/DEV-66613-bug-argus-not-putting-de…
pranay-lonkar-logicmonitor Dec 1, 2020
7ce9af2
Merge pull request #81 in DEV/k8s-argus from bugfix/DEVTS-9598-filter…
lmshubhashri Dec 2, 2020
b99ce01
Merge branch 'develop' into bugfix/DEV-66613-bug-argus-not-putting-de…
pranay-lonkar-logicmonitor Dec 2, 2020
62db198
DEV-65940-fixed issue with node resource type.
lmshubhashri Dec 2, 2020
a688efb
DEV-65940- fixed build issue.
lmshubhashri Dec 3, 2020
6f2ee67
DEV-66613 placed resource deletion timestamp logic at central place
pranay-lonkar-logicmonitor Dec 3, 2020
c146211
DEV-65940- fixed issue with moving devices to conflicts group.
lmshubhashri Dec 3, 2020
a239f1e
DEV-66613 check if property exists with same value
pranay-lonkar-logicmonitor Dec 3, 2020
f018326
DEV-65940- review comments
lmshubhashri Dec 3, 2020
6e4c5bd
Merge branch 'develop' into feature/DEV-65940-unique-naming-approach-…
lmshubhashri Dec 3, 2020
ca998ed
DEV-65940-removed unused code.
lmshubhashri Dec 3, 2020
d060081
DEV-65940- fixed issue when fullname is enabled, existing conflicting…
lmshubhashri Dec 4, 2020
6997e52
dev-vk: Released custom lm-sdk-go version with rate limit header patch
lmvaibhavk Dec 7, 2020
310bdec
Merge pull request #83 in DEV/k8s-argus from dev-vk-lm-sdk-go to develop
lmvaibhavk Dec 7, 2020
0c5c31c
dev-patch: update lm-sdk-go to newer version v2.0.0-argus2 wherein
lmvaibhavk Dec 8, 2020
b29211f
Merge pull request #84 in DEV/k8s-argus from dev-patch-api-fix to dev…
lmvaibhavk Dec 8, 2020
7de9275
DEV-used update property api for updating system categories.
lmshubhashri Dec 8, 2020
464dd1d
DEV-65940- fixed build failure.
lmshubhashri Dec 8, 2020
588f9f4
DEV-65940- review comments fixed.
lmshubhashri Dec 9, 2020
7b0a2ad
Merge branch 'develop' into bugfix/DEV-66613-bug-argus-not-putting-de…
pranay-lonkar-logicmonitor Dec 9, 2020
033324b
DEV-65940- added rate limit headers in lm-sdk-go.
lmshubhashri Dec 9, 2020
0c67e1b
DEV-66613 added Patch API for device update
pranay-lonkar-logicmonitor Dec 9, 2020
f25031a
DEV-66613 added Patch API for device update
pranay-lonkar-logicmonitor Dec 9, 2020
a1288f2
DEV-65940- code refactor
lmshubhashri Dec 9, 2020
af7e245
Merge branch 'develop' into feature/DEV-65940-unique-naming-approach-…
lmshubhashri Dec 9, 2020
b95ebea
DEV-65940- updated lm-sdk reference.
lmshubhashri Dec 9, 2020
3519dca
Merge pull request #78 in DEV/k8s-argus from feature/DEV-65940-unique…
lmshubhashri Dec 10, 2020
2a000dd
Merge branch 'develop' into bugfix/DEV-66613-bug-argus-not-putting-de…
pranay-lonkar-logicmonitor Dec 10, 2020
ad07b23
DEV-66613 add resource deletion timestamp
pranay-lonkar-logicmonitor Dec 22, 2020
47e515f
DEV-66613 refactored delete devices code
pranay-lonkar-logicmonitor Dec 23, 2020
07a182f
DEV-66613 trim name before appending uuid
pranay-lonkar-logicmonitor Dec 30, 2020
cc0ad1b
DEV-66613 changed func name
pranay-lonkar-logicmonitor Jan 4, 2021
be47b90
DEV-66613 used Patch API to move deleted device
pranay-lonkar-logicmonitor Jan 11, 2021
acddc2d
DEV-66613 resolved rename issue for deleted device
pranay-lonkar-logicmonitor Jan 12, 2021
dcdb5bb
Merge pull request #82 in DEV/k8s-argus from bugfix/DEV-66613-bug-arg…
pranay-lonkar-logicmonitor Jan 13, 2021
5e5efb8
Dev 5.0.0 release (#152)
vkumbhar94 Jan 13, 2021
d12c3e0
Merge branch 'master' into develop
vkumbhar94 Jan 13, 2021
936662d
DEV-67526 default properties on device group
pranay-lonkar-logicmonitor Jan 15, 2021
57f338b
Merge pull request #88 in DEV/k8s-argus from feature/DEV-70008-add-ac…
lmshubhashri Jan 19, 2021
dd3a302
Merge pull request #88 in DEV/k8s-argus from feature/DEV-70008-add-ac…
shubhashri12 Jan 19, 2021
52896dd
Merge branch 'master' into develop
vkumbhar94 Jan 19, 2021
727d685
test(*): Add mockgen lib and update build configs. Implement sample t…
lmvaibhavk Jan 29, 2021
8c8b082
Merge branch 'develop' into feature/DEV-67526-configurable-terminatio…
pranay-lonkar-logicmonitor Feb 3, 2021
560936f
feat(watchers): generate SelfLink custom property on all devices
lmvaibhavk Feb 9, 2021
27a63c4
Merge branch 'develop' into feature/DEV-67526-configurable-terminatio…
pranay-lonkar-logicmonitor Feb 9, 2021
bd56b9c
DEV-67526 feat(deleteDevices) default properties
pranay-lonkar-logicmonitor Feb 12, 2021
cea4ee6
DEV-67526 feat(deleteDevices) default properties
pranay-lonkar-logicmonitor Feb 15, 2021
7510f55
Merge pull request #87 in DEV/k8s-argus from feature/DEV-67526-config…
pranay-lonkar-logicmonitor Feb 16, 2021
048d5ff
Merge pull request #90 in DEV/k8s-argus from DEV-68258-argus-local-de…
Feb 22, 2021
8a6a88f
Merge pull request #93 in DEV/k8s-argus from DEV-67526-configurable-t…
pranay-lonkar-logicmonitor Feb 24, 2021
4ae3e4e
Merge pull request #95 in DEV/k8s-argus from bugfix/DEV-72789-correct…
lmshubhashri Mar 3, 2021
efabf20
feat(headless-services): set hostname to "name-res-namespace"
lmvaibhavk Mar 8, 2021
94ffb73
feat(argus app version): log argus app version
pranay-lonkar-logicmonitor Mar 10, 2021
f56d223
feat(device-group-props): allow users to mention device group properties
Mar 15, 2021
831dac3
feat(externalized-intervals): Read periodic sync, periodic delete and…
lmshubhashri Mar 25, 2021
e3b9137
fix(hpa): set hostname in name-resource-namespace format for HPA
pranay-lonkar-logicmonitor Mar 30, 2021
c8a7677
fix(externalized-intervals): set default values for intervals
pranay-lonkar-logicmonitor Mar 31, 2021
d354854
Merge remote-tracking branch 'stash-dev/develop' into develop
lmshubhashri Apr 5, 2021
c5947d8
fix(device group): fetch device groups by parentId and name
pranay-lonkar-logicmonitor Apr 12, 2021
d284aee
Added docker token for travis build.
lmshubhashri Apr 14, 2021
178c38a
passed image version param in script
lmshubhashri Apr 15, 2021
680338f
Merge pull request #104 in DEV/k8s-argus from release-5.1.0 to develop
lmshubhashri Apr 15, 2021
5a16831
fix(namespace groups): add namespace groups
pranay-lonkar-logicmonitor Apr 19, 2021
44fb38a
feat(argus metrics): expose Argus metrics endpoint
pranay-lonkar-logicmonitor Apr 20, 2021
3da07d1
fix(empty-devicename): Added check for empty device name.
lmshubhashri May 11, 2021
043bba7
fix(device group): fetch device groups by parentId and name
pranay-lonkar-logicmonitor Apr 12, 2021
c797788
fix(namespace groups): add namespace groups
pranay-lonkar-logicmonitor Apr 19, 2021
1e79bdf
fix(empty-devicename): Added check for empty device name.
lmshubhashri May 11, 2021
b29425d
Merge branch 'master' into develop
shubhashri12 May 11, 2021
2222938
travis-build file update
lmshubhashri May 11, 2021
b593e7b
typo corrected.
lmshubhashri May 11, 2021
7c74e6f
fixed build error
lmshubhashri May 11, 2021
2987b36
feat(*): improve application performance in terms of LM calls, etc
lmvaibhavk May 24, 2021
a33884d
feat(argus): remove resource conflicts handling
lmvaibhavk May 26, 2021
aac2f4d
feat(argus): remove conflict category on upgrade
lmvaibhavk May 26, 2021
5962672
fix(old-cache-impl): remove old cache impl
lmvaibhavk May 27, 2021
e7eca60
feat(watcher-handlers): don't update previous resource using UID match
lmvaibhavk Jun 1, 2021
f3482ca
refactor(gomodguard): enable gomodguard to block and allow modules
lmvaibhavk Jun 2, 2021
527939e
Release 5.1.2 (#165)
vkumbhar94 Jul 1, 2021
725a498
feat(*): improve resource group performance
lmvaibhavk Jul 2, 2021
12ce3b0
Merge branch 'master' into develop
shubhashri12 Jul 5, 2021
c571c59
fix(cscutil): handle uninitalized csc client error
lmvaibhavk Jul 5, 2021
c85b30e
feat(*): pass convert arbitrary logs to contextual logs
lmvaibhavk Jul 6, 2021
c19c5d6
fix(config): gomnd lint port value
lmvaibhavk Jul 6, 2021
28a0c5c
feat(watcher): create parallel event processor to speed up
lmvaibhavk Jul 7, 2021
46b5905
fix(*): fix the bugs
lmvaibhavk Jul 8, 2021
c8ef1ec
feat(enums,sync): use interface for k8s clients and sync ns groups
lmvaibhavk Jul 12, 2021
02e1f73
feat(watcher): handle resource deletion with stale object context
lmvaibhavk Jul 13, 2021
e82ccd6
Pull request #126: DEV-79629, DEV-79394
lmvaibhavk Jul 16, 2021
f0d38d7
Release 6.0.0 beta (#169)
vkumbhar94 Jul 28, 2021
d287a96
feat(annotations): populate custom properties with annotations
rohitphataklm Aug 9, 2021
65a377f
feat(prom-metrics): expose argus metrics in openmetrics compatible fo…
lmvaibhavk Aug 9, 2021
b40b808
fix(init-rg): set disable alerting as provided by user
lmvaibhavk Aug 16, 2021
61702a8
feat(discovery): added discovery for daemonset, replicaset, statefulset
rohitphataklm Aug 17, 2021
a06242f
fix(init-rg): set disable alerting as provided by user
lmvaibhavk Aug 17, 2021
756d078
fix(init-tree): handle 404 and fallback to root as parent group
lmvaibhavk Aug 17, 2021
3860349
fix(ip-change): update resource if IP has changed
lmvaibhavk Aug 26, 2021
4edc265
fix(pod): add missing auto.nodename prop
lmvaibhavk Sep 2, 2021
37fd97b
feat(profiling): enable go profiler
lmvaibhavk Sep 6, 2021
4d47b6f
fix(upgrade): ignore disabled resource
lmvaibhavk Sep 9, 2021
2586a1c
Release 6.0.0 (#170)
vkumbhar94 Sep 14, 2021
98a5c9d
dev-vk: diff (#171)
vkumbhar94 Sep 15, 2021
ca0c5a5
Merge branch 'master' into develop
vkumbhar94 Sep 15, 2021
17a7237
fix(conflcits): conflicts
vkumbhar94 Sep 15, 2021
3ed9729
fix(sync): mark delete once
lmvaibhavk Sep 29, 2021
a8531ca
Release/6.0.3 (#174)
vkumbhar94 Oct 5, 2021
b22d636
Merge branch 'master' into develop
vkumbhar94 Oct 5, 2021
32ea881
Merge branch 'master' into develop
vkumbhar94 Oct 5, 2021
f10abea
reverse (#178)
vkumbhar94 Oct 5, 2021
3cbc352
dev-vk: as (#179)
vkumbhar94 Oct 5, 2021
134a35c
Merge branch 'master' into develop
vkumbhar94 Oct 5, 2021
857e0d8
fix(cache): read all chunks of api response
lmvaibhavk Oct 6, 2021
95bc471
feat(discovery): added discovery for resources
rohitphataklm Oct 6, 2021
42a6427
Release/6.0.4 (#183)
vkumbhar94 Oct 6, 2021
23bce46
Merge branch 'master' into develop
vkumbhar94 Oct 6, 2021
672f38e
fix(sync): delete duplicate resources
lmvaibhavk Oct 7, 2021
ef13baf
fix(sync): delete duplicate resources (#185)
vkumbhar94 Oct 8, 2021
78710db
feat(sdk-update): update argus with released sdk version
Oct 19, 2021
ce95817
Pull request #144: fix(deleted-group): Fixed creation of _deleted res…
lmshubhashri Oct 27, 2021
593b6bc
Merge remote-tracking branch 'stash/develop' into develop
lmshubhashri Oct 28, 2021
4039548
Merge branch 'release-6.0.6' into develop
shubhashri12 Oct 28, 2021
d1e89e2
Release 6.1.0
shubhashri12 Nov 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build/*
build
coverage.txt
coverage.html
pkg/mocks
Expand All @@ -7,4 +7,4 @@ pkg/mocks
argus.rc
localrun.logs
scripts/ds/*_gen.xml
venv
venv
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ linters-settings:
- github.com/logicmonitor/lm-sdk-go
- github.com/logicmonitor/k8s-collectorset-controller
- github.com/pkg/profile
- github.com/senseyeio/duration

blocked:
modules:
Expand Down
3 changes: 3 additions & 0 deletions cmd/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ var watchCmd = &cobra.Command{ // nolint: exhaustivestruct
return
}

userAgent := constants.UserAgentBase + constants.Version
lmClient.LM.SetUserAgent(&userAgent)

if util.IsLocal() {
logrus.SetFormatter(&logrus.TextFormatter{ // nolint: exhaustivestruct
ForceColors: false,
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require (
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/go-openapi/runtime v0.19.28
github.com/go-openapi/strfmt v0.20.1
github.com/go-openapi/runtime v0.19.31
github.com/go-openapi/strfmt v0.20.2
github.com/golang/mock v1.4.4
github.com/golang/protobuf v1.4.2 // indirect
github.com/google/go-cmp v0.5.4
Expand All @@ -23,10 +23,11 @@ require (
github.com/jonboulle/clockwork v0.2.2 // indirect
github.com/kelseyhightower/envconfig v1.4.0
github.com/logicmonitor/k8s-collectorset-controller v2.0.0+incompatible
github.com/logicmonitor/lm-sdk-go v2.0.0-argus5+incompatible
github.com/logicmonitor/lm-sdk-go v1.0.0-argus1
github.com/pkg/profile v1.6.0
github.com/prometheus/client_golang v0.9.3
github.com/robfig/cron/v3 v3.0.1
github.com/senseyeio/duration v0.0.0-20180430131211-7c2a214ada46
github.com/sirupsen/logrus v1.4.2
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/spf13/cobra v0.0.3
Expand All @@ -37,7 +38,6 @@ require (
go.uber.org/zap v1.17.0 // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
google.golang.org/grpc v1.29.1
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
k8s.io/api v0.17.0
k8s.io/apimachinery v0.17.0
Expand Down
108 changes: 66 additions & 42 deletions go.sum

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

import "github.com/logicmonitor/k8s-argus/cmd"
import (
"github.com/logicmonitor/k8s-argus/cmd"
)

func main() {
cmd.Execute()
Expand Down
20 changes: 17 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Config struct {
EnableNewResourceTree bool `yaml:"enable_new_resource_tree"`
EnableNamespacesDeletedGroups bool `yaml:"enable_namespaces_deleted_groups"`
RegisterGenericFilter bool `yaml:"register_generic_filter"`
DeleteArgusPodAfter *string `yaml:"delete_argus_pod_after"`
DeleteInfraPodsAfter *string `yaml:"delete_infra_pods_after"`
DisableResourceMonitoring []enums.ResourceType `yaml:"disable_resource_monitoring"`
DisableResourceAlerting []enums.ResourceType `yaml:"disable_resource_alerting"`
TelemetryCronString *string `yaml:"telemetry_cron_string"`
Expand Down Expand Up @@ -225,7 +225,21 @@ func postProcess(uconf *Config) {
}
}

func ResourceContains(arr []enums.ResourceType, rt enums.ResourceType) bool {
for _, v := range arr {
if v == rt {
return true
}
}
return false
}

func postLoad(pconf *Config, uconf *Config) {
// Disabling Discovery for ConfigMaps for now
if !ResourceContains(uconf.DisableResourceMonitoring, enums.ConfigMaps) {
logrus.Debugln("Adding ConfigMaps into DisabledResourceMonitoring")
uconf.DisableResourceMonitoring = append(uconf.DisableResourceMonitoring, enums.ConfigMaps)
}
t := reflect.TypeOf(pconf).Elem()
v := reflect.ValueOf(pconf).Elem()
nv := reflect.ValueOf(uconf).Elem()
Expand Down Expand Up @@ -282,9 +296,9 @@ func validateConfig(conf *Config) {
defaultQueueSize := 100
conf.ParallelRunnerQueueSize = &defaultQueueSize
}
if conf.DeleteArgusPodAfter == nil {
if conf.DeleteInfraPodsAfter == nil {
scheduledDeleteTime := "P10DT0H0M0S"
conf.DeleteArgusPodAfter = &scheduledDeleteTime
conf.DeleteInfraPodsAfter = &scheduledDeleteTime
}
if conf.TelemetryCronString == nil {
// Defaults to 10 minute if not specified
Expand Down
12 changes: 12 additions & 0 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const (
NodeResourceGroupName = "Nodes"
// NamespacesGroupName is the namespaces resource group name in the cluster resource group.
NamespacesGroupName = "Namespaces"
// ClusterScopedGroupName is the resource group name for Cluster Scoped Resources in the cluster resource group.
ClusterScopedGroupName = "ClusterScoped"
)

const (
Expand Down Expand Up @@ -90,6 +92,16 @@ const (
K8sAPIVersionAppsV1 = "apps/v1"
// K8sAutoscalingV1 is the version 'autoscaling/v1' of k8s api
K8sAutoscalingV1 = "autoscaling/v1"
// K8sAPIVersionBatchV1 is the version 'batch/v1' of k8s api
K8sAPIVersionBatchV1 = "batch/v1"
// K8sAPIVersionBatchV1Beta1 is the version 'batch/v1beta1' of k8s api
K8sAPIVersionBatchV1Beta1 = "batch/v1beta1"
// K8sAPIVersionExtensionsV1Beta1 is the version 'extensions/v1beta1' of k8s api
K8sAPIVersionExtensionsV1Beta1 = "extensions/v1beta1"
// K8sAPIVersionNetworkingV1 is the version 'networking/v1' of k8s api
K8sAPIVersionNetworkingV1 = "networking/v1"
// K8sAPIVersionNetworkingV1Beta1 is the version 'networking/v1beta1' of k8s api
K8sAPIVersionNetworkingV1Beta1 = "networking/v1beta1"
)

const (
Expand Down
72 changes: 29 additions & 43 deletions pkg/enums/enum_template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (
"fmt"
"strings"

"github.com/logicmonitor/k8s-argus/pkg/constants"
appsv1 "k8s.io/api/apps/v1"
autoscalingv1 "k8s.io/api/autoscaling/v1"
corev1 "k8s.io/api/core/v1"
{{- range $value := .Resources.Apis}}{{- if ne $value.Alias "" }}
{{ $value.Alias }} "{{ $value.PackageName }}"
{{- end}}{{- end }}
"k8s.io/apimachinery/pkg/runtime"
)

{{- $resources := .Resources.Resources }}
{{ $apis := .Resources.Apis }}
// ResourceType resource
type ResourceType uint32

Expand Down Expand Up @@ -41,7 +42,6 @@ func (resourceType ResourceType) MarshalText() ([]byte, error) {
switch resourceType {
{{- range $value := .Resources.Resources }}
case {{ $value.LongName }}:

return []byte("{{ $value.LowerCase }}"), nil
{{- end }}
}
Expand All @@ -54,7 +54,7 @@ func ParseResourceType(resourceType string) (ResourceType, error) {
{{- range $value := .Resources.Resources }}{{ $length := len $value.ParsedResourceType }}{{ if last $length -1}}
case {{ range $i, $v := $value.ParsedResourceType }}"{{$v}}"{{ if last $length $i}}, {{ end}}{{ end }}:
return {{$value.LongName}}, nil
{{ end }}
{{- end }}
{{- end }}
}

Expand All @@ -66,7 +66,6 @@ func (resourceType ShortResourceType) MarshalText() ([]byte, error) {
switch ResourceType(resourceType) {
{{- range $value := .Resources.Resources }}
case {{ $value.LongName}}:

return []byte("{{ (index $value.ShortName 0) }}"), nil
{{- end}}
}
Expand All @@ -81,7 +80,7 @@ func ParseShortResourceType(shortResourceType string) (ShortResourceType, error)
{{- range $value := .Resources.Resources }}{{ $length := len $value.ShortName }}{{ if last $length -1}}
case {{ range $i, $v := $value.ShortName }}"{{$v}}"{{ if last $length $i}}, {{ end}}{{ end }}:
l = {{ $value.LongName}}
{{end}}
{{- end}}
{{- end}}
default:

Expand All @@ -96,21 +95,31 @@ func (resourceType *ResourceType) Title() string {
switch *resourceType {
{{- range $value := .Resources.Resources }}
case {{ $value.LongName }}:

return "{{ $value.DisplayName}}"
{{- end}}
}

return "Unknown"
}

// nolint: clyclop
func (resourceType *ResourceType) TitlePlural() string {
switch *resourceType {
{{- range $value := .Resources.Resources }}
case {{ $value.LongName }}:
return "{{- titlePlural $value }}"
{{- end}}
}

return "Unknown"
}

// nolint: clyclop
func (resourceType *ResourceType) K8SObjectType() runtime.Object {
switch *resourceType {
{{- range $value := .Resources.Resources }}{{ if notNil $value.Apis }}
case {{ $value.LongName }}:

return &{{ $value.Apis }}.{{ $value.DisplayName }}{} // nolint: exhaustivestruct{{ end }}{{- end}}
return &{{ $value.Apis }}.{{ k8sObjectType $value }}{} // nolint: exhaustivestruct{{ end }}{{- end}}
case {{ getCases .Resources.Resources }}:
return nil
default:
Expand All @@ -122,23 +131,11 @@ func (resourceType *ResourceType) K8SObjectType() runtime.Object {
// nolint: clyclop
func (resourceType *ResourceType) K8SAPIVersion() string {
switch *resourceType {
// core v1 version
case Pods, Services, Nodes, Namespaces:

return constants.K8sAPIVersionV1
// apps api group apps/v1 version
case Deployments, DaemonSets, ReplicaSets, StatefulSets:

return constants.K8sAPIVersionAppsV1
// autoscaling api group v1 version
case Hpas:

return constants.K8sAutoscalingV1
case ETCD, Unknown:

return ""
{{- range $value := $apis }}
case {{ apiVersion $resources $value}}:
return "{{ api $value }}"
{{- end }}
default:

return ""
}
}
Expand All @@ -156,23 +153,12 @@ func (resourceType *ResourceType) IsNamespaceScopedResource() bool {

func (resourceType *ResourceType) APIGroup() string {
switch *resourceType {
// core v1 version
case Pods, Services, Nodes, Namespaces:

return ""
// apps api group apps/v1 version
case Deployments, DaemonSets, ReplicaSets, StatefulSets:

return "apps"
// autoscaling api group v1 version
case Hpas:

return "autoscaling"
case ETCD, Unknown:

return ""
{{- $apiGroups := getApiGroups .Resources.Apis }}
{{- range $value := $apiGroups }}
case {{ apiGroup $resources $apis $value }}:
return "{{- apiGroupValue $value }}"
{{- end }}
default:

return ""
}
}
Expand Down
Loading