debian-mirror-gitlab/app/views/admin/application_settings/_eks.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.7 KiB
Text
Raw Normal View History

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
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2019-12-26 22:10:19 +05:30
= _('Amazon EKS')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2021-04-17 20:07:23 +05:30
= 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
2022-06-21 17:19:12 +05:30
= 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|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2019-12-26 22:10:19 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :eks_integration_enabled,
_('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
2022-05-07 20:08:51 +05:30
= f.label :eks_access_key_id, _('AWS access key ID (Optional)'), 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
2022-05-07 20:08:51 +05:30
= _('Only required if not using role instance credentials.')
2021-02-22 17:27:13 +05:30
2019-12-26 22:10:19 +05:30
.form-group
2022-05-07 20:08:51 +05:30
= f.label :eks_secret_access_key, _('AWS secret access key (Optional)'), 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
2022-05-07 20:08:51 +05:30
= _('Only required if not using role instance credentials.')
2019-12-26 22:10:19 +05:30
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), pajamas_button: true