2019-11-08 01:06:24 -05:00
|
|
|
- expanded = integration_expanded?('eks_')
|
|
|
|
%section.settings.as-eks.no-animate#js-eks-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Amazon EKS')
|
2021-02-27 07:11:02 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
2019-11-08 01:06:24 -05:00
|
|
|
%p
|
|
|
|
= _('Amazon EKS integration allows you to provision EKS clusters from GitLab.')
|
|
|
|
|
|
|
|
.settings-content
|
2022-04-14 17:09:21 -04:00
|
|
|
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-eks-settings'), html: { class: 'fieldset-form', id: 'eks-settings' } do |f|
|
2019-11-08 01:06:24 -05:00
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2022-04-14 17:09:21 -04:00
|
|
|
= f.gitlab_ui_checkbox_component :eks_integration_enabled,
|
|
|
|
_('Enable Amazon EKS integration')
|
2019-11-08 01:06:24 -05:00
|
|
|
.form-group
|
2021-09-03 14:10:36 -04:00
|
|
|
= f.label :eks_account_id, _('Account ID'), class: 'label-bold'
|
2021-01-31 13:09:51 -05:00
|
|
|
= f.text_field :eks_account_id, class: 'form-control gl-form-input'
|
2019-11-08 01:06:24 -05:00
|
|
|
.form-group
|
2022-03-01 10:22:06 -05:00
|
|
|
= f.label :eks_access_key_id, _('AWS access key ID (Optional)'), class: 'label-bold'
|
2021-01-31 13:09:51 -05:00
|
|
|
= f.text_field :eks_access_key_id, class: 'form-control gl-form-input'
|
2020-12-09 16:09:43 -05:00
|
|
|
.form-text.text-muted
|
2022-03-01 10:22:06 -05:00
|
|
|
= _('Only required if not using role instance credentials.')
|
2020-12-09 16:09:43 -05:00
|
|
|
|
2019-11-08 01:06:24 -05:00
|
|
|
.form-group
|
2022-03-01 10:22:06 -05:00
|
|
|
= f.label :eks_secret_access_key, _('AWS secret access key (Optional)'), class: 'label-bold'
|
2021-01-31 13:09:51 -05:00
|
|
|
= f.password_field :eks_secret_access_key, autocomplete: 'off', class: 'form-control gl-form-input'
|
2020-12-09 16:09:43 -05:00
|
|
|
.form-text.text-muted
|
2022-03-01 10:22:06 -05:00
|
|
|
= _('Only required if not using role instance credentials.')
|
2019-11-08 01:06:24 -05:00
|
|
|
|
2021-08-25 17:10:28 -04:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|