| 1 |
import { TreeView, TreeViewDataItem } from '@patternfly/react-core'; |
| 2 |
|
| 3 |
export const TreeViewCompact: React.FunctionComponent = () => { |
| 4 |
const options: TreeViewDataItem[] = [ |
| 5 |
{ |
| 6 |
name: '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.', |
| 7 |
title: 'apiVersion', |
| 8 |
id: 'example9-apiVersion' |
| 9 |
}, |
| 10 |
{ |
| 11 |
name: '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 is CamelCase. More info:', |
| 12 |
title: 'kind', |
| 13 |
id: 'example9-kind' |
| 14 |
}, |
| 15 |
{ |
| 16 |
name: 'Standard metadata object', |
| 17 |
title: 'metadata', |
| 18 |
id: 'example9-metadata' |
| 19 |
}, |
| 20 |
{ |
| 21 |
name: 'Standard metadata object', |
| 22 |
title: 'spec', |
| 23 |
id: 'example9-spec', |
| 24 |
children: [ |
| 25 |
{ |
| 26 |
name: 'Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Default to 0 (pod will be considered available as soon as it is ready).', |
| 27 |
title: 'minReadySeconds', |
| 28 |
id: 'example9-minReadySeconds' |
| 29 |
}, |
| 30 |
{ |
| 31 |
name: 'Indicates that the deployment is paused', |
| 32 |
title: 'paused', |
| 33 |
id: 'example9-paused' |
| 34 |
}, |
| 35 |
{ |
| 36 |
name: 'The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that the progress will not de estimated during the time a deployment is paused. Defaults to 600s.', |
| 37 |
title: 'progressDeadlineSeconds', |
| 38 |
id: 'example9-progressDeadlineSeconds', |
| 39 |
children: [ |
| 40 |
{ |
| 41 |
name: 'The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.', |
| 42 |
title: 'revisionHistoryLimit', |
| 43 |
id: 'example9-revisionHistoryLimit', |
| 44 |
children: [ |
| 45 |
{ |
| 46 |
name: 'Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.', |
| 47 |
title: 'matchLabels', |
| 48 |
id: 'example9-matchLabels' |
| 49 |
} |
| 50 |
] |
| 51 |
} |
| 52 |
] |
| 53 |
} |
| 54 |
] |
| 55 |
} |
| 56 |
]; |
| 57 |
return <TreeView hasAnimations aria-label="Tree View compact example" data={options} variant="compact" />; |
| 58 |
}; |