{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 ~}}

{{if @model.isNew "Create Role" "Edit Role"}}


A role in Vault dictates what will be generated for Kubernetes and what kind of rules will be used to do so. It is not a Kubernetes role.

{{#each this.generationPreferences as |pref|}} {{/each}}

Role options


{{#if @model.generationPreference}}
{{#if this.errorBanner}} {{/if}} {{#each @model.filteredFormFields as |field|}} {{/each}}
{{#if this.showAnnotations}}
{{#each this.extraFields as |field|}}

Extra {{field.type}}

{{field.description}} See Kubernetes {{singularize field.type}} documentation here .


{{/each}}
{{/if}}
{{#if (eq @model.generationPreference "full")}}

Generated role rules

{{#let (find-by "id" this.selectedTemplateId this.roleRulesTemplates) as |template|}} {{/let}}
{{/if}} {{#if this.invalidFormAlert}}
{{/if}} {{else}} {{/if}}