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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seperate call to retrieve namespace list and retrieve KubeObject for only a single namespace #4680

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2b2940c
Create a seperate function to get Namespace in subscriber
Calvinaud May 6, 2024
9aaf710
Update graphql server to include KubeNamespace call (model not genera…
Calvinaud May 6, 2024
932927a
Update graphqls to include KubeNamespace model
Calvinaud May 6, 2024
5ef43c5
Fix issue in graphqls and adding KubeNamespace type.
Calvinaud May 6, 2024
b9cd63e
Update model to includude missing field in KubeNamespaceData
Calvinaud May 14, 2024
bf77ad3
Add remaining function in k8s pkg and requests to return list of name…
Calvinaud May 14, 2024
dba1971
Update graphql/subscriber to transform KubeObject to not be a array s…
Calvinaud May 30, 2024
59493ad
Update web server to seperate call for KubeObject and KubeNamespace.
Calvinaud May 30, 2024
b8ec66d
Merge branch 'master' into feature/seperate-namespace-call
Calvinaud May 30, 2024
9f1abf2
Fix import with goimports
Calvinaud May 30, 2024
277678b
Reverting upgrade of webpack-dev-server so it's compatible with gith…
Calvinaud May 30, 2024
f6cba7b
Run gofmt with correct version.
Calvinaud May 30, 2024
e31efae
Bumping ubi-minimal:8.8 to 8.10 to fix some HIGH CVE severity detecte…
Calvinaud May 30, 2024
981a147
Updating chaos_infrastructure mock to include KubeNamespace.
Calvinaud May 30, 2024
2600fd7
Fix issue from Codacy
Calvinaud May 30, 2024
1bf0485
Merge branch 'master' into feature/seperate-namespace-call
namkyu1999 Jun 4, 2024
179a3d2
Merge branch 'master' into feature/seperate-namespace-call
Calvinaud Jun 14, 2024
bdbd3d9
Merge branch 'master' into feature/seperate-namespace-call
Calvinaud Jun 27, 2024
0963f03
Merge branch 'master' into feature/seperate-namespace-call
Calvinaud Jul 31, 2024
0e3477f
Fix codacy issue:
Calvinaud Jul 31, 2024
785e70c
Continue fix Codacy issue
Calvinaud Jul 31, 2024
bcc4a85
Merge branch 'master' into feature/seperate-namespace-call
Saranya-jena Aug 23, 2024
ddfa865
Merge branch 'master' into feature/seperate-namespace-call
Saranya-jena Sep 6, 2024
ecb9f78
Merge branch 'master' into feature/seperate-namespace-call
Saranya-jena Sep 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ type KubeObjectResponse {
"""
Type of the Kubernetes object
"""
kubeObj: [KubeObject]!
kubeObj: KubeObject!
}

"""
KubeObject consists of the namespace and the available resources in the same
KubeObject consists of the available resources in a namespace
"""
type KubeObject {
"""
Expand Down Expand Up @@ -404,16 +404,75 @@ input KubeObjectRequest {
GVR Request
"""
kubeObjRequest: KubeGVRRequest
"""
Namespace in which the Kubernetes object is present
"""
namespace: String!
objectType: String!
workloads: [Workload]
}

"""
Defines details for fetching Kubernetes namespace data
"""
input KubeNamespaceRequest {
"""
ID of the infra
"""
infraID: ID!
}

"""
Define name in the infra (not really useful at the moment but maybe we will need other field later)
"""
type KubeNamespace{
"""
Name of the namespace
"""
name: String!
}



input KubeGVRRequest {
group: String!
version: String!
resource: String!
}

"""
Response received for querying Kubernetes Namespaces
"""
type KubeNamespaceResponse {
"""
ID of the infra in which the Kubernetes namespace is present
"""
infraID: ID!
"""
List of the Kubernetes namespace
"""
kubeNamespace: [KubeNamespace]!
}

"""
Defines the details of Kubernetes namespace
"""
input KubeNamespaceData {
"""
Unique request ID for fetching Kubernetes namespace details
"""
requestID: ID!
"""
ID of the infra in which the Kubernetes namespace is present
"""
infraID: InfraIdentity!
"""
List of KubeNamespace return by subscriber
"""
kubeNamespace: String!
}


"""
Defines the details of Kubernetes object
"""
Expand Down Expand Up @@ -638,6 +697,12 @@ extend type Mutation {
"""
# authorized directive not required
kubeObj(request: KubeObjectData!): String!

"""
Receives kubernetes namespace data from subscriber
"""
# authorized directive not required
kubeNamespace(request: KubeNamespaceData!): String!
}

extend type Subscription {
Expand All @@ -663,4 +728,9 @@ extend type Subscription {
Returns a kubernetes object given an input
"""
getKubeObject(request: KubeObjectRequest!): KubeObjectResponse!

"""
Returns a kubernetes namespaces given an input
"""
getKubeNamespace(request: KubeNamespaceRequest!): KubeNamespaceResponse!
}
23 changes: 23 additions & 0 deletions chaoscenter/graphql/server/graph/chaos_infrastructure.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading