def ParseCreateOptions(self, args): ops = ParseCreateOptionsBase(args) flags.WarnForNodeVersionAutoUpgrade(args) ops.enable_autoprovisioning = args.enable_autoprovisioning ops.autoprovisioning_config_file = args.autoprovisioning_config_file ops.autoprovisioning_service_account = args.autoprovisioning_service_account ops.autoprovisioning_scopes = args.autoprovisioning_scopes ops.autoprovisioning_locations = args.autoprovisioning_locations ops.min_cpu = args.min_cpu ops.max_cpu = args.max_cpu ops.min_memory = args.min_memory ops.max_memory = args.max_memory ops.min_accelerator = args.min_accelerator ops.max_accelerator = args.max_accelerator ops.min_cpu_platform = args.min_cpu_platform ops.workload_metadata_from_node = args.workload_metadata_from_node ops.enable_pod_security_policy = args.enable_pod_security_policy ops.allow_route_overlap = args.allow_route_overlap ops.private_cluster = args.private_cluster ops.enable_stackdriver_kubernetes = args.enable_stackdriver_kubernetes ops.enable_binauthz = args.enable_binauthz ops.istio_config = args.istio_config ops.enable_vertical_pod_autoscaling = args.enable_vertical_pod_autoscaling ops.enable_intra_node_visibility = args.enable_intra_node_visibility ops.security_group = args.security_group ops.identity_namespace = args.identity_namespace ops.enable_shielded_nodes = args.enable_shielded_nodes flags.ValidateIstioConfigCreateArgs(args.istio_config, args.addons) ops.database_encryption = flags.GetDatabaseEncryptionOption(args) return ops
def ParseUpdateOptions(self, args, locations): opts = container_command_util.ParseUpdateOptionsBase(args, locations) opts.enable_pod_security_policy = args.enable_pod_security_policy opts.enable_binauthz = args.enable_binauthz opts.enable_autoprovisioning = args.enable_autoprovisioning opts.autoprovisioning_config_file = args.autoprovisioning_config_file opts.autoprovisioning_service_account = args.autoprovisioning_service_account opts.autoprovisioning_scopes = args.autoprovisioning_scopes opts.autoprovisioning_locations = args.autoprovisioning_locations opts.min_cpu = args.min_cpu opts.max_cpu = args.max_cpu opts.min_memory = args.min_memory opts.max_memory = args.max_memory opts.min_accelerator = args.min_accelerator opts.max_accelerator = args.max_accelerator opts.enable_vertical_pod_autoscaling = args.enable_vertical_pod_autoscaling opts.istio_config = args.istio_config opts.resource_usage_bigquery_dataset = args.resource_usage_bigquery_dataset opts.enable_intra_node_visibility = args.enable_intra_node_visibility opts.clear_resource_usage_bigquery_dataset = \ args.clear_resource_usage_bigquery_dataset opts.enable_network_egress_metering = args.enable_network_egress_metering opts.enable_resource_consumption_metering = args.enable_resource_consumption_metering flags.ValidateIstioConfigUpdateArgs(args.istio_config, args.disable_addons) opts.enable_stackdriver_kubernetes = args.enable_stackdriver_kubernetes opts.database_encryption = flags.GetDatabaseEncryptionOption(args) # Top-level update options are automatically forced to be # mutually-exclusive, so we don't need special handling for these two. opts.identity_namespace = args.identity_namespace opts.disable_workload_identity = args.disable_workload_identity opts.enable_shielded_nodes = args.enable_shielded_nodes return opts
def ParseCreateOptions(self, args): ops = ParseCreateOptionsBase(args) flags.WarnForNodeVersionAutoUpgrade(args) ops.enable_autoprovisioning = args.enable_autoprovisioning ops.autoprovisioning_config_file = args.autoprovisioning_config_file ops.min_cpu = args.min_cpu ops.max_cpu = args.max_cpu ops.min_memory = args.min_memory ops.max_memory = args.max_memory ops.min_accelerator = args.min_accelerator ops.max_accelerator = args.max_accelerator ops.autoscaling_profile = args.autoscaling_profile ops.local_ssd_volume_configs = args.local_ssd_volumes ops.enable_binauthz = args.enable_binauthz ops.workload_metadata_from_node = args.workload_metadata_from_node ops.enable_pod_security_policy = args.enable_pod_security_policy ops.allow_route_overlap = args.allow_route_overlap ops.private_cluster = args.private_cluster ops.enable_private_nodes = args.enable_private_nodes ops.enable_private_endpoint = args.enable_private_endpoint ops.master_ipv4_cidr = args.master_ipv4_cidr ops.enable_tpu_service_networking = args.enable_tpu_service_networking ops.istio_config = args.istio_config ops.enable_stackdriver_kubernetes = args.enable_stackdriver_kubernetes ops.enable_managed_pod_identity = args.enable_managed_pod_identity ops.identity_namespace = args.identity_namespace ops.federating_service_account = args.federating_service_account ops.security_group = args.security_group flags.ValidateIstioConfigCreateArgs(args.istio_config, args.addons) ops.enable_vertical_pod_autoscaling = args.enable_vertical_pod_autoscaling ops.security_profile = args.security_profile ops.security_profile_runtime_rules = args.security_profile_runtime_rules ops.node_pool_name = args.node_pool_name ops.enable_network_egress_metering = args.enable_network_egress_metering ops.enable_resource_consumption_metering = args.enable_resource_consumption_metering ops.enable_private_ipv6_access = args.enable_private_ipv6_access ops.enable_intra_node_visibility = args.enable_intra_node_visibility ops.enable_peering_route_sharing = args.enable_peering_route_sharing ops.enable_shielded_nodes = args.enable_shielded_nodes ops.release_channel = args.release_channel ops.autoprovisioning_service_account = args.autoprovisioning_service_account ops.autoprovisioning_scopes = args.autoprovisioning_scopes ops.autoprovisioning_locations = args.autoprovisioning_locations ops.database_encryption = flags.GetDatabaseEncryptionOption(args) ops.max_surge_upgrade = args.max_surge_upgrade ops.max_unavailable_upgrade = args.max_unavailable_upgrade ops.linux_sysctls = args.linux_sysctls ops.disable_default_snat = args.disable_default_snat ops.shielded_secure_boot = args.shielded_secure_boot ops.shielded_integrity_monitoring = args.shielded_integrity_monitoring return ops