Skip to content

Add volumeMounts and volumes for createSecretJob and patchWebhookJob #13810

@ababu13

Description

@ababu13

Add volumeMounts and volumes for createSecretJob and patchWebhookJob

In the job-createSecret.yaml and job-patchWebhook.yaml, there's an option to set the automountServiceAccountToken pointing to .Values.controller.admissionWebhooks.patch.serviceAccount.automountServiceAccountToken in the values.yaml file.

However, if we set the automountServiceAccountToken to false, the jobs will start to fail. By default it's true. Adding volumes and volumeMounts should help resolve this. In some cases, setting automountServiceAccountToken to false is required to fix some violations in Microsoft Azure Defender for cloud.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions