Class: Google::Apis::ContainerV1::AddonsConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddonsConfig

Returns a new instance of AddonsConfig.



146
147
148
# File 'lib/google/apis/container_v1/classes.rb', line 146

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_run_configGoogle::Apis::ContainerV1::CloudRunConfig

Configuration options for the Cloud Run feature. Corresponds to the JSON property cloudRunConfig



94
95
96
# File 'lib/google/apis/container_v1/classes.rb', line 94

def cloud_run_config
  @cloud_run_config
end

#config_connector_configGoogle::Apis::ContainerV1::ConfigConnectorConfig

Configuration options for the Config Connector add-on. Corresponds to the JSON property configConnectorConfig



99
100
101
# File 'lib/google/apis/container_v1/classes.rb', line 99

def config_connector_config
  @config_connector_config
end

#dns_cache_configGoogle::Apis::ContainerV1::DnsCacheConfig

Configuration for NodeLocal DNSCache Corresponds to the JSON property dnsCacheConfig



104
105
106
# File 'lib/google/apis/container_v1/classes.rb', line 104

def dns_cache_config
  @dns_cache_config
end

#gce_persistent_disk_csi_driver_configGoogle::Apis::ContainerV1::GcePersistentDiskCsiDriverConfig

Configuration for the Compute Engine PD CSI driver. Corresponds to the JSON property gcePersistentDiskCsiDriverConfig



109
110
111
# File 'lib/google/apis/container_v1/classes.rb', line 109

def gce_persistent_disk_csi_driver_config
  @gce_persistent_disk_csi_driver_config
end

#gcp_filestore_csi_driver_configGoogle::Apis::ContainerV1::GcpFilestoreCsiDriverConfig

Configuration for the GCP Filestore CSI driver. Corresponds to the JSON property gcpFilestoreCsiDriverConfig



114
115
116
# File 'lib/google/apis/container_v1/classes.rb', line 114

def gcp_filestore_csi_driver_config
  @gcp_filestore_csi_driver_config
end

#gke_backup_agent_configGoogle::Apis::ContainerV1::GkeBackupAgentConfig

Configuration for the Backup for GKE Agent. Corresponds to the JSON property gkeBackupAgentConfig



119
120
121
# File 'lib/google/apis/container_v1/classes.rb', line 119

def gke_backup_agent_config
  @gke_backup_agent_config
end

#horizontal_pod_autoscalingGoogle::Apis::ContainerV1::HorizontalPodAutoscaling

Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. Corresponds to the JSON property horizontalPodAutoscaling



126
127
128
# File 'lib/google/apis/container_v1/classes.rb', line 126

def horizontal_pod_autoscaling
  @horizontal_pod_autoscaling
end

#http_load_balancingGoogle::Apis::ContainerV1::HttpLoadBalancing

Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. Corresponds to the JSON property httpLoadBalancing



132
133
134
# File 'lib/google/apis/container_v1/classes.rb', line 132

def http_load_balancing
  @http_load_balancing
end

#kubernetes_dashboardGoogle::Apis::ContainerV1::KubernetesDashboard

Configuration for the Kubernetes Dashboard. Corresponds to the JSON property kubernetesDashboard



137
138
139
# File 'lib/google/apis/container_v1/classes.rb', line 137

def kubernetes_dashboard
  @kubernetes_dashboard
end

#network_policy_configGoogle::Apis::ContainerV1::NetworkPolicyConfig

Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. Corresponds to the JSON property networkPolicyConfig



144
145
146
# File 'lib/google/apis/container_v1/classes.rb', line 144

def network_policy_config
  @network_policy_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/google/apis/container_v1/classes.rb', line 151

def update!(**args)
  @cloud_run_config = args[:cloud_run_config] if args.key?(:cloud_run_config)
  @config_connector_config = args[:config_connector_config] if args.key?(:config_connector_config)
  @dns_cache_config = args[:dns_cache_config] if args.key?(:dns_cache_config)
  @gce_persistent_disk_csi_driver_config = args[:gce_persistent_disk_csi_driver_config] if args.key?(:gce_persistent_disk_csi_driver_config)
  @gcp_filestore_csi_driver_config = args[:gcp_filestore_csi_driver_config] if args.key?(:gcp_filestore_csi_driver_config)
  @gke_backup_agent_config = args[:gke_backup_agent_config] if args.key?(:gke_backup_agent_config)
  @horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
  @http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
  @kubernetes_dashboard = args[:kubernetes_dashboard] if args.key?(:kubernetes_dashboard)
  @network_policy_config = args[:network_policy_config] if args.key?(:network_policy_config)
end