Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seperate call to retrieve namespace list and retrieve KubeObject for …
…only a single namespace (#4680) * Create a seperate function to get Namespace in subscriber Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Update graphql server to include KubeNamespace call (model not generated) Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Update graphqls to include KubeNamespace model Update objectmodel and subscriber to incldue KubeNamespace Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Fix issue in graphqls and adding KubeNamespace type. Regenerating model with gqlgen. Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Update model to includude missing field in KubeNamespaceData Rename getKubeNamespace function that didn't match graphqls operation in Subscription Add missing function for the graphql server to retrieve list of namespace Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Add remaining function in k8s pkg and requests to return list of namespace Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Update graphql/subscriber to transform KubeObject to not be a array since subscriber will only return one element. Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Update web server to seperate call for KubeObject and KubeNamespace. Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Fix import with goimports Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Reverting upgrade of webpack-dev-server so it's compatible with github workflow Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Run gofmt with correct version. Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Bumping ubi-minimal:8.8 to 8.10 to fix some HIGH CVE severity detected by trivy. Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Updating chaos_infrastructure mock to include KubeNamespace. Fix a comment Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Fix issue from Codacy Removing some unused code Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Fix codacy issue: - Add some trailing comma - Trying transform subscription function to resolve "non-arrow functions are forbidden" - Add null check Signed-off-by: Calvin Audier <calvinaudier@gmail.com> * Continue fix Codacy issue - Adding trailing comma - Re-ordering by alphabetic order some parameters Signed-off-by: Calvin Audier <calvinaudier@gmail.com> --------- Signed-off-by: Calvin Audier <calvinaudier@gmail.com> Signed-off-by: Calvinaud <calvinaudier@gmail.com> Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> Co-authored-by: Saranya Jena <saranya.jena@harness.io>
- Loading branch information