Skip to content

Commit

Permalink
style: convert plain comment to JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jul 4, 2024
1 parent 8274dde commit 12f1a33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/plugins/kubernetes/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,10 @@ export function summarize(resources: KubernetesResource[]) {
return resources.map((r) => `${r.kind} ${r.metadata.name}`).join(", ")
}

// Filter out all volumes and volumemounts that are not a configmaps or secrets, since they will
// probably cause issues when creating a pod runner from a chart or larger manifest.
/**
* Filter out all volumes and volumemounts that are not a configmaps or secrets,
* since they will probably cause issues when creating a pod runner from a chart or larger manifest.
*/
export function sanitizeVolumesForPodRunner(podSpec: V1PodSpec | undefined, containerSpec: V1Container) {
if (podSpec && podSpec.volumes) {
podSpec.volumes = podSpec.volumes.filter((volume) => volume.configMap || volume.secret)
Expand Down

0 comments on commit 12f1a33

Please sign in to comment.