Skip to content

Comments

Mark defaultRuntime as optional, remove validation constraints#2162

Merged
tariq1890 merged 1 commit intoNVIDIA:mainfrom
empovit:fix-required-defaultruntime
Feb 24, 2026
Merged

Mark defaultRuntime as optional, remove validation constraints#2162
tariq1890 merged 1 commit intoNVIDIA:mainfrom
empovit:fix-required-defaultruntime

Conversation

@empovit
Copy link
Contributor

@empovit empovit commented Feb 24, 2026

Commit cf964b8 marked defaultRuntime as deprecated, removed it from alm-examples in the OpenShift operator. However, the validations on this field remained in the CRD. As a result, trying to create a default ClusterPolicy based on alm-examples failed with the following error:

spec.operator.defaultRuntime: Unsupported value: "": supported values:
"docker", "crio", "containerd"

This fixes the issue by making the field optional and removing the validations.

Description

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

No code changes to affect unit-tests. The fix was tested manually with a custom bundle image.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Feb 24, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@empovit empovit force-pushed the fix-required-defaultruntime branch from 68efb24 to a4c2ac8 Compare February 24, 2026 10:18
@empovit empovit marked this pull request as draft February 24, 2026 11:11
@empovit empovit force-pushed the fix-required-defaultruntime branch from a4c2ac8 to f26ef59 Compare February 24, 2026 11:48
@empovit empovit marked this pull request as ready for review February 24, 2026 12:25
@rahulait
Copy link
Contributor

/ok to test f26ef59

@rahulait
Copy link
Contributor

rahulait commented Feb 24, 2026

This now becomes a breaking change as the field behavior is changed. We'll need to evaluate if we want to do this or add back the optional field we removed in clusterpolicy json for now.

Update: it looks like we were not using this field previously. So any value set was not getting used. Since the field was not used, this change doesn't break any functionality and is not a breaking change then. Its safe to accept this change then.

Commit cf964b8 marked `defaultRuntime` as deprecated, removed
it from alm-examples in the OpenShift operator. However, the
validations on this field remained in the CRD. As a result,
trying to create a default `ClusterPolicy` based on alm-examples
failed with the following error:

```
spec.operator.defaultRuntime: Unsupported value: "": supported values:
"docker", "crio", "containerd"
```

This fixes the issue by making the field optional and removing the validations.

Signed-off-by: Vitaliy Emporopulo <vemporop@redhat.com>
@empovit empovit force-pushed the fix-required-defaultruntime branch from f26ef59 to 5831d10 Compare February 24, 2026 16:11
@tariq1890 tariq1890 changed the title Fix almExamples following deprecation of defaultRuntime field Mark defaultRuntime as optional, remove validation constraints Feb 24, 2026
@tariq1890 tariq1890 merged commit 4de8a17 into NVIDIA:main Feb 24, 2026
1 check passed
@empovit empovit deleted the fix-required-defaultruntime branch February 24, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants