-
Notifications
You must be signed in to change notification settings - Fork 24
Allow configuring AutomountServiceAccountToken for DevicePlugin #1749
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,13 @@ spec: | |
| DevicePlugin allows overriding some properties of the container that deploys the device plugin on the node. | ||
| Name is ignored and is set automatically by the KMM Operator. | ||
| properties: | ||
| automountServiceAccountToken: | ||
| description: |- | ||
| AutomountServiceAccountToken is used to disable the auto-mounting of the projected volume | ||
| into device plugin pod. This volume includes as files: SA token, CAs' file etc' | ||
| setting AutomountServiceAccountToken to false, will disale auto-mounting, and will allow user to mount | ||
| whatever configmaps and tokens he deems necessary for the device plugin application | ||
| type: boolean | ||
|
Comment on lines
+56
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for the typo "disale" in the codebase
rg -n 'disale' --type yaml --type goRepository: rh-ecosystem-edge/kernel-module-management Length of output: 1160 🏁 Script executed: #!/bin/bash
# Read the specific file and show lines 56-62
cat -n bundle-hub/manifests/hub.kmm.sigs.x-k8s.io_managedclustermodules.yaml | sed -n '50,65p'Repository: rh-ecosystem-edge/kernel-module-management Length of output: 1231 Fix typo and non-inclusive language in field description. This issue exists in the Go source definition (
Affected files
🤖 Prompt for AI Agents |
||
| container: | ||
| properties: | ||
| args: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,13 @@ spec: | |
| DevicePlugin allows overriding some properties of the container that deploys the device plugin on the node. | ||
| Name is ignored and is set automatically by the KMM Operator. | ||
| properties: | ||
| automountServiceAccountToken: | ||
| description: |- | ||
| AutomountServiceAccountToken is used to disable the auto-mounting of the projected volume | ||
| into device plugin pod. This volume includes as files: SA token, CAs' file etc' | ||
| setting AutomountServiceAccountToken to false, will disale auto-mounting, and will allow user to mount | ||
| whatever configmaps and tokens he deems necessary for the device plugin application | ||
| type: boolean | ||
|
Comment on lines
+52
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: fd -t f 'module_types.go' --exec cat -n {} \; | head -200Repository: rh-ecosystem-edge/kernel-module-management Length of output: 8683 🏁 Script executed: rg -n 'AutomountServiceAccountToken' --type go -A 5 -B 2Repository: rh-ecosystem-edge/kernel-module-management Length of output: 23731 🏁 Script executed: head -30 bundle/manifests/kmm.sigs.x-k8s.io_modules.yamlRepository: rh-ecosystem-edge/kernel-module-management Length of output: 997 🏁 Script executed: head -30 api/v1beta1/module_types.go | grep -E "(kubebuilder|controller-gen)"Repository: rh-ecosystem-edge/kernel-module-management Length of output: 68 🏁 Script executed: grep -n "kubebuilder\|controller-gen" api/v1beta1/module_types.go | head -5Repository: rh-ecosystem-edge/kernel-module-management Length of output: 284 Fix typos in the source Go doc comment for The YAML manifest is auto-generated by controller-gen. Update the description in
Then regenerate the CRD manifests. 🤖 Prompt for AI Agents |
||
| container: | ||
| properties: | ||
| args: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,6 +49,13 @@ spec: | |||||||||||||||||||||||||||||
| DevicePlugin allows overriding some properties of the container that deploys the device plugin on the node. | ||||||||||||||||||||||||||||||
| Name is ignored and is set automatically by the KMM Operator. | ||||||||||||||||||||||||||||||
| properties: | ||||||||||||||||||||||||||||||
| automountServiceAccountToken: | ||||||||||||||||||||||||||||||
| description: |- | ||||||||||||||||||||||||||||||
| AutomountServiceAccountToken is used to disable the auto-mounting of the projected volume | ||||||||||||||||||||||||||||||
| into device plugin pod. This volume includes as files: SA token, CAs' file etc' | ||||||||||||||||||||||||||||||
| setting AutomountServiceAccountToken to false, will disale auto-mounting, and will allow user to mount | ||||||||||||||||||||||||||||||
| whatever configmaps and tokens he deems necessary for the device plugin application | ||||||||||||||||||||||||||||||
| type: boolean | ||||||||||||||||||||||||||||||
|
Comment on lines
+52
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typos in the field description. Line 56: Proposed description fix automountServiceAccountToken:
description: |-
- AutomountServiceAccountToken is used to disable the auto-mounting of the projected volume
- into device plugin pod. This volume includes as files: SA token, CAs' file etc'
- setting AutomountServiceAccountToken to false, will disale auto-mounting, and will allow user to mount
- whatever configmaps and tokens he deems necessary for the device plugin application
+ AutomountServiceAccountToken is used to control the auto-mounting of the projected volume
+ into the device plugin pod. This volume includes as files: SA token, CA certificates, etc.
+ Setting AutomountServiceAccountToken to false will disable auto-mounting, and will allow the user to mount
+ whatever ConfigMaps and tokens they deem necessary for the device plugin application.
type: boolean📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| container: | ||||||||||||||||||||||||||||||
| properties: | ||||||||||||||||||||||||||||||
| args: | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,13 @@ spec: | |
| DevicePlugin allows overriding some properties of the container that deploys the device plugin on the node. | ||
| Name is ignored and is set automatically by the KMM Operator. | ||
| properties: | ||
| automountServiceAccountToken: | ||
| description: |- | ||
| AutomountServiceAccountToken is used to disable the auto-mounting of the projected volume | ||
| into device plugin pod. This volume includes as files: SA token, CAs' file etc' | ||
| setting AutomountServiceAccountToken to false, will disale auto-mounting, and will allow user to mount | ||
| whatever configmaps and tokens he deems necessary for the device plugin application | ||
| type: boolean | ||
|
Comment on lines
+48
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typos and language issues in the field description. The description contains several issues that will surface in
Since this file is generated by #!/bin/bash
# Verify the source of the typos in the Go type definition
rg -n 'AutomountServiceAccountToken' --type=go -C 5🤖 Prompt for AI Agents |
||
| container: | ||
| properties: | ||
| args: | ||
|
|
||
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.
Fix typos and tighten wording in the CRD description.
This text is surfaced in CRD docs; it currently contains typos and awkward phrasing. Consider updating it here (source of truth) and regenerating CRDs.
✏️ Suggested wording
📝 Committable suggestion
🤖 Prompt for AI Agents