Sha256: 68aea0722d55aea7e55e0d48eb59b8b932d195d36ad944e1b331573a8ac2a8b3

Contents?: true

Size: 666 Bytes

Versions: 11

Compression:

Stored size: 666 Bytes

Contents

gke = KubesGoogle::Gke.new(
  cluster_name: KubesGoogle.config.gke.cluster_name,
  google_region: KubesGoogle.config.gke.google_region,
  google_project: KubesGoogle.config.gke.google_project,
  enable_get_credentials: KubesGoogle.config.gke.enable_get_credentials,
  whitelist_ip: KubesGoogle.config.gke.whitelist_ip,
)

before("apply",
  label: "gke get-credentials hook",
  execute: gke.method(:get_credentials).to_proc,
) if gke.get_credentials_enabled?

before("apply",
  label: "gke whitelist hook",
  execute: gke.method(:allow).to_proc,
) if gke.enabled?

after("apply",
  label: "gke whitelist hook",
  execute: gke.method(:deny).to_proc,
) if gke.enabled?

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kubes_google-0.3.11 lib/hooks/kubes.rb
kubes_google-0.3.10 lib/hooks/kubes.rb
kubes_google-0.3.9 lib/hooks/kubes.rb
kubes_google-0.3.8 lib/hooks/kubes.rb
kubes_google-0.3.7 lib/hooks/kubes.rb
kubes_google-0.3.6 lib/hooks/kubes.rb
kubes_google-0.3.5 lib/hooks/kubes.rb
kubes_google-0.3.4 lib/hooks/kubes.rb
kubes_google-0.3.3 lib/hooks/kubes.rb
kubes_google-0.3.2 lib/hooks/kubes.rb
kubes_google-0.3.1 lib/hooks/kubes.rb