|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: v0.17.1 |
| 6 | + creationTimestamp: null |
| 7 | + name: customrules.compliance.openshift.io |
| 8 | +spec: |
| 9 | + group: compliance.openshift.io |
| 10 | + names: |
| 11 | + kind: CustomRule |
| 12 | + listKind: CustomRuleList |
| 13 | + plural: customrules |
| 14 | + singular: customrule |
| 15 | + scope: Namespaced |
| 16 | + versions: |
| 17 | + - name: v1alpha1 |
| 18 | + schema: |
| 19 | + openAPIV3Schema: |
| 20 | + description: CustomRule is the Schema for the customrules API |
| 21 | + properties: |
| 22 | + apiVersion: |
| 23 | + description: |- |
| 24 | + APIVersion defines the versioned schema of this representation of an object. |
| 25 | + Servers should convert recognized schemas to the latest internal value, and |
| 26 | + may reject unrecognized values. |
| 27 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 28 | + type: string |
| 29 | + kind: |
| 30 | + description: |- |
| 31 | + Kind is a string value representing the REST resource this object represents. |
| 32 | + Servers may infer this from the endpoint the client submits requests to. |
| 33 | + Cannot be updated. |
| 34 | + In CamelCase. |
| 35 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 36 | + type: string |
| 37 | + metadata: |
| 38 | + type: object |
| 39 | + spec: |
| 40 | + properties: |
| 41 | + availableFixes: |
| 42 | + description: |- |
| 43 | + The Available fixes |
| 44 | + This is not supported with CustomRule |
| 45 | + items: |
| 46 | + description: |- |
| 47 | + FixDefinition Specifies a fix or remediation |
| 48 | + that applies to a rule |
| 49 | + properties: |
| 50 | + disruption: |
| 51 | + description: |- |
| 52 | + An estimate of the potential disruption or operational |
| 53 | + degradation that this fix will impose in the target system |
| 54 | + type: string |
| 55 | + fixObject: |
| 56 | + description: an object that should bring the rule into compliance |
| 57 | + type: object |
| 58 | + x-kubernetes-embedded-resource: true |
| 59 | + x-kubernetes-preserve-unknown-fields: true |
| 60 | + platform: |
| 61 | + description: The platform that the fix applies to |
| 62 | + type: string |
| 63 | + type: object |
| 64 | + nullable: true |
| 65 | + type: array |
| 66 | + x-kubernetes-list-type: atomic |
| 67 | + checkType: |
| 68 | + description: |- |
| 69 | + What type of check will this rule execute: |
| 70 | + Platform, Node or none (represented by an empty string) |
| 71 | + type: string |
| 72 | + description: |
| 73 | + description: The description of the Rule |
| 74 | + type: string |
| 75 | + errorMessage: |
| 76 | + description: ErrorMessage is displayed when the rule evaluation fails |
| 77 | + minLength: 1 |
| 78 | + type: string |
| 79 | + expression: |
| 80 | + description: Expression is the CEL expression to evaluate |
| 81 | + minLength: 1 |
| 82 | + type: string |
| 83 | + id: |
| 84 | + description: |- |
| 85 | + The ID of the Rule |
| 86 | + This can be the XCCDF ID for OpenSCAP rules |
| 87 | + or the ID of the rule in the source content |
| 88 | + type: string |
| 89 | + inputs: |
| 90 | + description: Inputs defines the Kubernetes resources that need to |
| 91 | + be fetched before evaluating the expression |
| 92 | + items: |
| 93 | + nullable: true |
| 94 | + properties: |
| 95 | + apiGroup: |
| 96 | + description: APIGroup is the Kubernetes API group of the resource |
| 97 | + type: string |
| 98 | + name: |
| 99 | + description: Name is the variable name used to reference this |
| 100 | + resource in the CEL expression |
| 101 | + minLength: 1 |
| 102 | + type: string |
| 103 | + namespace: |
| 104 | + description: Namespace is the Kubernetes namespace of the resource |
| 105 | + type: string |
| 106 | + resource: |
| 107 | + description: Resource is the Kubernetes resource type |
| 108 | + minLength: 1 |
| 109 | + type: string |
| 110 | + type: |
| 111 | + enum: |
| 112 | + - KubeGroupVersionResource |
| 113 | + type: string |
| 114 | + version: |
| 115 | + description: Version is the Kubernetes API version of the resource |
| 116 | + minLength: 1 |
| 117 | + type: string |
| 118 | + required: |
| 119 | + - apiGroup |
| 120 | + - name |
| 121 | + - resource |
| 122 | + - type |
| 123 | + - version |
| 124 | + type: object |
| 125 | + minItems: 1 |
| 126 | + type: array |
| 127 | + instructions: |
| 128 | + description: Instructions for auditing this specific rule |
| 129 | + type: string |
| 130 | + rationale: |
| 131 | + description: The rationale of the Rule |
| 132 | + type: string |
| 133 | + scannerType: |
| 134 | + description: ScannerType denotes the scanning implementation to use |
| 135 | + when evaluating rules |
| 136 | + enum: |
| 137 | + - CEL |
| 138 | + type: string |
| 139 | + severity: |
| 140 | + description: The severity level |
| 141 | + type: string |
| 142 | + title: |
| 143 | + description: The title of the Rule |
| 144 | + type: string |
| 145 | + warning: |
| 146 | + description: A discretionary warning about the of the Rule |
| 147 | + type: string |
| 148 | + required: |
| 149 | + - errorMessage |
| 150 | + - expression |
| 151 | + - id |
| 152 | + - inputs |
| 153 | + - scannerType |
| 154 | + - title |
| 155 | + type: object |
| 156 | + status: |
| 157 | + description: Status is intentionally left empty. |
| 158 | + type: object |
| 159 | + type: object |
| 160 | + served: true |
| 161 | + storage: true |
| 162 | +status: |
| 163 | + acceptedNames: |
| 164 | + kind: "" |
| 165 | + plural: "" |
| 166 | + conditions: null |
| 167 | + storedVersions: null |
0 commit comments