-
Notifications
You must be signed in to change notification settings - Fork 36
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
PWX-38372 Cherry-picking diags code from master #1638
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.11.3 | ||
creationTimestamp: null | ||
name: portworxdiags.portworx.io | ||
spec: | ||
group: portworx.io | ||
names: | ||
kind: PortworxDiag | ||
listKind: PortworxDiagList | ||
plural: portworxdiags | ||
shortNames: | ||
- pxdiag | ||
singular: portworxdiag | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- description: Status of the Portworx diag collection. | ||
jsonPath: .status.phase | ||
name: Status | ||
type: string | ||
- description: Age of the diag resource. | ||
jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: PortworxDiag represents a portworx diag | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: PortworxDiagSpec is the spec used to define a portworx diag. | ||
properties: | ||
portworx: | ||
description: Configuration for diags collection of the main Portworx | ||
component. | ||
properties: | ||
generateCore: | ||
description: Generates the core dump as well when collecting the | ||
diags. Could be useful to analyze the current state of the system. | ||
type: boolean | ||
nodes: | ||
description: Nodes for which the diags need to be collected. If | ||
a volume selector is also specified, then both the selectors | ||
will be honored and the selected nodes will be a union of both | ||
selectors. | ||
properties: | ||
all: | ||
description: Select all nodes in the Portworx cluster. If | ||
set to true, other selectors are ignored. | ||
type: boolean | ||
ids: | ||
description: Ids of the nodes to be selected. | ||
items: | ||
type: string | ||
type: array | ||
labels: | ||
additionalProperties: | ||
type: string | ||
description: Labels of the volumes to be selected. | ||
type: object | ||
type: object | ||
volumes: | ||
description: Volumes for which the diags need to be collected. | ||
properties: | ||
ids: | ||
description: Ids of the volumes to be selected. | ||
items: | ||
type: string | ||
type: array | ||
labels: | ||
additionalProperties: | ||
type: string | ||
description: Labels of the volumes to be selected. | ||
type: object | ||
type: object | ||
type: object | ||
type: object | ||
status: | ||
description: PortworxDiagStatus is the status of a portworx diag. | ||
properties: | ||
clusterUuid: | ||
description: UUID of the Portworx cluster. This is useful to find | ||
the uploaded diags. | ||
type: string | ||
message: | ||
description: Optional message used to give the reason for any failure. | ||
type: string | ||
nodes: | ||
description: Status of the diags collection from all the selected | ||
nodes. | ||
items: | ||
description: Status of the diags collection from a single node. | ||
properties: | ||
message: | ||
description: Optional message used to give the reason for any | ||
failure. | ||
type: string | ||
nodeId: | ||
description: ID of the node for which the diag status is reported. | ||
type: string | ||
status: | ||
description: One word status of the diags collection on the | ||
node. | ||
type: string | ||
type: object | ||
type: array | ||
phase: | ||
description: One word status of the entire diags collection job. | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can default be true in your branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can do that