Class: Google::Apis::GkehubV2::PolicyControllerPolicyControllerDeploymentConfig

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

Overview

Deployment-specific configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerPolicyControllerDeploymentConfig

Returns a new instance of PolicyControllerPolicyControllerDeploymentConfig.



2849
2850
2851
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2849

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

Instance Attribute Details

#container_resourcesGoogle::Apis::GkehubV2::PolicyControllerResourceRequirements

ResourceRequirements describes the compute resource requirements. Corresponds to the JSON property containerResources



2826
2827
2828
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2826

def container_resources
  @container_resources
end

#pod_affinityString

Pod affinity configuration. Corresponds to the JSON property podAffinity

Returns:

  • (String)


2831
2832
2833
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2831

def pod_affinity
  @pod_affinity
end

#pod_anti_affinityBoolean Also known as: pod_anti_affinity?

Pod anti-affinity enablement. Deprecated: use pod_affinity instead. Corresponds to the JSON property podAntiAffinity

Returns:

  • (Boolean)


2836
2837
2838
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2836

def pod_anti_affinity
  @pod_anti_affinity
end

#pod_tolerationsArray<Google::Apis::GkehubV2::PolicyControllerToleration>

Pod tolerations of node taints. Corresponds to the JSON property podTolerations



2842
2843
2844
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2842

def pod_tolerations
  @pod_tolerations
end

#replica_countFixnum

Pod replica count. Corresponds to the JSON property replicaCount

Returns:

  • (Fixnum)


2847
2848
2849
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2847

def replica_count
  @replica_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2854
2855
2856
2857
2858
2859
2860
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2854

def update!(**args)
  @container_resources = args[:container_resources] if args.key?(:container_resources)
  @pod_affinity = args[:pod_affinity] if args.key?(:pod_affinity)
  @pod_anti_affinity = args[:pod_anti_affinity] if args.key?(:pod_anti_affinity)
  @pod_tolerations = args[:pod_tolerations] if args.key?(:pod_tolerations)
  @replica_count = args[:replica_count] if args.key?(:replica_count)
end