...

Text file src/github.com/emissary-ingress/emissary/v3/cmd/kubestatus/README.md

Documentation: github.com/emissary-ingress/emissary/v3/cmd/kubestatus

     1The kubestatus program provides a command line interface for updating
     2the status of a kubernetes resource.
     3
     4The kubestatus program operates on a set of resources. This set is
     5defined by the combination of the <kind> passed on the command line,
     6and the --field-selector and --label-selector arguments, e.g.:
     7
     8```
     9kubestatus service -f metadata.name=foo
    10```
    11
    12Note that by default kubestatus will just list the statuses you have
    13selected. If you want to update the status, you need to supply it with
    14a new status via the -u or --update flag:
    15
    16```
    17kubestatus service -f metadata.name=foo -u updated-status.json
    18```
    19
    20The status must be supplied in a valid json format in the referenced
    21file. This status also needs to conform to whatever the kubernetes
    22schema is for the given resource. You can use kubectl explain to
    23figure out what that is, e.g.:
    24
    25```
    26kubectl explain service.status
    27...
    28kubectl explain service.status.loadBalancer
    29...
    30```

View as plain text