Commit abd17639 authored by James Lopez's avatar James Lopez

Merge branch 'ce-to-ee-2018-02-23' into 'master'

CE upstream - 2018-02-23 00:25 UTC

See merge request gitlab-org/gitlab-ee!4685
parents 316b5507 30fb1f8b
...@@ -476,7 +476,7 @@ module Ci ...@@ -476,7 +476,7 @@ module Ci
if cache && project.jobs_cache_index if cache && project.jobs_cache_index
cache = cache.merge( cache = cache.merge(
key: "#{cache[:key]}_#{project.jobs_cache_index}") key: "#{cache[:key]}-#{project.jobs_cache_index}")
end end
[cache] [cache]
......
...@@ -30,10 +30,10 @@ module Clusters ...@@ -30,10 +30,10 @@ module Clusters
ca_cert: Base64.decode64(gke_cluster.master_auth.cluster_ca_certificate), ca_cert: Base64.decode64(gke_cluster.master_auth.cluster_ca_certificate),
username: gke_cluster.master_auth.username, username: gke_cluster.master_auth.username,
password: gke_cluster.master_auth.password, password: gke_cluster.master_auth.password,
token: request_kuberenetes_token) token: request_kubernetes_token)
end end
def request_kuberenetes_token def request_kubernetes_token
Ci::FetchKubernetesTokenService.new( Ci::FetchKubernetesTokenService.new(
'https://' + gke_cluster.endpoint, 'https://' + gke_cluster.endpoint,
Base64.decode64(gke_cluster.master_auth.cluster_ca_certificate), Base64.decode64(gke_cluster.master_auth.cluster_ca_certificate),
......
- page_title "UI Development Kit", "Help" - page_title "UI Development Kit", "Help"
- lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fermentum nisi sapien, non consequat lectus aliquam ultrices. Suspendisse sodales est euismod nunc condimentum, a consectetur diam ornare." - lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fermentum nisi sapien, non consequat lectus aliquam ultrices. Suspendisse sodales est euismod nunc condimentum, a consectetur diam ornare."
- content_for :page_specific_javascripts do
= webpack_bundle_tag('ui_development_kit')
.gitlab-ui-dev-kit .gitlab-ui-dev-kit
%h1 GitLab UI development kit %h1 GitLab UI development kit
......
---
title: Enable Legacy Authorization by default on Cluster creations
merge_request: 17302
author:
type: fixed
---
title: Fix issue with cache key being empty when variable used as the key
merge_request: 17260
author:
type: fixed
...@@ -76,9 +76,13 @@ module GoogleApi ...@@ -76,9 +76,13 @@ module GoogleApi
"initial_node_count": cluster_size, "initial_node_count": cluster_size,
"node_config": { "node_config": {
"machine_type": machine_type "machine_type": machine_type
},
"legacy_abac": {
"enabled": true
} }
} }
} ) }
)
service.create_cluster(project_id, zone, request_body, options: user_agent_header) service.create_cluster(project_id, zone, request_body, options: user_agent_header)
end end
......
...@@ -115,6 +115,9 @@ describe GoogleApi::CloudPlatform::Client do ...@@ -115,6 +115,9 @@ describe GoogleApi::CloudPlatform::Client do
"initial_node_count": cluster_size, "initial_node_count": cluster_size,
"node_config": { "node_config": {
"machine_type": machine_type "machine_type": machine_type
},
"legacy_abac": {
"enabled": true
} }
} }
} ) } )
......
...@@ -296,7 +296,7 @@ describe Ci::Build do ...@@ -296,7 +296,7 @@ describe Ci::Build do
allow_any_instance_of(Project).to receive(:jobs_cache_index).and_return(1) allow_any_instance_of(Project).to receive(:jobs_cache_index).and_return(1)
end end
it { is_expected.to be_an(Array).and all(include(key: "key_1")) } it { is_expected.to be_an(Array).and all(include(key: "key-1")) }
end end
context 'when project does not have jobs_cache_index' do context 'when project does not have jobs_cache_index' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment