Module: GClouder

Includes:
Config::Arguments, Config::CLIArgs, Config::Project, Logging
Defined in:
lib/gclouder/resources/container/clusters.rb,
lib/gclouder.rb,
lib/gclouder/shell.rb,
lib/gclouder/gcloud.rb,
lib/gclouder/gsutil.rb,
lib/gclouder/header.rb,
lib/gclouder/helpers.rb,
lib/gclouder/logging.rb,
lib/gclouder/version.rb,
lib/gclouder/resource.rb,
lib/gclouder/resources.rb,
lib/gclouder/dependencies.rb,
lib/gclouder/config_loader.rb,
lib/gclouder/mappings/file.rb,
lib/gclouder/resources/dns.rb,
lib/gclouder/config/cluster.rb,
lib/gclouder/config/project.rb,
lib/gclouder/config_section.rb,
lib/gclouder/config/cli_args.rb,
lib/gclouder/config/defaults.rb,
lib/gclouder/config/arguments.rb,
lib/gclouder/resource_cleaner.rb,
lib/gclouder/mappings/argument.rb,
lib/gclouder/mappings/property.rb,
lib/gclouder/resources/project.rb,
lib/gclouder/config/files/project.rb,
lib/gclouder/resources/project_id.rb,
lib/gclouder/resources/compute/vpns.rb,
lib/gclouder/resources/compute/disks.rb,
lib/gclouder/resources/logging/sinks.rb,
lib/gclouder/resources/pubsub/topics.rb,
lib/gclouder/resources/validate/local.rb,
lib/gclouder/resources/compute/routers.rb,
lib/gclouder/resources/storage/buckets.rb,
lib/gclouder/resources/validate/global.rb,
lib/gclouder/resources/validate/region.rb,
lib/gclouder/resources/validate/remote.rb,
lib/gclouder/resources/compute/bgp-vpns.rb,
lib/gclouder/resources/compute/networks.rb,
lib/gclouder/resources/compute/url_maps.rb,
lib/gclouder/resources/compute/addresses.rb,
lib/gclouder/resources/compute/instances.rb,
lib/gclouder/resources/functions/function.rb,
lib/gclouder/resources/container/node_pools.rb,
lib/gclouder/resources/pubsub/subscriptions.rb,
lib/gclouder/config/resource_representations.rb,
lib/gclouder/resources/storage/notifications.rb,
lib/gclouder/mappings/resource_representation.rb,
lib/gclouder/resources/compute/firewall_rules.rb,
lib/gclouder/resources/runtime-config/configs.rb,
lib/gclouder/resources/compute/backend_buckets.rb,
lib/gclouder/resources/compute/forwarding_rules.rb,
lib/gclouder/resources/compute/networks/subnets.rb,
lib/gclouder/resources/runtime-config/variables.rb,
lib/gclouder/resources/project/iam_policy_binding.rb,
lib/gclouder/resources/compute/target_https_proxies.rb,
lib/gclouder/resources/compute/project_info/ssh_keys.rb

Overview

NOTE

table of equivalent commands for ‘gcloud container …` commands..

convert node-pool parameters to cluster create and cluster resize parameters..

clusters create - clusters resize - nodepool create

additional-zones - - async - async - cluster-ipv4-cidr - - disable-addons - - disk-size - - disk-size no-enable-cloud-endpoints - - enable-cloud-endpoints no-enable-cloud-logging - - no-enable-cloud-monitoring - - image-type - - image-type machine-type - - machine-type max-nodes-per-pool - - network - - num-nodes - size - num-nodes password - - scopes - - scopes subnetwork - - username - - wait - wait - zone - zone - zone

      • cluster

    • node-pool - -

Defined Under Namespace

Modules: Config, ConfigLoader, ConfigSection, Dependencies, GCloud, GSUtil, Header, Helpers, Logging, Mappings, Project, Resource, Resources, Shell

Constant Summary collapse

VERSION =
"0.3.10"

Class Method Summary collapse

Methods included from Config::Arguments

arguments, #arguments, included, load, permitted, required

Methods included from Logging

#add, #bad, #change, #debug, #error, #fatal, #good, included, #info, log, loggers, #remove, #resource_state, #warn, #warning

Methods included from Config::Project

load, #project, project

Methods included from Helpers

#hash_to_args, included, #module_exists?, #to_arg, #to_deep_merge_hash, #valid_json?

Methods included from Config::CLIArgs

check, #cli_args, cli_args, included, load, valid_resources

Class Method Details

.runObject



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/gclouder.rb', line 98

def self.run
  setup

  begin
    header
    bootstrap
    check_project_exists
    update
    report
    footer
  rescue => error
    raise error if cli_args[:trace] || cli_args[:debug]
    fatal error.message
  ensure
    Project::ID.rescue
  end
end