def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.BETA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring, enable_kubernetes=True) flags.AddMonitoringServiceFlag(group_logging_monitoring, enable_kubernetes=True) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddMaintenanceWindowFlag(group, add_unset_text=True) flags.AddPodSecurityPolicyFlag(group) flags.AddEnableBinAuthzFlag(group) flags.AddAutoprovisioningFlags(group) flags.AddVerticalPodAutoscalingFlag(group) flags.AddResourceUsageExportFlags(group, is_update=True) flags.AddIstioConfigFlag(parser) flags.AddEnableIntraNodeVisibilityFlag(group) flags.AddWorkloadIdentityFlags(group) flags.AddWorkloadIdentityUpdateFlags(group) flags.AddEnableShieldedNodesFlags(group)
def Args(parser): """Register flags for this command. Args: parser: An argparse.ArgumentParser-like object. It is mocked out in order to capture some information, but behaves like an ArgumentParser. """ _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) group_locations = group.add_mutually_exclusive_group() _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.GA) flags.AddNodeLocationsFlag(group_locations) flags.AddClusterAutoscalingFlags(parser, group) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddEnableIntraNodeVisibilityFlag(group) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring) flags.AddMonitoringServiceFlag(group_logging_monitoring) flags.AddEnableBinAuthzFlag(group) flags.AddEnableStackdriverKubernetesFlag(group) flags.AddDailyMaintenanceWindowFlag(group, add_unset_text=True) flags.AddResourceUsageExportFlags(group, is_update=True) flags.AddVerticalPodAutoscalingFlag(group, hidden=True)
def Args(parser): """Register flags for this command. Args: parser: An argparse.ArgumentParser-like object. It is mocked out in order to capture some information, but behaves like an ArgumentParser. """ _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) group_locations = group.add_mutually_exclusive_group() _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.GA) flags.AddNodeLocationsFlag(group_locations) flags.AddClusterAutoscalingFlags(parser, group) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddLoggingServiceFlag(group) flags.AddMaintenanceWindowFlag(group, add_unset_text=True)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.ALPHA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring, enable_kubernetes=True) flags.AddMonitoringServiceFlag(group_logging_monitoring, enable_kubernetes=True) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddAutoprovisioningFlags(group, hidden=False) flags.AddMaintenanceWindowFlag(group, add_unset_text=True) flags.AddPodSecurityPolicyFlag(group) flags.AddEnableBinAuthzFlag(group, hidden=True) flags.AddResourceUsageBigqueryDatasetFlag(group, add_clear_flag=True) flags.AddVerticalPodAutoscalingFlag(group, hidden=True)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.BETA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring, enable_kubernetes=True) flags.AddMonitoringServiceFlag(group_logging_monitoring, enable_kubernetes=True) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddMaintenanceWindowFlag(group, add_unset_text=True) flags.AddPodSecurityPolicyFlag(group) flags.AddEnableBinAuthzFlag(group) flags.AddAutoprovisioningFlags(group) flags.AddVerticalPodAutoscalingFlag(group, hidden=True) # TODO(b/118979273): unhide the flags once the beta launch of GKE resource # usage export is ready. flags.AddResourceUsageExportFlags(group, add_clear_flag=True, hidden=True) flags.AddIstioConfigFlag(parser)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.BETA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring) flags.AddMonitoringServiceFlag(group_logging_monitoring) flags.AddEnableStackdriverKubernetesFlag(group) flags.AddEnableLoggingMonitoringSystemOnlyFlag(group) flags.AddEnableWorkloadMonitoringEapFlag(group) flags.AddEnableMasterSignalsFlags(group) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddDailyMaintenanceWindowFlag(group, add_unset_text=True) flags.AddRecurringMaintenanceWindowFlags(group, is_update=True) flags.AddPodSecurityPolicyFlag(group) flags.AddEnableBinAuthzFlag(group) flags.AddAutoprovisioningFlags(group) flags.AddAutoscalingProfilesFlag(group) flags.AddVerticalPodAutoscalingFlag(group) flags.AddResourceUsageExportFlags(group, is_update=True) flags.AddIstioConfigFlag(parser) flags.AddCloudRunConfigFlag(parser) flags.AddEnableIntraNodeVisibilityFlag(group) flags.AddWorkloadIdentityFlags(group, use_identity_provider=True, use_workload_certificates=True) flags.AddWorkloadIdentityUpdateFlags(group, use_workload_certificates=True) flags.AddGkeOidcFlag(group) flags.AddDatabaseEncryptionFlag(group) flags.AddDisableDatabaseEncryptionFlag(group) flags.AddReleaseChannelFlag(group, is_update=True, hidden=False) flags.AddEnableShieldedNodesFlags(group) flags.AddTpuFlags(group, enable_tpu_service_networking=True) flags.AddMasterGlobalAccessFlag(group, is_update=True) flags.AddEnableGvnicFlag(group) flags.AddDisableDefaultSnatFlag(group, for_cluster_create=False) flags.AddNotificationConfigFlag(group) flags.AddPrivateIpv6GoogleAccessTypeFlag('v1beta1', group, hidden=False) flags.AddKubernetesObjectsExportConfig(group) flags.AddDisableAutopilotFlag(group, hidden=True) flags.AddILBSubsettingFlags(group, hidden=True) flags.AddClusterDNSFlags(group, hidden=True) flags.AddCrossConnectSubnetworksMutationFlags(group)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group) flags.AddClusterAutoscalingFlags(parser, group) _AddAdditionalZonesArg(group) flags.AddMasterAuthorizedNetworksFlags(parser, group, hidden=True) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddCompleteIpRotationFlag(group)
def Args(parser): """Register flags for this command. Args: parser: An argparse.ArgumentParser-like object. It is mocked out in order to capture some information, but behaves like an ArgumentParser. """ _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group) flags.AddClusterAutoscalingFlags(parser, group, hidden=True) flags.AddMasterAuthorizedNetworksFlags(parser, group, hidden=True) flags.AddEnableLegacyAuthorizationFlag(group, hidden=True) flags.AddStartIpRotationFlag(group, hidden=True) flags.AddCompleteIpRotationFlag(group, hidden=True)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.BETA) flags.AddClusterAutoscalingFlags(parser, group) _AddAdditionalZonesArg(group) flags.AddMasterAuthorizedNetworksFlags(parser, group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddLoggingServiceFlag(group) flags.AddEnableAuditLoggingFlag(group, hidden=True) flags.AddMaintenanceWindowFlag(group, add_unset_text=True)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) flags.AddMasterAuthorizedNetworksFlags(parser, group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group, hidden=False) flags.AddLoggingServiceFlag(group) flags.AddEnableAuditLoggingFlag(group, hidden=True)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.ALPHA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring) flags.AddMonitoringServiceFlag(group_logging_monitoring) flags.AddEnableStackdriverKubernetesFlag(group) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddAutoprovisioningFlags(group, hidden=False) flags.AddAutoscalingProfilesFlag(group, hidden=True) flags.AddDailyMaintenanceWindowFlag(group, add_unset_text=True, add_emw_text=True) flags.AddRecurringMaintenanceWindowFlags(group, hidden=False, is_update=True) flags.AddPodSecurityPolicyFlag(group) flags.AddEnableBinAuthzFlag(group) flags.AddResourceUsageExportFlags(group, is_update=True) flags.AddVerticalPodAutoscalingFlag(group) flags.AddSecurityProfileForUpdateFlag(group) flags.AddIstioConfigFlag(parser) flags.AddEnableIntraNodeVisibilityFlag(group) flags.AddPeeringRouteSharingFlag(group) flags.AddWorkloadIdentityFlags(group) flags.AddWorkloadIdentityUpdateFlags(group) flags.AddEnableShieldedNodesFlags(group) flags.AddDisableDefaultSnatFlag(group, for_cluster_create=False) flags.AddDatabaseEncryptionFlag(group) flags.AddDisableDatabaseEncryptionFlag(group) flags.AddCostManagementConfigFlag(group, is_update=True)
def Args(parser): """Register flags for this command. Args: parser: An argparse.ArgumentParser-like object. It is mocked out in order to capture some information, but behaves like an ArgumentParser. """ _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) group_locations = group.add_mutually_exclusive_group() _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.GA) flags.AddNodeLocationsFlag(group_locations) flags.AddClusterAutoscalingFlags(parser, group) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddCloudRunConfigFlag(parser) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddEnableIntraNodeVisibilityFlag(group) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring) flags.AddMonitoringServiceFlag(group_logging_monitoring) flags.AddEnableBinAuthzFlag(group) flags.AddEnableStackdriverKubernetesFlag(group) flags.AddDailyMaintenanceWindowFlag(group, add_unset_text=True) flags.AddRecurringMaintenanceWindowFlags(group, is_update=True) flags.AddResourceUsageExportFlags(group, is_update=True) flags.AddReleaseChannelFlag(group, is_update=True, hidden=False) flags.AddWorkloadIdentityFlags(group) flags.AddWorkloadIdentityUpdateFlags(group) flags.AddDatabaseEncryptionFlag(group) flags.AddDisableDatabaseEncryptionFlag(group) flags.AddDisableDefaultSnatFlag(group, for_cluster_create=False) flags.AddVerticalPodAutoscalingFlag(group) flags.AddAutoprovisioningFlags(group) flags.AddEnableShieldedNodesFlags(group) flags.AddMasterGlobalAccessFlag(group, is_update=True) flags.AddPrivateIpv6GoogleAccessTypeFlag('v1', group, hidden=False) flags.AddNotificationConfigFlag(group)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.BETA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) group_logging_monitoring = group.add_group() flags.AddLoggingServiceFlag(group_logging_monitoring) flags.AddMonitoringServiceFlag(group_logging_monitoring) flags.AddEnableStackdriverKubernetesFlag(group) flags.AddEnableLoggingMonitoringSystemOnlyFlag(group) flags.AddMasterAuthorizedNetworksFlags(parser, enable_group_for_update=group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddStartCredentialRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddCompleteCredentialRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group) flags.AddDailyMaintenanceWindowFlag(group, add_unset_text=True) flags.AddRecurringMaintenanceWindowFlags(group, is_update=True) flags.AddPodSecurityPolicyFlag(group) flags.AddEnableBinAuthzFlag(group) flags.AddAutoprovisioningFlags(group) flags.AddAutoscalingProfilesFlag(group) flags.AddVerticalPodAutoscalingFlag(group) flags.AddResourceUsageExportFlags(group, is_update=True) flags.AddIstioConfigFlag(parser) flags.AddEnableIntraNodeVisibilityFlag(group) flags.AddWorkloadIdentityFlags(group, use_workload_pool=False) flags.AddWorkloadIdentityUpdateFlags(group) flags.AddDatabaseEncryptionFlag(group) flags.AddDisableDatabaseEncryptionFlag(group) flags.AddReleaseChannelFlag(group, is_update=True, hidden=False) flags.AddEnableShieldedNodesFlags(group) flags.AddTpuFlags(group, enable_tpu_service_networking=True) flags.AddMasterGlobalAccessFlag(group) flags.AddEnableGvnicFlag(group)
def Args(parser): _AddCommonArgs(parser) group = parser.add_mutually_exclusive_group(required=True) _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.ALPHA) flags.AddClusterAutoscalingFlags(parser, group) group_locations = group.add_mutually_exclusive_group() _AddAdditionalZonesArg(group_locations, deprecated=True) flags.AddNodeLocationsFlag(group_locations) flags.AddMasterAuthorizedNetworksFlags(parser, group) flags.AddEnableLegacyAuthorizationFlag(group) flags.AddStartIpRotationFlag(group) flags.AddCompleteIpRotationFlag(group) flags.AddUpdateLabelsFlag(group) flags.AddRemoveLabelsFlag(group) flags.AddNetworkPolicyFlags(group, hidden=False) flags.AddLoggingServiceFlag(group) flags.AddAutoprovisioningFlags(parser, group, hidden=False) flags.AddMaintenanceWindowFlag(group, add_unset_text=True) flags.AddPodSecurityPolicyFlag(group, hidden=True) flags.AddEnableBinAuthzFlag(group, hidden=True)