2019-12-26 22:10:19 +05:30
|
|
|
- expanded = integration_expanded?('eks_')
|
|
|
|
%section.settings.as-eks.no-animate#js-eks-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Amazon EKS')
|
2021-04-17 20:07:23 +05:30
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
2019-12-26 22:10:19 +05:30
|
|
|
%p
|
|
|
|
= _('Amazon EKS integration allows you to provision EKS clusters from GitLab.')
|
|
|
|
|
|
|
|
.settings-content
|
2021-04-29 21:17:54 +05:30
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-eks-settings'), html: { class: 'fieldset-form', id: 'eks-settings' } do |f|
|
2019-12-26 22:10:19 +05:30
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :eks_integration_enabled, class: 'form-check-input'
|
|
|
|
= f.label :eks_integration_enabled, class: 'form-check-label' do
|
2021-11-11 11:23:49 +05:30
|
|
|
= _('Enable Amazon EKS integration')
|
2019-12-26 22:10:19 +05:30
|
|
|
.form-group
|
2021-11-11 11:23:49 +05:30
|
|
|
= f.label :eks_account_id, _('Account ID'), class: 'label-bold'
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.text_field :eks_account_id, class: 'form-control gl-form-input'
|
2019-12-26 22:10:19 +05:30
|
|
|
.form-group
|
2021-11-11 11:23:49 +05:30
|
|
|
= f.label :eks_access_key_id, _('Access key ID'), class: 'label-bold'
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.text_field :eks_access_key_id, class: 'form-control gl-form-input'
|
2021-02-22 17:27:13 +05:30
|
|
|
.form-text.text-muted
|
|
|
|
= _('AWS Access Key. Only required if not using role instance credentials')
|
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
.form-group
|
2021-11-11 11:23:49 +05:30
|
|
|
= f.label :eks_secret_access_key, _('Secret access key'), class: 'label-bold'
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.password_field :eks_secret_access_key, autocomplete: 'off', class: 'form-control gl-form-input'
|
2021-02-22 17:27:13 +05:30
|
|
|
.form-text.text-muted
|
|
|
|
= _('AWS Secret Access Key. Only required if not using role instance credentials')
|
2019-12-26 22:10:19 +05:30
|
|
|
|
2021-11-11 11:23:49 +05:30
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|