Change default cluster size to n1-standard-2

This commit is contained in:
bikebilly 2017-11-06 15:04:15 +01:00
parent cfc932cad1
commit fa8c3159da
5 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ module Gcp
default_value_for :gcp_cluster_zone, 'us-central1-a'
default_value_for :gcp_cluster_size, 3
default_value_for :gcp_machine_type, 'n1-standard-4'
default_value_for :gcp_machine_type, 'n1-standard-2'
attr_encrypted :password,
mode: :per_attribute_iv,

View file

@ -27,7 +27,7 @@
.form-group
= field.label :gcp_machine_type, s_('ClusterIntegration|Machine type')
= link_to(s_('ClusterIntegration|See machine types'), 'https://cloud.google.com/compute/docs/machine-types', target: '_blank', rel: 'noopener noreferrer')
= field.text_field :gcp_machine_type, class: 'form-control', placeholder: 'n1-standard-4'
= field.text_field :gcp_machine_type, class: 'form-control', placeholder: 'n1-standard-2'
.form-group
= field.label :project_namespace, s_('ClusterIntegration|Project namespace (optional, unique)')

View file

@ -7,7 +7,7 @@ FactoryGirl.define do
gcp_cluster_name 'test-cluster'
gcp_cluster_zone 'us-central1-a'
gcp_cluster_size 1
gcp_machine_type 'n1-standard-4'
gcp_machine_type 'n1-standard-2'
trait :with_kubernetes_service do
after(:create) do |cluster, evaluator|

View file

@ -69,7 +69,7 @@ describe GoogleApi::CloudPlatform::Client do
let(:cluster_name) { 'test-cluster' }
let(:cluster_size) { 1 }
let(:machine_type) { 'n1-standard-4' }
let(:machine_type) { 'n1-standard-2' }
let(:operation) { double }
before do

View file

@ -36,7 +36,7 @@ describe Gcp::Cluster do
it { expect(cluster.gcp_cluster_zone).to eq('us-central1-a') }
it { expect(cluster.gcp_cluster_size).to eq(3) }
it { expect(cluster.gcp_machine_type).to eq('n1-standard-4') }
it { expect(cluster.gcp_machine_type).to eq('n1-standard-2') }
end
describe '#validates' do