k8s get-job
Get k8s job
Description
Get the kubernetes job that satisfies the provided arguments
Synopsis
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
cluster
- (string)
Cluster where this command will be executed
Example: --cluster "in-cluster"
Default: in-cluster
Attributes: optional
namespace
- (string)
Kubernetes namespace
Example: --namespace "namespace-1"
Default: default
Attributes: optional
name
- (string)
name of the job
Example: "name-1"
Default: _None_
Attributes: required
Examples
Input:
Output:{
"cluster": "minikube",
"namespace": "default",
"name": "maira-c09179e9",
"labels": {
"controller-uid": "41993aee-09be-4ec0-a844-4bf664ea69bd",
"job-name": "maira-c09179e9"
}
}
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "k8s" |
Service Instance | cluster |
Namespace | namespace |
Object Type | "job" |
Object ID | name |
Please see Access Control for details.