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

fix: Fixing missing ResourceNames field from k8s probe #4194

Merged
merged 3 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
83 changes: 38 additions & 45 deletions chaoscenter/graphql/definitions/shared/probe.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ input KubernetesHTTPProbeRequest {
insecureSkipVerify: Boolean
}


"""
Defines the properties of the comparator
"""
Expand Down Expand Up @@ -325,8 +324,6 @@ input ComparatorInput {
criteria: String!
}



"""
Defines the Executed by which experiment details for Probes
"""
Expand All @@ -349,27 +346,26 @@ type ExecutedByExperiment {
updatedBy: UserDetails
}


"""
Defines the Execution History of experiment referenced by the Probe
"""
type ExecutionHistory {
"""
Probe Mode
"""
mode: Mode!
"""
Fault Name
"""
faultName: String!
"""
Fault Status
"""
status: Status!
"""
Fault executed by which experiment
"""
executedByExperiment: ExecutedByExperiment!
"""
Probe Mode
"""
mode: Mode!
"""
Fault Name
"""
faultName: String!
"""
Fault Status
"""
status: Status!
"""
Fault executed by which experiment
"""
executedByExperiment: ExecutedByExperiment!
}
"""
Defines the Recent Executions of global probe in ListProbe API with different fault and execution history each time
Expand Down Expand Up @@ -724,6 +720,10 @@ input K8SProbeRequest {
"""
namespace: String
"""
Resource Names of the Probe
"""
resourceNames: String
"""
Field Selector of the Probe
"""
fieldSelector: String
Expand Down Expand Up @@ -841,7 +841,6 @@ input KubernetesCMDProbeRequest {
source: String
}


"""
Defines the Kubernetes HTTP probe properties
"""
Expand Down Expand Up @@ -892,7 +891,6 @@ type KubernetesHTTPProbe implements CommonProbeProperties {
insecureSkipVerify: Boolean
}


"""
Defines the input for CMD probe properties
"""
Expand Down Expand Up @@ -943,7 +941,6 @@ input CMDProbeRequest {
source: String
}


"""
Defines the K8S probe properties
"""
Expand Down Expand Up @@ -997,6 +994,10 @@ type K8SProbe implements CommonProbeProperties {
"""
namespace: String
"""
Resource Names of the Probe
"""
resourceNames: String
"""
Field Selector of the Probe
"""
fieldSelector: String
Expand Down Expand Up @@ -1060,8 +1061,12 @@ extend type Query {
"""
Returns the list of Probes based on various filter parameters
"""
listProbes(projectID: ID!, infrastructureType: InfrastructureType, probeNames: [ID!], filter: ProbeFilterInput): [Probe]!
@authorized
listProbes(
projectID: ID!
infrastructureType: InfrastructureType
probeNames: [ID!]
filter: ProbeFilterInput
): [Probe]! @authorized

"""
Returns a single Probe based on ProbeName and various filter parameters
Expand All @@ -1071,18 +1076,14 @@ extend type Query {
"""
Returns the Probe YAML based on ProbeName which can be used in ChaosEngine manifest
"""
getProbeYAML(
projectID: ID!
request: GetProbeYAMLRequest!
): String! @authorized
getProbeYAML(projectID: ID!, request: GetProbeYAMLRequest!): String!
@authorized

"""
Returns all the reference of the Probe based on ProbeName
"""
getProbeReference(
projectID: ID!
probeName: ID!
): GetProbeReferenceResponse! @authorized
getProbeReference(projectID: ID!, probeName: ID!): GetProbeReferenceResponse!
@authorized

"""
Returns all the Probes attached to the requested Experiment Run
Expand All @@ -1096,30 +1097,22 @@ extend type Query {
"""
Validates if a probe is already present, returns true if unique
"""
validateUniqueProbe(
projectID: ID!
probeName: ID!
): Boolean! @authorized
validateUniqueProbe(projectID: ID!, probeName: ID!): Boolean! @authorized
}

extend type Mutation {
"""
Creates a new Probe
"""
addProbe(request: ProbeRequest!, projectID: ID!): Probe!
@authorized
addProbe(request: ProbeRequest!, projectID: ID!): Probe! @authorized

"""
Update the configuration of a Probe
"""
updateProbe(
request: ProbeRequest!
projectID: ID!
): String! @authorized
updateProbe(request: ProbeRequest!, projectID: ID!): String! @authorized

"""
Delete a Probe
"""
deleteProbe(probeName: ID!, projectID: ID!): Boolean!
@authorized
deleteProbe(probeName: ID!, projectID: ID!): Boolean! @authorized
}
Loading
Loading