|
16 | 16 | from oci_cli.aliasing import CommandGroupWithAlias |
17 | 17 |
|
18 | 18 |
|
19 | | -@cli.command(cli_util.override('ce.ce_root_group.command_name', 'ce'), cls=CommandGroupWithAlias, help=cli_util.override('ce.ce_root_group.help', """API for the Container Engine for Kubernetes service. Use this API to build, deploy, |
| 19 | +@cli.command(cli_util.override('ce.ce_root_group.command_name', 'ce'), cls=CommandGroupWithAlias, help=cli_util.override('ce.ce_root_group.help', """API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, |
20 | 20 | and manage cloud-native applications. For more information, see |
21 | | -[Overview of Container Engine for Kubernetes]."""), short_help=cli_util.override('ce.ce_root_group.short_help', """Container Engine for Kubernetes API""")) |
| 21 | +[Overview of Kubernetes Engine]."""), short_help=cli_util.override('ce.ce_root_group.short_help', """Kubernetes Engine API""")) |
22 | 22 | @cli_util.help_option_group |
23 | 23 | def ce_root_group(): |
24 | 24 | pass |
@@ -72,12 +72,6 @@ def cluster_migrate_to_native_vcn_status_group(): |
72 | 72 | pass |
73 | 73 |
|
74 | 74 |
|
75 | | -@click.command(cli_util.override('ce.workload_mapping_summary_group.command_name', 'workload-mapping-summary'), cls=CommandGroupWithAlias, help="""The properties that define an workloadMapping summary.""") |
76 | | -@cli_util.help_option_group |
77 | | -def workload_mapping_summary_group(): |
78 | | - pass |
79 | | - |
80 | | - |
81 | 75 | @click.command(cli_util.override('ce.work_request_error_group.command_name', 'work-request-error'), cls=CommandGroupWithAlias, help="""Errors related to a specific work request.""") |
82 | 76 | @cli_util.help_option_group |
83 | 77 | def work_request_error_group(): |
@@ -116,7 +110,6 @@ def cluster_options_group(): |
116 | 110 | ce_root_group.add_command(work_request_log_entry_group) |
117 | 111 | ce_root_group.add_command(work_request_group) |
118 | 112 | ce_root_group.add_command(cluster_migrate_to_native_vcn_status_group) |
119 | | -ce_root_group.add_command(workload_mapping_summary_group) |
120 | 113 | ce_root_group.add_command(work_request_error_group) |
121 | 114 | ce_root_group.add_command(workload_mapping_group) |
122 | 115 | ce_root_group.add_command(node_pool_options_group) |
@@ -987,8 +980,8 @@ def delete_node_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte |
987 | 980 | @virtual_node_pool_group.command(name=cli_util.override('ce.delete_virtual_node_pool.command_name', 'delete'), help=u"""Delete a virtual node pool. \n[Command Reference](deleteVirtualNodePool)""") |
988 | 981 | @cli_util.option('--virtual-node-pool-id', required=True, help=u"""The OCID of the virtual node pool.""") |
989 | 982 | @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""") |
990 | | -@cli_util.option('--override-eviction-grace-duration-vnp', help=u"""Duration after which Sk8s will give up eviction of the pods on the node. PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M""") |
991 | | -@cli_util.option('--is-force-deletion-after-override-grace-duration-vnp', type=click.BOOL, help=u"""If the underlying compute instance should be deleted if you cannot evict all the pods in grace period""") |
| 983 | +@cli_util.option('--override-eviction-grace-duration-vnp', help=u"""Duration after which SKE will give up eviction of the pods on the node. PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M""") |
| 984 | +@cli_util.option('--is-force-deletion-after-override-grace-duration-vnp', type=click.BOOL, help=u"""If the underlying virtual node should be force deleted if all the pods are not evicted in the evictionGraceDuration.""") |
992 | 985 | @cli_util.confirm_delete_option |
993 | 986 | @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""") |
994 | 987 | @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""") |
@@ -1616,7 +1609,7 @@ def list_addons(ctx, from_json, all_pages, page_size, cluster_id, limit, page, s |
1616 | 1609 |
|
1617 | 1610 | @cluster_group.command(name=cli_util.override('ce.list_clusters.command_name', 'list'), help=u"""List all the cluster objects in a compartment. \n[Command Reference](listClusters)""") |
1618 | 1611 | @cli_util.option('--compartment-id', required=True, help=u"""The OCID of the compartment.""") |
1619 | | -@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "FAILED", "DELETING", "DELETED", "UPDATING"]), multiple=True, help=u"""A cluster lifecycle state to filter on. Can have multiple parameters of this name.""") |
| 1612 | +@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "FAILED", "DELETING", "DELETED", "UPDATING"]), multiple=True, help=u"""A cluster lifecycle state to filter on. Can have multiple parameters of this name. For more information, see [Monitoring Clusters]""") |
1620 | 1613 | @cli_util.option('--name', help=u"""The name to filter on.""") |
1621 | 1614 | @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. 1 is the minimum, 1000 is the maximum. For important details about how pagination works, see [List Pagination].""") |
1622 | 1615 | @cli_util.option('--page', help=u"""For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""") |
@@ -1682,7 +1675,7 @@ def list_clusters(ctx, from_json, all_pages, page_size, compartment_id, lifecycl |
1682 | 1675 | @cli_util.option('--page', help=u"""For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""") |
1683 | 1676 | @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The optional order in which to sort the results.""") |
1684 | 1677 | @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["ID", "NAME", "TIME_CREATED"]), help=u"""The optional field to sort the results by.""") |
1685 | | -@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION"]), multiple=True, help=u"""A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. [ACTIVE, DELETING]""") |
| 1678 | +@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION"]), multiple=True, help=u"""A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. [ACTIVE, DELETING]. For more information, see [Monitoring Clusters]""") |
1686 | 1679 | @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""") |
1687 | 1680 | @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""") |
1688 | 1681 | @json_skeleton_utils.get_cli_json_input_option({}) |
@@ -2038,7 +2031,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, clu |
2038 | 2031 | cli_util.render_response(result, ctx) |
2039 | 2032 |
|
2040 | 2033 |
|
2041 | | -@workload_mapping_summary_group.command(name=cli_util.override('ce.list_workload_mappings.command_name', 'list-workload-mappings'), help=u"""List workloadMappings for a provisioned cluster. \n[Command Reference](listWorkloadMappings)""") |
| 2034 | +@workload_mapping_group.command(name=cli_util.override('ce.list_workload_mappings.command_name', 'list'), help=u"""List workloadMappings for a provisioned cluster. \n[Command Reference](listWorkloadMappings)""") |
2042 | 2035 | @cli_util.option('--cluster-id', required=True, help=u"""The OCID of the cluster.""") |
2043 | 2036 | @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. 1 is the minimum, 1000 is the maximum. For important details about how pagination works, see [List Pagination].""") |
2044 | 2037 | @cli_util.option('--page', help=u"""For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""") |
@@ -2097,7 +2090,7 @@ def list_workload_mappings(ctx, from_json, all_pages, page_size, cluster_id, lim |
2097 | 2090 |
|
2098 | 2091 | @cluster_group.command(name=cli_util.override('ce.start_credential_rotation.command_name', 'start-credential-rotation'), help=u"""Start cluster credential rotation by adding new credentials, old credentials will still work after this operation. \n[Command Reference](startCredentialRotation)""") |
2099 | 2092 | @cli_util.option('--cluster-id', required=True, help=u"""The OCID of the cluster.""") |
2100 | | -@cli_util.option('--auto-completion-delay-duration', required=True, help=u"""The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.""") |
| 2093 | +@cli_util.option('--auto-completion-delay-duration', required=True, help=u"""The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 90 days.""") |
2101 | 2094 | @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""") |
2102 | 2095 | @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""") |
2103 | 2096 | @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""") |
|
0 commit comments