readAppsV1NamespacedDeploymentStatus method

Future<Deployment> readAppsV1NamespacedDeploymentStatus({
  1. required String name,
  2. required String namespace,
  3. bool? pretty,
})

Read status of the specified Deployment.

name Name of the Deployment.

namespace Object name and auth scope, such as for teams and projects.

pretty If true, then the output is pretty printed.

Implementation

Future<api_apps_v1.Deployment> readAppsV1NamespacedDeploymentStatus({
  required String name,
  required String namespace,
  bool? pretty,
}) async {
  final queryStrings = <String, Object>{};
  if (pretty != null) {
    queryStrings['pretty'] = pretty;
  }

  final query =
      queryStrings.isEmpty ? '' : '?${_joinQueryStrings(queryStrings)}';

  final result = await _getJsonMap(
      '/apis/apps/v1/namespaces/$namespace/deployments/$name/status$query');
  return api_apps_v1.Deployment.fromJson(result);
}