Commit 9bda00b
authored
feat: k8s resource recommendation service integration (#297)
* chore: refactored k8s resource service into common-lib
* chore: updated kubelink imports to common-lib module
* chore: updated kubelink vendor files
* feat: dynamic default parent gvk mapping and support for new method GetChildObjectsV2WithFilter added
* chore: updated common lib method signatrues as per new definitions
* chore: exported gvr constants
* chore: common-lib dependency updated to 'origin/feat/k8s-resource-recommendation'
* feat: added gvr const for rollout and cronjob
* feat: added new service const for resource optimizer
* feat: updated ManifestResponse struct
* feat: updated ManifestResponse struct with pointer
* fix: import cycle issue
* fix: added omitempty to ManifestResponse.RecommendedManifest
* chore: removed dead code flow
* chore: dependency updated to 'origin/feat/k8s-resource-recommendation'
* chore: dependency updated to 'origin/feat/k8s-resource-recommendation'
* chore: dependency updated to 'origin/feat/k8s-resource-recommendation'1 parent 52f0096 commit 9bda00b
472 files changed
Lines changed: 118265 additions & 6100 deletions
File tree
- chart-sync
- vendor
- github.com/devtron-labs/common-lib/constants
- ci-runner
- vendor
- github.com/devtron-labs/common-lib/constants
- common-lib
- constants
- k8sResource
- utils/k8s
- commonBean
- vendor
- github.com
- aws/aws-sdk-go/service/sts
- containerd
- containerd
- errdefs
- filters
- images
- labels
- errdefs
- devtron-labs/kubelink
- config
- internals/logger
- docker/go-connections
- nat
- sockets
- tlsconfig
- evanphx/json-patch
- go-errors/errors
- google
- go-cmp
- cmp
- internal
- diff
- flags
- value
- shlex
- hashicorp/golang-lru/v2/simplelru
- klauspost/compress/flate
- monochromegane/go-gitignore
- stretchr/testify/assert
- xlab/treeprint
- go.starlark.net
- internal
- compile
- spell
- resolve
- starlarkstruct
- starlark
- syntax
- golang.org/x
- net
- internal/socks
- proxy
- text
- encoding
- internal
- identifier
- unicode
- internal/utf8internal
- runes
- k8s.io
- apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme
- cli-runtime/pkg/resource
- client-go
- discovery/cached/memory
- openapi3
- openapi/cached
- restmapper
- sigs.k8s.io/kustomize
- api
- filters
- annotations
- fieldspec
- filtersutil
- fsslice
- iampolicygenerator
- imagetag
- labels
- nameref
- namespace
- patchjson6902
- patchstrategicmerge
- prefix
- refvar
- replacement
- replicacount
- suffix
- valueadd
- hasher
- ifc
- image
- internal
- accumulator
- builtins
- generators
- git
- kusterr
- plugins
- builtinconfig
- builtinhelpers
- execplugin
- fnplugin
- loader
- utils
- target
- utils
- validate
- konfig
- builtinpluginconsts
- krusty
- kv
- loader
- provenance
- provider
- resmap
- resource
- types
- kyaml
- comments
- errors
- ext
- fieldmeta
- filesys
- fn/runtime
- container
- exec
- runtimeutil
- starlark
- internal/forked/github.com
- go-yaml/yaml
- qri-io/starlib/util
- kio
- filters
- kioutil
- openapi
- kubernetesapi
- v1_21_2
- kustomizationapi
- order
- resid
- runfn
- sets
- sliceutil
- utils
- yaml
- internal/k8sgen/pkg
- labels
- selection
- util
- errors
- sets
- validation
- field
- merge2
- merge3
- schema
- walk
- git-sensor
- vendor
- github.com/devtron-labs/common-lib/constants
- image-scanner
- vendor
- github.com/devtron-labs/common-lib/constants
- kubelink
- bean
- config
- pkg/service
- commonHelmService
- helmApplicationService
- tests
- vendor
- github.com/devtron-labs/common-lib
- constants
- k8sResource
- utils/k8s
- commonBean
- kubewatch
- vendor
- github.com/devtron-labs/common-lib
- constants
- utils/k8s
- commonBean
- lens
- vendor
- github.com/devtron-labs/common-lib/constants
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
| 970 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
1194 | 1194 | | |
1195 | 1195 | | |
1196 | 1196 | | |
1197 | | - | |
| 1197 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
0 commit comments