-
Notifications
You must be signed in to change notification settings - Fork 20
Add metrics no metrics #266
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
suhasgummaswe
wants to merge
247
commits into
kyverno:main
Choose a base branch
from
nirmata:add-metrics-no-metrics
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Anushka Mittal <anushka@nirmata.com>
Signed-off-by: Anushka Mittal <138426011+anushkamittal2001@users.noreply.github.com>
Signed-off-by: Anushka Mittal <anushka@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Anushka Mittal <138426011+anushkamittal2001@users.noreply.github.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
upgrade chart version
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
…manifest executed to the rc1
Signed-off-by: puneet-nirmata <147153907+puneet-nirmata@users.noreply.github.com>
Signed-off-by: Jigar Joshi <jigar.joshi@nirmata.com>
Sync from release-0.1 to main branch
…e etcd (#82) * node selector and tolerations added in the config values.yaml * nodeSelector and tolerations added in the etcd.yaml spec * fixed the position of the nodeSelector and tolerations * codegen executed * make codegen executed * golangci-lint fixed * codegen generated again * removing all workflows apart from lint and codegen * codegen executed using the docker run --rm -v "$(pwd)":/workspace -w /workspace jnorwood/helm-docs:v1.11.0 make codegen * workflow changed to see what exectly is the difference getting committed * fixing the verify codegen workflow * chore: update generated code * Revert "removing all workflows apart from lint and codegen" This reverts commit f2ce1a3. * pinned down the action version of setup-go and checkout * golangci-lint fix executed * make codegen executed via local * chore: update generated code * fix codegen * change workflow * removing all workflows to isolate the issue * make codegen executed via the docker file * cloning kyverno into GOPATH_SHIM so openapi-gen can find its API packages * forcing verify codegen to read from the GOPATH * ordering of jobs changed so tools can be downloaded * removing shim logic * goModule mode turned on in the verify codegen stage * tools excluded from gitignore and pushed into the repo * install codegen commented * vendor based solution implemented to fix the verify-codegen * worflow given private access to repo * PAT used to check the workflows and the makefile * verify codegen reverted back to the working module * makefile changed to have the exact upstream makefile * fixed typo in the makefile * makefile copied from the OSS * tools deleted and ignored from codegen * removing the dependency from n4k and getting dependency on the kyverno/kyverno * go mod executed * makefile and codegen adjusted as per the public dependenice * Revert "makefile and codegen adjusted as per the public dependenice" This reverts commit 7978709. * adding dependency back to the enterprise kyverno * go mod tidy executed * go private support added in the makefile * Revert "removing all workflows to isolate the issue" This reverts commit 65fbf74. * codegen workflow reverted --------- Signed-off-by: Jigar Joshi <jigar.joshi@nirmata.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: krishbajaj1609 <krish.bajaj@nirmata.com>
* add quota limit and secret configuration for custom ssl * add comment for debug * fixing the issue with formatting the integer in argument to forcefully print integer in integeric form * update default value * make codegen executed * update documentation * make codegen executed * update documentation --------- Co-authored-by: Jigar Joshi <jigar.joshi@nirmata.com>
* gitignore updated to ignore .DS_store files * DBReadReplicaHosts introduced in the options * read replicas hosts introduced in the postgres config * readReplicaHosts passed in the db config * populated the value of the db replica hosts in the config * introduced the primaryDB and the readReplicaDBs in the struct and the constructor * parameter renamed from DB to primaryDB * readQuery function added * integrated the readQuery function instead of explicit primaryDB query * readQuery function integrated in the Get clusterephemeralreports function * struct and constructor changed to support the readReplicaDB * ReadQuery function introduced in the cpolr * closing rows after the error check * readQuery function integrated in the clusterpolicyreports * ReadQuery function introduced in the ephrdb along with changing structure and the constructor * readQuery function incorporated in the List * ReadQuery introduced in the Get function * struct and constructor changed of polrdb to accomodate the readReplicaDBs * ReadQuery integrated in the List functionality of polrdb * readQuery incorporated in the Get function of the polrdb * random shuffling of the readReplicas before executing the query * fixing issue with the primaryDB arguments * replacing math/rand/v2 with math/rand * locking and unlock only during the replica copy * seeding added for the randomization * readQueryRow function introduced to support the get calls of the models * removing nested locking and unlocking * new.go driver function call incorporated the read replicas * readReplicaHosts added in the values.yaml of the reports-server chart * db_read_replica_hosts added in the deployment.yaml template * multiDB structure introduced * multiDB structure incorporated * multiDB structure incorporated * added the readQuery method in the storage db * incorporated multiDB name in the cpolrDB * file renamed and typo fixed * readQueryRow fixed in the multiDB * multiDB injected in the cpolr * multiDB used in all the store functions * MultiDB added in the cephr struct and constructor, removed the read and readQueryrow method * multiDB incorporated in the cephr store functions * MultiDB added in the ephr struct and constructor, removed the read and readQueryrow method * multiDB incorporated in the ephr store functions * MultiDB added in the polr struct and constructor, removed the read and readQueryrow method * multiDB incorporated in the polr store functions * multiDB injected in the stores * Makefile added for the debugging command * readReplicaHosts and readReplicaHostsSecretKeyName added in the values.yaml * chart version bumped to 0.1.18-rc1 * readReplicaHosts added in the helpers.tpl * logging added in the cpolr * logging added in the cpolr * loggingss added for all the files in the storage dn * Revert "loggingss added for all the files in the storage dn" This reverts commit b286f97. * Revert "logging added in the cpolr" This reverts commit c38f124. * Revert "logging added in the cpolr" This reverts commit 6b0a80d. * make codegen executed * implemented Fisher–Yates shuffle to shuffle read replicas * makefile changes removed * unit test cases added for the all stores * go modules added for sql mocking * test cases removed as too difficult to manage with existing coding pattern * make codegen executed * chart version bumped to 0.1.18-rc.2 * make codegen command executed * string method changes reverted back
…contains special characters (#90) * fix: encode string to handle special chars in username and password * test: add unit and integrations tests for connecting to db with special chars * gomod changes --------- Signed-off-by: Suhas Gumma <suhasgummaswe@gmail.com>
* removing the port default value Remove the default port value of 5432 in reports-server So user should be able to pass host1:port1, host2:port2, … hostN:portN * chart version bumped to 0.1.19 * fixing linting issue with the G101 * make codegen executed
* [NDEV-22428][NDEV-22388]: Tolerations and NodeSelector support for the etcd (#82) (#86) * node selector and tolerations added in the config values.yaml * nodeSelector and tolerations added in the etcd.yaml spec * fixed the position of the nodeSelector and tolerations * codegen executed * make codegen executed * golangci-lint fixed * codegen generated again * removing all workflows apart from lint and codegen * codegen executed using the docker run --rm -v "$(pwd)":/workspace -w /workspace jnorwood/helm-docs:v1.11.0 make codegen * workflow changed to see what exectly is the difference getting committed * fixing the verify codegen workflow * chore: update generated code * Revert "removing all workflows apart from lint and codegen" This reverts commit f2ce1a3. * pinned down the action version of setup-go and checkout * golangci-lint fix executed * make codegen executed via local * chore: update generated code * fix codegen * change workflow * removing all workflows to isolate the issue * make codegen executed via the docker file * cloning kyverno into GOPATH_SHIM so openapi-gen can find its API packages * forcing verify codegen to read from the GOPATH * ordering of jobs changed so tools can be downloaded * removing shim logic * goModule mode turned on in the verify codegen stage * tools excluded from gitignore and pushed into the repo * install codegen commented * vendor based solution implemented to fix the verify-codegen * worflow given private access to repo * PAT used to check the workflows and the makefile * verify codegen reverted back to the working module * makefile changed to have the exact upstream makefile * fixed typo in the makefile * makefile copied from the OSS * tools deleted and ignored from codegen * removing the dependency from n4k and getting dependency on the kyverno/kyverno * go mod executed * makefile and codegen adjusted as per the public dependenice * Revert "makefile and codegen adjusted as per the public dependenice" This reverts commit 7978709. * adding dependency back to the enterprise kyverno * go mod tidy executed * go private support added in the makefile * Revert "removing all workflows to isolate the issue" This reverts commit 65fbf74. * codegen workflow reverted --------- Signed-off-by: Jigar Joshi <jigar.joshi@nirmata.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: krishbajaj1609 <krish.bajaj@nirmata.com> * Cherry pick 89 (#91) * add quota limit and secret configuration for custom ssl (#89) * add quota limit and secret configuration for custom ssl * add comment for debug * fixing the issue with formatting the integer in argument to forcefully print integer in integeric form * update default value * make codegen executed * update documentation * make codegen executed * update documentation --------- Co-authored-by: Jigar Joshi <jigar.joshi@nirmata.com> * make codegen executed --------- Co-authored-by: krishbajaj1609 <168710331+krishbajaj1609@users.noreply.github.com> * NDEV-22493: fix: handle PostgreSQL database connection when password contains special characters (#90) (#92) * fix: encode string to handle special chars in username and password * test: add unit and integrations tests for connecting to db with special chars * gomod changes --------- Signed-off-by: Suhas Gumma <suhasgummaswe@gmail.com> * Chart version bump 0.1.18 (#93) * chart version bumped to 0.1.18 * appVersion bumped to 0.1.17 * make codegen executed * Cherry pick #94 (#95) * make codegen executed and merge conflict resolution * make codegen executed * Cherry pick #88 rls 0.1 (#96) * [NDEV-22437]: replica DB support in the reports server (#88) * gitignore updated to ignore .DS_store files * DBReadReplicaHosts introduced in the options * read replicas hosts introduced in the postgres config * readReplicaHosts passed in the db config * populated the value of the db replica hosts in the config * introduced the primaryDB and the readReplicaDBs in the struct and the constructor * parameter renamed from DB to primaryDB * readQuery function added * integrated the readQuery function instead of explicit primaryDB query * readQuery function integrated in the Get clusterephemeralreports function * struct and constructor changed to support the readReplicaDB * ReadQuery function introduced in the cpolr * closing rows after the error check * readQuery function integrated in the clusterpolicyreports * ReadQuery function introduced in the ephrdb along with changing structure and the constructor * readQuery function incorporated in the List * ReadQuery introduced in the Get function * struct and constructor changed of polrdb to accomodate the readReplicaDBs * ReadQuery integrated in the List functionality of polrdb * readQuery incorporated in the Get function of the polrdb * random shuffling of the readReplicas before executing the query * fixing issue with the primaryDB arguments * replacing math/rand/v2 with math/rand * locking and unlock only during the replica copy * seeding added for the randomization * readQueryRow function introduced to support the get calls of the models * removing nested locking and unlocking * new.go driver function call incorporated the read replicas * readReplicaHosts added in the values.yaml of the reports-server chart * db_read_replica_hosts added in the deployment.yaml template * multiDB structure introduced * multiDB structure incorporated * multiDB structure incorporated * added the readQuery method in the storage db * incorporated multiDB name in the cpolrDB * file renamed and typo fixed * readQueryRow fixed in the multiDB * multiDB injected in the cpolr * multiDB used in all the store functions * MultiDB added in the cephr struct and constructor, removed the read and readQueryrow method * multiDB incorporated in the cephr store functions * MultiDB added in the ephr struct and constructor, removed the read and readQueryrow method * multiDB incorporated in the ephr store functions * MultiDB added in the polr struct and constructor, removed the read and readQueryrow method * multiDB incorporated in the polr store functions * multiDB injected in the stores * Makefile added for the debugging command * readReplicaHosts and readReplicaHostsSecretKeyName added in the values.yaml * chart version bumped to 0.1.18-rc1 * readReplicaHosts added in the helpers.tpl * logging added in the cpolr * logging added in the cpolr * loggingss added for all the files in the storage dn * Revert "loggingss added for all the files in the storage dn" This reverts commit b286f97. * Revert "logging added in the cpolr" This reverts commit c38f124. * Revert "logging added in the cpolr" This reverts commit 6b0a80d. * make codegen executed * implemented Fisher–Yates shuffle to shuffle read replicas * makefile changes removed * unit test cases added for the all stores * go modules added for sql mocking * test cases removed as too difficult to manage with existing coding pattern * make codegen executed * chart version bumped to 0.1.18-rc.2 * make codegen command executed * string method changes reverted back * make codegen executed * app version and version bumped * go mod tidy executed * fix script failure after timeout --------- Co-authored-by: krishbajaj1609 <krish.bajaj@nirmata.com> * chart version bumped to 0.1.20 and the app version upgraded to 0.1.18 * if host is empty skip the connection --------- Signed-off-by: Jigar Joshi <jigar.joshi@nirmata.com> Signed-off-by: Suhas Gumma <suhasgummaswe@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: krishbajaj1609 <krish.bajaj@nirmata.com> Co-authored-by: krishbajaj1609 <168710331+krishbajaj1609@users.noreply.github.com>
* etcd image configuration added in the reports server * image value in the template made configurable via the values.yaml file * make codegen executed * chart version and image version upgraded * chart version and image version upgraded and make codegen executed
…105) * image pull secrets added in the values.yaml of the etcd * imagePullSecrets added in the etcd yaml template * make codegen executed
* fixing the read replica hosts secret name in the helpers.tpl * chart version bumped to 0.1.23 * make codegen executed
* release rc chart * make codegen executed --------- Co-authored-by: Jigar Joshi <jigar.joshi@nirmata.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.