Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fcbe1807
Commit
fcbe1807
authored
Jan 29, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
e1a1e56a
96777060
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
95 deletions
+64
-95
app/views/clusters/clusters/_form.html.haml
app/views/clusters/clusters/_form.html.haml
+0
-0
app/views/clusters/clusters/gcp/_show.html.haml
app/views/clusters/clusters/gcp/_show.html.haml
+0
-50
app/views/clusters/clusters/show.html.haml
app/views/clusters/clusters/show.html.haml
+2
-5
app/views/clusters/clusters/user/_show.html.haml
app/views/clusters/clusters/user/_show.html.haml
+0
-39
app/views/clusters/platforms/kubernetes/_form.html.haml
app/views/clusters/platforms/kubernetes/_form.html.haml
+58
-0
qa/qa/specs/features/browser_ui/3_create/repository/user_views_raw_diff_patch_requests_spec.rb
...ate/repository/user_views_raw_diff_patch_requests_spec.rb
+4
-1
No files found.
app/views/clusters/clusters/_
integration_
form.html.haml
→
app/views/clusters/clusters/_form.html.haml
View file @
fcbe1807
File moved
app/views/clusters/clusters/gcp/_show.html.haml
deleted
100644 → 0
View file @
e1a1e56a
.form-group
%label
.append-bottom-10
{
for:
'cluster-name'
}
=
s_
(
'ClusterIntegration|Kubernetes cluster name'
)
.input-group
%input
.form-control.cluster-name.js-select-on-focus
{
value:
@cluster
.
name
,
readonly:
true
}
%span
.input-group-append
=
clipboard_button
(
text:
@cluster
.
name
,
title:
s_
(
'ClusterIntegration|Copy Kubernetes cluster name'
),
class:
'input-group-text btn-default'
)
=
form_for
@cluster
,
url:
clusterable
.
cluster_path
(
@cluster
),
as: :cluster
do
|
field
|
=
form_errors
(
@cluster
)
=
field
.
fields_for
:platform_kubernetes
,
@cluster
.
platform_kubernetes
do
|
platform_kubernetes_field
|
.form-group
=
platform_kubernetes_field
.
label
:api_url
,
s_
(
'ClusterIntegration|API URL'
)
.input-group
=
platform_kubernetes_field
.
text_field
:api_url
,
class:
'form-control js-select-on-focus'
,
placeholder:
s_
(
'ClusterIntegration|API URL'
),
readonly:
true
%span
.input-group-append
=
clipboard_button
(
text:
@cluster
.
platform_kubernetes
.
api_url
,
title:
s_
(
'ClusterIntegration|Copy API URL'
),
class:
'input-group-text btn-default'
)
.form-group
=
platform_kubernetes_field
.
label
:ca_cert
,
s_
(
'ClusterIntegration|CA Certificate'
)
.input-group
=
platform_kubernetes_field
.
text_area
:ca_cert
,
class:
'form-control js-select-on-focus'
,
placeholder:
s_
(
'ClusterIntegration|Certificate Authority bundle (PEM format)'
),
readonly:
true
%span
.input-group-append.clipboard-addon
=
clipboard_button
(
text:
@cluster
.
platform_kubernetes
.
ca_cert
,
title:
s_
(
'ClusterIntegration|Copy CA Certificate'
),
class:
'input-group-text btn-blank'
)
.form-group
=
platform_kubernetes_field
.
label
:token
,
s_
(
'ClusterIntegration|Token'
)
.input-group
=
platform_kubernetes_field
.
text_field
:token
,
class:
'form-control js-cluster-token js-select-on-focus'
,
type:
'password'
,
placeholder:
s_
(
'ClusterIntegration|Token'
),
readonly:
true
%span
.input-group-append
%button
.btn.btn-default.input-group-text.js-show-cluster-token
{
type:
'button'
}
=
s_
(
'ClusterIntegration|Show'
)
=
clipboard_button
(
text:
@cluster
.
platform_kubernetes
.
token
,
title:
s_
(
'ClusterIntegration|Copy Token'
),
class:
'btn-default'
)
-
if
@cluster
.
allow_user_defined_namespace?
.form-group
=
platform_kubernetes_field
.
label
:namespace
,
s_
(
'ClusterIntegration|Project namespace (optional, unique)'
)
=
platform_kubernetes_field
.
text_field
:namespace
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|Project namespace'
)
.form-group
.form-check
=
platform_kubernetes_field
.
check_box
:authorization_type
,
{
class:
'form-check-input'
,
disabled:
true
},
'rbac'
,
'abac'
=
platform_kubernetes_field
.
label
:authorization_type
,
s_
(
'ClusterIntegration|RBAC-enabled cluster'
),
class:
'form-check-label label-bold'
.form-text.text-muted
=
s_
(
'ClusterIntegration|Enable this setting if using role-based access control (RBAC).'
)
=
s_
(
'ClusterIntegration|This option will allow you to install applications on RBAC clusters.'
)
.form-group
=
field
.
submit
s_
(
'ClusterIntegration|Save changes'
),
class:
'btn btn-success'
app/views/clusters/clusters/show.html.haml
View file @
fcbe1807
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
%section
#cluster-integration
%section
#cluster-integration
%h4
=
@cluster
.
name
%h4
=
@cluster
.
name
=
render
'banner'
=
render
'banner'
=
render
'
integration_
form'
=
render
'form'
-# EE-specific
-# EE-specific
-
if
@cluster
.
project_type?
&&
@cluster
.
project
.
feature_available?
(
:cluster_health
)
-
if
@cluster
.
project_type?
&&
@cluster
.
project
.
feature_available?
(
:cluster_health
)
...
@@ -46,10 +46,7 @@
...
@@ -46,10 +46,7 @@
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
s_
(
'ClusterIntegration|See and edit the details for your Kubernetes cluster'
)
%p
=
s_
(
'ClusterIntegration|See and edit the details for your Kubernetes cluster'
)
.settings-content
.settings-content
-
if
@cluster
.
managed?
=
render
'clusters/platforms/kubernetes/form'
,
cluster:
@cluster
,
platform:
@cluster
.
platform_kubernetes
,
update_cluster_url_path:
clusterable
.
cluster_path
(
@cluster
)
=
render
'clusters/clusters/gcp/show'
-
else
=
render
'clusters/clusters/user/show'
%section
.settings.no-animate
#js-cluster-advanced-settings
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.no-animate
#js-cluster-advanced-settings
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
.settings-header
...
...
app/views/clusters/clusters/user/_show.html.haml
deleted
100644 → 0
View file @
e1a1e56a
=
form_for
@cluster
,
url:
clusterable
.
cluster_path
(
@cluster
),
as: :cluster
do
|
field
|
=
form_errors
(
@cluster
)
.form-group
=
field
.
label
:name
,
s_
(
'ClusterIntegration|Kubernetes cluster name'
),
class:
'label-bold'
=
field
.
text_field
:name
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|Kubernetes cluster name'
)
=
field
.
fields_for
:platform_kubernetes
,
@cluster
.
platform_kubernetes
do
|
platform_kubernetes_field
|
.form-group
=
platform_kubernetes_field
.
label
:api_url
,
s_
(
'ClusterIntegration|API URL'
),
class:
'label-bold'
=
platform_kubernetes_field
.
text_field
:api_url
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|API URL'
)
.form-group
=
platform_kubernetes_field
.
label
:ca_cert
,
s_
(
'ClusterIntegration|CA Certificate'
),
class:
'label-bold'
=
platform_kubernetes_field
.
text_area
:ca_cert
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|Certificate Authority bundle (PEM format)'
)
.form-group
=
platform_kubernetes_field
.
label
:token
,
s_
(
'ClusterIntegration|Token'
),
class:
'label-bold'
.input-group
=
platform_kubernetes_field
.
text_field
:token
,
class:
'form-control js-cluster-token'
,
type:
'password'
,
placeholder:
s_
(
'ClusterIntegration|Token'
),
autocomplete:
'off'
%span
.input-group-append.clipboard-addon
.input-group-text
%button
.js-show-cluster-token.btn-blank
{
type:
'button'
}
=
s_
(
'ClusterIntegration|Show'
)
-
if
@cluster
.
allow_user_defined_namespace?
.form-group
=
platform_kubernetes_field
.
label
:namespace
,
s_
(
'ClusterIntegration|Project namespace (optional, unique)'
),
class:
'label-bold'
=
platform_kubernetes_field
.
text_field
:namespace
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|Project namespace'
)
.form-group
.form-check
=
platform_kubernetes_field
.
check_box
:authorization_type
,
{
class:
'form-check-input'
,
disabled:
true
},
'rbac'
,
'abac'
=
platform_kubernetes_field
.
label
:authorization_type
,
s_
(
'ClusterIntegration|RBAC-enabled cluster'
),
class:
'form-check-label label-bold'
.form-text.text-muted
=
s_
(
'ClusterIntegration|Enable this setting if using role-based access control (RBAC).'
)
=
s_
(
'ClusterIntegration|This option will allow you to install applications on RBAC clusters.'
)
.form-group
=
field
.
submit
s_
(
'ClusterIntegration|Save changes'
),
class:
'btn btn-success'
app/views/clusters/platforms/kubernetes/_form.html.haml
0 → 100644
View file @
fcbe1807
=
form_for
cluster
,
url:
update_cluster_url_path
,
as: :cluster
do
|
field
|
=
form_errors
(
cluster
)
.form-group
-
if
cluster
.
managed?
%label
.append-bottom-10
{
for:
'cluster-name'
}
=
s_
(
'ClusterIntegration|Kubernetes cluster name'
)
.input-group
%input
.form-control.cluster-name.js-select-on-focus
{
value:
cluster
.
name
,
readonly:
true
}
%span
.input-group-append
=
clipboard_button
(
text:
cluster
.
name
,
title:
s_
(
'ClusterIntegration|Copy Kubernetes cluster name'
),
class:
'input-group-text btn-default'
)
-
else
=
field
.
label
:name
,
s_
(
'ClusterIntegration|Kubernetes cluster name'
),
class:
'label-bold'
.input-group
=
field
.
text_field
:name
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|Kubernetes cluster name'
)
=
field
.
fields_for
:platform_kubernetes
,
platform
do
|
platform_field
|
.form-group
=
platform_field
.
label
:api_url
,
s_
(
'ClusterIntegration|API URL'
)
.input-group
=
platform_field
.
text_field
:api_url
,
class:
'form-control js-select-on-focus'
,
placeholder:
s_
(
'ClusterIntegration|API URL'
),
readonly:
cluster
.
managed?
-
if
cluster
.
managed?
%span
.input-group-append
=
clipboard_button
(
text:
platform
.
api_url
,
title:
s_
(
'ClusterIntegration|Copy API URL'
),
class:
'input-group-text btn-default'
)
.form-group
=
platform_field
.
label
:ca_cert
,
s_
(
'ClusterIntegration|CA Certificate'
)
.input-group
=
platform_field
.
text_area
:ca_cert
,
class:
'form-control js-select-on-focus'
,
placeholder:
s_
(
'ClusterIntegration|Certificate Authority bundle (PEM format)'
),
readonly:
cluster
.
managed?
-
if
cluster
.
managed?
%span
.input-group-append.clipboard-addon
=
clipboard_button
(
text:
platform
.
ca_cert
,
title:
s_
(
'ClusterIntegration|Copy CA Certificate'
),
class:
'input-group-text btn-blank'
)
.form-group
=
platform_field
.
label
:token
,
s_
(
'ClusterIntegration|Token'
)
.input-group
=
platform_field
.
text_field
:token
,
class:
'form-control js-cluster-token js-select-on-focus'
,
type:
'password'
,
placeholder:
s_
(
'ClusterIntegration|Token'
),
readonly:
cluster
.
managed?
%span
.input-group-append
%button
.btn.btn-default.input-group-text.js-show-cluster-token
{
type:
'button'
}
=
s_
(
'ClusterIntegration|Show'
)
-
if
cluster
.
managed?
=
clipboard_button
(
text:
platform
.
token
,
title:
s_
(
'ClusterIntegration|Copy Token'
),
class:
'btn-default'
)
-
if
cluster
.
allow_user_defined_namespace?
.form-group
=
platform_field
.
label
:namespace
,
s_
(
'ClusterIntegration|Project namespace (optional, unique)'
)
=
platform_field
.
text_field
:namespace
,
class:
'form-control'
,
placeholder:
s_
(
'ClusterIntegration|Project namespace'
)
.form-group
.form-check
=
platform_field
.
check_box
:authorization_type
,
{
class:
'form-check-input'
,
disabled:
true
},
'rbac'
,
'abac'
=
platform_field
.
label
:authorization_type
,
s_
(
'ClusterIntegration|RBAC-enabled cluster'
),
class:
'form-check-label label-bold'
.form-text.text-muted
=
s_
(
'ClusterIntegration|Enable this setting if using role-based access control (RBAC).'
)
=
s_
(
'ClusterIntegration|This option will allow you to install applications on RBAC clusters.'
)
.form-group
=
field
.
submit
s_
(
'ClusterIntegration|Save changes'
),
class:
'btn btn-success'
qa/qa/specs/features/browser_ui/3_create/repository/user_views_raw_diff_patch_requests_spec.rb
View file @
fcbe1807
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
module
QA
module
QA
context
'Create'
do
context
'Create'
do
describe
'Commit data'
do
# failure reported: https://gitlab.com/gitlab-org/quality/nightly/issues/42
# also failing in staging until the fix is picked into the next release:
# https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24533
describe
'Commit data'
,
:quarantine
do
before
(
:context
)
do
before
(
:context
)
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment