Skip to content

Commit

Permalink
Simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
mthorley committed Jan 28, 2020
1 parent 9fdff8e commit 927ca7b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pac/controls/gke.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
desc 'Network policy must be enabled to control pod to pod communication.'
describe gke_config do
it { should have_network_policy_enabled }
end
describe gke_config do
it { should_not have_network_policy_config_disabled }
end
end
Expand All @@ -33,11 +31,7 @@
desc 'Cluster must be have private endpoints, nodes and a specified master cidr.'
describe gke_config do
it { should have_a_private_endpoint }
end
describe gke_config do
it { should have_private_nodes }
end
describe gke_config do
its('master_cidr_block') { should_not be_empty }
end
end
Expand All @@ -50,9 +44,6 @@

describe gke_config do
its('cluster_location') { should eq region}
end

describe gke_config do
its('nps_locations') { should all( match(region) ) }
end
end
Expand All @@ -64,11 +55,7 @@
desc 'GKE master basic authentication username and password must be disabled and client cert must not be issued.'
describe gke_config do
its('master_username') { should eq '' }
end
describe gke_config do
its('master_password') { should eq '' }
end
describe gke_config do
it { should_not have_issued_client_cert }
end
end
Expand All @@ -90,8 +77,6 @@
desc 'GKE logging and monitoring must be enabled.'
describe gke_config do
its('logging_service') { should eq 'logging.googleapis.com/kubernetes' }
end
describe gke_config do
its('monitoring_service') { should eq 'monitoring.googleapis.com/kubernetes' }
end
end
Expand Down

0 comments on commit 927ca7b

Please sign in to comment.