Skip to content

Commit 8509501

Browse files
committed
Add ModelValidation OLM descriptors and scorecard example
Signed-off-by: ompushkara <omotilal@redhat.com>
1 parent 114c18e commit 8509501

8 files changed

Lines changed: 406 additions & 5 deletions

‎bundle/kubernetes/manifests/ml.sigstore.dev_modelvalidations.yaml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,24 @@ spec:
138138
When true, the validation container periodically re-validates the model.
139139
When false (default), the validation container runs as a standard init container (one-shot).
140140
type: boolean
141+
failureThreshold:
142+
default: 1
143+
description: |-
144+
FailureThreshold is the number of consecutive failed periodic re-validations
145+
after which the pod is marked not-ready and removed from the Service
146+
endpoints, until a later periodic validation succeeds again.
147+
Only used when Enabled is true.
148+
149+
A value of 0 disables readiness revocation (fail-open): once the pod has
150+
become ready, it stays ready regardless of later periodic failures. This
151+
matches the pre-1.0 behavior.
152+
153+
The default is 1 (fail-closed): a single failed periodic validation removes
154+
the pod from rotation. Set a higher value to tolerate transient failures
155+
(e.g. 3 only revokes readiness after three consecutive failures).
156+
format: int32
157+
minimum: 0
158+
type: integer
141159
interval:
142160
default: 5m
143161
description: |-

‎bundle/kubernetes/manifests/model-validation-operator.clusterserviceversion.yaml‎

Lines changed: 122 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,43 @@ metadata:
1515
"name": "modelvalidation-sample",
1616
"namespace": "model-validation-operator-system"
1717
},
18-
"spec": null
18+
"spec": {
19+
"config": {
20+
"sigstoreConfig": {
21+
"certificateIdentity": "email:model@example.com",
22+
"certificateOidcIssuer": "https://accounts.google.com"
23+
}
24+
},
25+
"continuousValidation": {
26+
"enabled": false,
27+
"failureThreshold": 1,
28+
"interval": "5m"
29+
},
30+
"imagePullPolicy": "IfNotPresent",
31+
"model": {
32+
"allowSymlinks": false,
33+
"ignoreGitPaths": true,
34+
"ignorePaths": [],
35+
"ignoreUnsignedFiles": false,
36+
"path": "/models/example-model",
37+
"signaturePath": "/models/example-model.sigstore.json"
38+
},
39+
"resources": {
40+
"limits": {
41+
"cpu": "1",
42+
"memory": "512Mi"
43+
},
44+
"requests": {
45+
"cpu": "100m",
46+
"memory": "128Mi"
47+
}
48+
}
49+
}
1950
}
2051
]
2152
capabilities: Seamless Upgrades
2253
containerImage: ghcr.io/sigstore/model-validation-operator:v1.0.0
23-
createdAt: "2026-11-11T15:58:12Z"
54+
createdAt: "2026-11-16T12:26:37Z"
2455
operatorframework.io/suggested-namespace: model-validation-operator-system
2556
operatorframework.io/suggested-namespace-template: '{"apiVersion":"v1","kind":"Namespace","metadata":{"name":"model-validation-operator-system","labels":{"openshift.io/cluster-monitoring":"true"}}}'
2657
operators.operatorframework.io/builder: operator-sdk-v1.42.0
@@ -35,6 +66,95 @@ spec:
3566
displayName: Model Validation
3667
kind: ModelValidation
3768
name: modelvalidations.ml.sigstore.dev
69+
specDescriptors:
70+
- description: Model artifact paths and verification options.
71+
displayName: Model
72+
path: model
73+
- description: Path to the model artifact, using a local path or supported URI.
74+
displayName: Model Path
75+
path: model.path
76+
x-descriptors:
77+
- urn:alm:descriptor:com.tectonic.ui:text
78+
- description: Path to the model signature bundle.
79+
displayName: Signature Path
80+
path: model.signaturePath
81+
x-descriptors:
82+
- urn:alm:descriptor:com.tectonic.ui:text
83+
- description: File paths to exclude from model verification.
84+
displayName: Ignore Paths
85+
path: model.ignorePaths
86+
- description: Ignore Git-related files during verification.
87+
displayName: Ignore Git Paths
88+
path: model.ignoreGitPaths
89+
x-descriptors:
90+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
91+
- description: Allow files without signatures to be skipped.
92+
displayName: Ignore Unsigned Files
93+
path: model.ignoreUnsignedFiles
94+
x-descriptors:
95+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
96+
- description: Follow symbolic links while verifying model files.
97+
displayName: Allow Symlinks
98+
path: model.allowSymlinks
99+
x-descriptors:
100+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
101+
- description: Signature verification settings. Specify exactly one verification
102+
method.
103+
displayName: Verification Configuration
104+
path: config
105+
- description: Expected signing certificate identity.
106+
displayName: Certificate Identity
107+
path: config.sigstoreConfig.certificateIdentity
108+
x-descriptors:
109+
- urn:alm:descriptor:com.tectonic.ui:text
110+
- description: OIDC issuer for the signing certificate.
111+
displayName: Certificate OIDC Issuer
112+
path: config.sigstoreConfig.certificateOidcIssuer
113+
x-descriptors:
114+
- urn:alm:descriptor:com.tectonic.ui:text
115+
- description: Path to the trusted certificate authority file.
116+
displayName: Certificate Authority
117+
path: config.pkiConfig.certificateAuthority
118+
x-descriptors:
119+
- urn:alm:descriptor:com.tectonic.ui:text
120+
- description: Path to the public key used for verification.
121+
displayName: Public Key Path
122+
path: config.publicKeyConfig.keyPath
123+
x-descriptors:
124+
- urn:alm:descriptor:com.tectonic.ui:text
125+
- description: Path to the client trust configuration file.
126+
displayName: Trust Configuration Path
127+
path: config.clientTrustConfig.trustConfigPath
128+
x-descriptors:
129+
- urn:alm:descriptor:com.tectonic.ui:text
130+
- description: Pull policy for the validation container image.
131+
displayName: Image Pull Policy
132+
path: imagePullPolicy
133+
x-descriptors:
134+
- urn:alm:descriptor:com.tectonic.ui:imagePullPolicy
135+
- description: Enable periodic model re-validation.
136+
displayName: Enable Continuous Validation
137+
path: continuousValidation.enabled
138+
x-descriptors:
139+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
140+
- description: Interval between periodic validations, such as 5m or 1h.
141+
displayName: Validation Interval
142+
path: continuousValidation.interval
143+
x-descriptors:
144+
- urn:alm:descriptor:com.tectonic.ui:text
145+
- description: Consecutive failures before the pod is marked not ready.
146+
displayName: Failure Threshold
147+
path: continuousValidation.failureThreshold
148+
x-descriptors:
149+
- urn:alm:descriptor:com.tectonic.ui:number
150+
- description: Periodic validation settings.
151+
displayName: Continuous Validation
152+
path: continuousValidation
153+
- description: CPU and memory requests and limits for the validation container.
154+
displayName: Resource Requirements
155+
path: resources
156+
x-descriptors:
157+
- urn:alm:descriptor:com.tectonic.ui:resourceRequirements
38158
version: v1alpha1
39159
- description: |-
40160
TelemetryConfig is the Schema for the telemetryconfigs API.

‎bundle/openshift/manifests/ml.sigstore.dev_modelvalidations.yaml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,24 @@ spec:
138138
When true, the validation container periodically re-validates the model.
139139
When false (default), the validation container runs as a standard init container (one-shot).
140140
type: boolean
141+
failureThreshold:
142+
default: 1
143+
description: |-
144+
FailureThreshold is the number of consecutive failed periodic re-validations
145+
after which the pod is marked not-ready and removed from the Service
146+
endpoints, until a later periodic validation succeeds again.
147+
Only used when Enabled is true.
148+
149+
A value of 0 disables readiness revocation (fail-open): once the pod has
150+
become ready, it stays ready regardless of later periodic failures. This
151+
matches the pre-1.0 behavior.
152+
153+
The default is 1 (fail-closed): a single failed periodic validation removes
154+
the pod from rotation. Set a higher value to tolerate transient failures
155+
(e.g. 3 only revokes readiness after three consecutive failures).
156+
format: int32
157+
minimum: 0
158+
type: integer
141159
interval:
142160
default: 5m
143161
description: |-

‎bundle/openshift/manifests/model-validation-operator.clusterserviceversion.yaml‎

Lines changed: 122 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,43 @@ metadata:
1515
"name": "modelvalidation-sample",
1616
"namespace": "model-validation-operator-system"
1717
},
18-
"spec": null
18+
"spec": {
19+
"config": {
20+
"sigstoreConfig": {
21+
"certificateIdentity": "email:model@example.com",
22+
"certificateOidcIssuer": "https://accounts.google.com"
23+
}
24+
},
25+
"continuousValidation": {
26+
"enabled": false,
27+
"failureThreshold": 1,
28+
"interval": "5m"
29+
},
30+
"imagePullPolicy": "IfNotPresent",
31+
"model": {
32+
"allowSymlinks": false,
33+
"ignoreGitPaths": true,
34+
"ignorePaths": [],
35+
"ignoreUnsignedFiles": false,
36+
"path": "/models/example-model",
37+
"signaturePath": "/models/example-model.sigstore.json"
38+
},
39+
"resources": {
40+
"limits": {
41+
"cpu": "1",
42+
"memory": "512Mi"
43+
},
44+
"requests": {
45+
"cpu": "100m",
46+
"memory": "128Mi"
47+
}
48+
}
49+
}
1950
}
2051
]
2152
capabilities: Seamless Upgrades
2253
containerImage: ghcr.io/sigstore/model-validation-operator:v1.0.0
23-
createdAt: "2026-11-11T15:58:13Z"
54+
createdAt: "2026-11-16T12:26:38Z"
2455
operatorframework.io/suggested-namespace: model-validation-operator-system
2556
operatorframework.io/suggested-namespace-template: '{"apiVersion":"v1","kind":"Namespace","metadata":{"name":"model-validation-operator-system","labels":{"openshift.io/cluster-monitoring":"true"}}}'
2657
operators.operatorframework.io/builder: operator-sdk-v1.42.0
@@ -35,6 +66,95 @@ spec:
3566
displayName: Model Validation
3667
kind: ModelValidation
3768
name: modelvalidations.ml.sigstore.dev
69+
specDescriptors:
70+
- description: Model artifact paths and verification options.
71+
displayName: Model
72+
path: model
73+
- description: Path to the model artifact, using a local path or supported URI.
74+
displayName: Model Path
75+
path: model.path
76+
x-descriptors:
77+
- urn:alm:descriptor:com.tectonic.ui:text
78+
- description: Path to the model signature bundle.
79+
displayName: Signature Path
80+
path: model.signaturePath
81+
x-descriptors:
82+
- urn:alm:descriptor:com.tectonic.ui:text
83+
- description: File paths to exclude from model verification.
84+
displayName: Ignore Paths
85+
path: model.ignorePaths
86+
- description: Ignore Git-related files during verification.
87+
displayName: Ignore Git Paths
88+
path: model.ignoreGitPaths
89+
x-descriptors:
90+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
91+
- description: Allow files without signatures to be skipped.
92+
displayName: Ignore Unsigned Files
93+
path: model.ignoreUnsignedFiles
94+
x-descriptors:
95+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
96+
- description: Follow symbolic links while verifying model files.
97+
displayName: Allow Symlinks
98+
path: model.allowSymlinks
99+
x-descriptors:
100+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
101+
- description: Signature verification settings. Specify exactly one verification
102+
method.
103+
displayName: Verification Configuration
104+
path: config
105+
- description: Expected signing certificate identity.
106+
displayName: Certificate Identity
107+
path: config.sigstoreConfig.certificateIdentity
108+
x-descriptors:
109+
- urn:alm:descriptor:com.tectonic.ui:text
110+
- description: OIDC issuer for the signing certificate.
111+
displayName: Certificate OIDC Issuer
112+
path: config.sigstoreConfig.certificateOidcIssuer
113+
x-descriptors:
114+
- urn:alm:descriptor:com.tectonic.ui:text
115+
- description: Path to the trusted certificate authority file.
116+
displayName: Certificate Authority
117+
path: config.pkiConfig.certificateAuthority
118+
x-descriptors:
119+
- urn:alm:descriptor:com.tectonic.ui:text
120+
- description: Path to the public key used for verification.
121+
displayName: Public Key Path
122+
path: config.publicKeyConfig.keyPath
123+
x-descriptors:
124+
- urn:alm:descriptor:com.tectonic.ui:text
125+
- description: Path to the client trust configuration file.
126+
displayName: Trust Configuration Path
127+
path: config.clientTrustConfig.trustConfigPath
128+
x-descriptors:
129+
- urn:alm:descriptor:com.tectonic.ui:text
130+
- description: Pull policy for the validation container image.
131+
displayName: Image Pull Policy
132+
path: imagePullPolicy
133+
x-descriptors:
134+
- urn:alm:descriptor:com.tectonic.ui:imagePullPolicy
135+
- description: Enable periodic model re-validation.
136+
displayName: Enable Continuous Validation
137+
path: continuousValidation.enabled
138+
x-descriptors:
139+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
140+
- description: Interval between periodic validations, such as 5m or 1h.
141+
displayName: Validation Interval
142+
path: continuousValidation.interval
143+
x-descriptors:
144+
- urn:alm:descriptor:com.tectonic.ui:text
145+
- description: Consecutive failures before the pod is marked not ready.
146+
displayName: Failure Threshold
147+
path: continuousValidation.failureThreshold
148+
x-descriptors:
149+
- urn:alm:descriptor:com.tectonic.ui:number
150+
- description: Periodic validation settings.
151+
displayName: Continuous Validation
152+
path: continuousValidation
153+
- description: CPU and memory requests and limits for the validation container.
154+
displayName: Resource Requirements
155+
path: resources
156+
x-descriptors:
157+
- urn:alm:descriptor:com.tectonic.ui:resourceRequirements
38158
version: v1alpha1
39159
- description: |-
40160
TelemetryConfig is the Schema for the telemetryconfigs API.

‎config/manifests/kustomization.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ resources:
66
- ../samples
77
- ../scorecard
88

9+
components:
10+
- patches
11+
912
# [WEBHOOK] To enable webhooks, uncomment all the sections with [WEBHOOK] prefix.
1013
# Do NOT uncomment sections with prefix [CERTMANAGER], as OLM does not support cert-manager.
1114
# These patches remove the unnecessary "cert" volume and its manager container volumeMount.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: kustomize.config.k8s.io/v1alpha1
2+
kind: Component
3+
4+
patches:
5+
- path: modelvalidation_descriptors.yaml
6+
target:
7+
group: operators.coreos.com
8+
version: v1alpha1
9+
kind: ClusterServiceVersion
10+
name: model-validation-operator.v1.0.0

0 commit comments

Comments
 (0)