Class: Kube::Cluster::Standard::CloudNativePg::Helm::Operator

Inherits:
Object
  • Object
show all
Defined in:
lib/kube/cluster/standard/cloud_native_pg/helm.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Operator

Returns a new instance of Operator.



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/kube/cluster/standard/cloud_native_pg/helm.rb', line 12

def initialize(&block)
  super {
    .name = "cloudnative-pg"
    .namespace = "kube-system"
    spec.chart = "cloudnative-pg"
    spec.version = "0.28.2"
    spec.repo = "https://cloudnative-pg.github.io/charts"
    spec.targetNamespace = "cnpg-system"
    spec.createNamespace = true

    instance_exec(&block) if block
  }
end