Commit fa8c3159 authored by bikebilly's avatar bikebilly

Change default cluster size to n1-standard-2

parent cfc932ca
...@@ -12,7 +12,7 @@ module Gcp ...@@ -12,7 +12,7 @@ module Gcp
default_value_for :gcp_cluster_zone, 'us-central1-a' default_value_for :gcp_cluster_zone, 'us-central1-a'
default_value_for :gcp_cluster_size, 3 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, attr_encrypted :password,
mode: :per_attribute_iv, mode: :per_attribute_iv,
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
.form-group .form-group
= field.label :gcp_machine_type, s_('ClusterIntegration|Machine type') = 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') = 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 .form-group
= field.label :project_namespace, s_('ClusterIntegration|Project namespace (optional, unique)') = field.label :project_namespace, s_('ClusterIntegration|Project namespace (optional, unique)')
......
...@@ -7,7 +7,7 @@ FactoryGirl.define do ...@@ -7,7 +7,7 @@ FactoryGirl.define do
gcp_cluster_name 'test-cluster' gcp_cluster_name 'test-cluster'
gcp_cluster_zone 'us-central1-a' gcp_cluster_zone 'us-central1-a'
gcp_cluster_size 1 gcp_cluster_size 1
gcp_machine_type 'n1-standard-4' gcp_machine_type 'n1-standard-2'
trait :with_kubernetes_service do trait :with_kubernetes_service do
after(:create) do |cluster, evaluator| after(:create) do |cluster, evaluator|
......
...@@ -69,7 +69,7 @@ describe GoogleApi::CloudPlatform::Client do ...@@ -69,7 +69,7 @@ describe GoogleApi::CloudPlatform::Client do
let(:cluster_name) { 'test-cluster' } let(:cluster_name) { 'test-cluster' }
let(:cluster_size) { 1 } let(:cluster_size) { 1 }
let(:machine_type) { 'n1-standard-4' } let(:machine_type) { 'n1-standard-2' }
let(:operation) { double } let(:operation) { double }
before do before do
......
...@@ -36,7 +36,7 @@ describe Gcp::Cluster do ...@@ -36,7 +36,7 @@ describe Gcp::Cluster do
it { expect(cluster.gcp_cluster_zone).to eq('us-central1-a') } it { expect(cluster.gcp_cluster_zone).to eq('us-central1-a') }
it { expect(cluster.gcp_cluster_size).to eq(3) } 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 end
describe '#validates' do describe '#validates' 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