Skip to content

Commit

Permalink
chore: goimports (argoproj#3107)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec authored May 26, 2020
1 parent 8491e00 commit 6229353
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 79 deletions.
43 changes: 25 additions & 18 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,23 @@
}
}
},
"io.argoproj.workflow.v1alpha1.Condition": {
"type": "object",
"properties": {
"message": {
"description": "Message is the condition message",
"type": "string"
},
"status": {
"description": "Status is the status of the condition",
"type": "string"
},
"type": {
"description": "Type is the type of condition",
"type": "string"
}
}
},
"io.argoproj.workflow.v1alpha1.ContinueOn": {
"description": "ContinueOn defines if a workflow should continue even if a task or step fails/errors. It can be specified if the workflow should continue when the pod errors, fails or both.",
"type": "object",
Expand Down Expand Up @@ -2167,6 +2184,13 @@
"$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference"
}
},
"conditions": {
"description": "Conditions is a list of conditions the CronWorkflow may have",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Condition"
}
},
"lastScheduledTime": {
"description": "LastScheduleTime is the last time the CronWorkflow was scheduled",
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
Expand Down Expand Up @@ -3675,23 +3699,6 @@
}
}
},
"io.argoproj.workflow.v1alpha1.WorkflowCondition": {
"type": "object",
"properties": {
"message": {
"description": "Message is the condition message",
"type": "string"
},
"status": {
"description": "Status is the status of the condition",
"type": "string"
},
"type": {
"description": "Type is the type of condition",
"type": "string"
}
}
},
"io.argoproj.workflow.v1alpha1.WorkflowCreateRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3996,7 +4003,7 @@
"description": "Conditions is a list of conditions the Workflow may have",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowCondition"
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Condition"
}
},
"finishedAt": {
Expand Down
2 changes: 1 addition & 1 deletion cmd/argoexec/commands/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ func waitContainer() error {
}

return nil
}
}
5 changes: 3 additions & 2 deletions docs/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ WorkflowStatus contains overall status information about a workflow
| Field Name | Field Type | Description |
|:----------:|:----------:|---------------|
|`compressedNodes`|`string`|Compressed and base64 decoded Nodes map|
|`conditions`|`Array<`[`WorkflowCondition`](#workflowcondition)`>`|Conditions is a list of conditions the Workflow may have|
|`conditions`|`Array<`[`Condition`](#condition)`>`|Conditions is a list of conditions the Workflow may have|
|`finishedAt`|[`Time`](#time)|Time at which this workflow completed|
|`message`|`string`|A human readable message indicating details about why the workflow is in this condition.|
|`nodes`|[`NodeStatus`](#nodestatus)|Nodes is a mapping between a node ID and the node's status.|
Expand Down Expand Up @@ -861,6 +861,7 @@ CronWorkflowStatus is the status of a CronWorkflow
| Field Name | Field Type | Description |
|:----------:|:----------:|---------------|
|`active`|`Array<`[`ObjectReference`](#objectreference)`>`|Active is a list of active workflows stemming from this CronWorkflow|
|`conditions`|`Array<`[`Condition`](#condition)`>`|Conditions is a list of conditions the CronWorkflow may have|
|`lastScheduledTime`|[`Time`](#time)|LastScheduleTime is the last time the CronWorkflow was scheduled|

## WorkflowTemplateSpec
Expand Down Expand Up @@ -1649,7 +1650,7 @@ WorkflowTemplateRef is a reference to a WorkflowTemplate resource.
|`clusterScope`|`boolean`|ClusterScope indicates the referred template is cluster scoped (i.e. a ClusterWorkflowTemplate).|
|`name`|`string`|Name is the resource name of the workflow template.|

## WorkflowCondition
## Condition

_No description available_

Expand Down
5 changes: 3 additions & 2 deletions examples/example-golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"os/user"
"path/filepath"

wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
wfclientset "github.com/argoproj/argo/pkg/client/clientset/versioned"
"github.com/argoproj/pkg/errors"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/tools/clientcmd"

wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
wfclientset "github.com/argoproj/argo/pkg/client/clientset/versioned"
)

var (
Expand Down
43 changes: 25 additions & 18 deletions pkg/apiclient/_.secondary.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,23 @@
}
}
},
"github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Condition": {
"type": "object",
"properties": {
"message": {
"description": "Message is the condition message",
"type": "string"
},
"status": {
"description": "Status is the status of the condition",
"type": "string"
},
"type": {
"description": "Type is the type of condition",
"type": "string"
}
}
},
"github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ContinueOn": {
"description": "ContinueOn defines if a workflow should continue even if a task or step fails/errors. It can be specified if the workflow should continue when the pod errors, fails or both.",
"type": "object",
Expand Down Expand Up @@ -406,6 +423,13 @@
"$ref": "#/definitions/k8s.io.api.core.v1.ObjectReference"
}
},
"conditions": {
"description": "Conditions is a list of conditions the CronWorkflow may have",
"type": "array",
"items": {
"$ref": "#/definitions/github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Condition"
}
},
"lastScheduledTime": {
"description": "LastScheduleTime is the last time the CronWorkflow was scheduled",
"$ref": "#/definitions/k8s.io.apimachinery.pkg.apis.meta.v1.Time"
Expand Down Expand Up @@ -2073,23 +2097,6 @@
}
}
},
"github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowCondition": {
"type": "object",
"properties": {
"message": {
"description": "Message is the condition message",
"type": "string"
},
"status": {
"description": "Status is the status of the condition",
"type": "string"
},
"type": {
"description": "Type is the type of condition",
"type": "string"
}
}
},
"github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowList": {
"description": "WorkflowList is list of Workflow resources",
"type": "object",
Expand Down Expand Up @@ -2311,7 +2318,7 @@
"description": "Conditions is a list of conditions the Workflow may have",
"type": "array",
"items": {
"$ref": "#/definitions/github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowCondition"
"$ref": "#/definitions/github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Condition"
}
},
"finishedAt": {
Expand Down
87 changes: 50 additions & 37 deletions pkg/apis/workflow/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion util/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ func removeListFields(config, live []interface{}) []interface{} {
}
}
return result
}
}

0 comments on commit 6229353

Please sign in to comment.