Skip to content

Commit

Permalink
Rename apiVersion of workflows from v1 to v1alpha1 (resolves argoproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesuen committed Dec 2, 2017
1 parent 5286728 commit 424fba5
Show file tree
Hide file tree
Showing 58 changed files with 63 additions and 63 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
CRDPlural string = "workflows"
CRDShortName string = "wf"
CRDGroup string = "argoproj.io"
CRDVersion string = "v1"
CRDVersion string = "v1alpha1"
CRDFullName string = CRDPlural + "." + CRDGroup
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/argo/commands/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
wfclient "github.com/argoproj/argo/workflow/client"
"github.com/spf13/cobra"
"k8s.io/client-go/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"text/tabwriter"
"time"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
humanize "github.com/dustin/go-humanize"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"fmt"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
workflowclient "github.com/argoproj/argo/workflow/client"
"github.com/argoproj/argo/workflow/common"
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
cmdutil "github.com/argoproj/argo/util/cmd"
"github.com/argoproj/argo/workflow/common"
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"text/tabwriter"
"time"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
wfclient "github.com/argoproj/argo/workflow/client"
humanize "github.com/dustin/go-humanize"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"regexp"
"strings"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
cmdutil "github.com/argoproj/argo/util/cmd"
"github.com/argoproj/argo/workflow/common"
"github.com/ghodss/yaml"
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"fmt"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
workflowclient "github.com/argoproj/argo/workflow/client"
"github.com/argoproj/argo/workflow/common"
log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion cmd/argoexec/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/argoproj/argo"
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
"github.com/argoproj/argo/util/cmd"
"github.com/argoproj/argo/workflow/common"
Expand Down
2 changes: 1 addition & 1 deletion examples/arguments-artifacts.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: arguments-artifacts-
Expand Down
2 changes: 1 addition & 1 deletion examples/arguments-parameters.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: arguments-parameters-
Expand Down
2 changes: 1 addition & 1 deletion examples/artifact-passing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: artifact-passing-
Expand Down
2 changes: 1 addition & 1 deletion examples/ci-output-artifact.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: ci-example-
Expand Down
2 changes: 1 addition & 1 deletion examples/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: ci-example-
Expand Down
2 changes: 1 addition & 1 deletion examples/coinflip-recursive.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: coinflip-recursive-
Expand Down
2 changes: 1 addition & 1 deletion examples/coinflip.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: coinflip-
Expand Down
2 changes: 1 addition & 1 deletion examples/conditionals.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: conditional-
Expand Down
2 changes: 1 addition & 1 deletion examples/daemon-step.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: daemon-step-
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: hello-world-
Expand Down
2 changes: 1 addition & 1 deletion examples/influxdb-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: influxdb-ci-
Expand Down
2 changes: 1 addition & 1 deletion examples/input-artifact-git.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: input-artifact-git-
Expand Down
2 changes: 1 addition & 1 deletion examples/input-artifact-http.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Example of using a hard-wired artifact location
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: input-artifact-http-
Expand Down
2 changes: 1 addition & 1 deletion examples/input-artifact-s3.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: input-artifact-s3-
Expand Down
2 changes: 1 addition & 1 deletion examples/loops-maps.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: loops-maps-
Expand Down
2 changes: 1 addition & 1 deletion examples/loops-param-argument.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This example demonstrates a workflow accepting a list of items (as JSON string)
# as an input parameter, and using it for expanding a step into multiple steps.
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: loops-param-arg-
Expand Down
2 changes: 1 addition & 1 deletion examples/loops-param-result.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow demonstrates the use of a generator step which produces a list of items as a result.
# This list is subsequently used for expanding the next step into multiple parallel steps.
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: loops-param-result-
Expand Down
2 changes: 1 addition & 1 deletion examples/loops.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: loops-
Expand Down
2 changes: 1 addition & 1 deletion examples/nested-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: nested-workflow-
Expand Down
2 changes: 1 addition & 1 deletion examples/output-artifact.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: output-artifact-
Expand Down
2 changes: 1 addition & 1 deletion examples/output-parameter.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: output-parameters-
Expand Down
2 changes: 1 addition & 1 deletion examples/parameter-passing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: parameter-passing-
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts-bash.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: scripts-bash-
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts-javascript.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: scripts-javascript-
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts-python.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: scripts-python-
Expand Down
2 changes: 1 addition & 1 deletion examples/sidecar-dind.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: sidecar-dind-
Expand Down
2 changes: 1 addition & 1 deletion examples/sidecar.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: sidecar-
Expand Down
2 changes: 1 addition & 1 deletion examples/volumes-existing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# The second step will dump the contents of the access log. Submit
# this workflow multiple times to see the access log grow after each
# submission.
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: volumes-existing-
Expand Down
2 changes: 1 addition & 1 deletion examples/volumes-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# temporary, ephemeral volume used by the workflow, and delete it
# when the workflow completes. It uses the same volumeClaimTemplates
# syntax with statefulsets.
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: volumes-pvc-
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/expectedfailures/failed-artifact-load.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# e2e test to ensure the controller gives a proper error when the
# artifact loading fails. Submit and ensure workflow.status.message
# contains useful message
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: failed-artifact-load-
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/expectedfailures/failed-artifact-save.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# e2e test to ensure the controller gives a proper error when the
# artifact saving fails. Submit and ensure workflow.status.message
# contains useful message
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: failed-artifact-save-
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/expectedfailures/failed-step.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# e2e test to ensure the controller gives a proper error when the
# a container fails. Submit and ensure workflow.status.message
# contains useful message
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: failed-step-
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/expectedfailures/invalid-spec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# e2e test to ensure the controller will fail the workflow during validation.
# Submit this using kubectl to bypass argo cli YAML validation. Then ensure the
# proper error message is displayed
apiVersion: argoproj.io/v1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: invalid-spec-
Expand Down
2 changes: 1 addition & 1 deletion workflow/artifacts/artifacts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package executor

import (
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
)

// ArtifactDriver is the interface for loading and saving of artifacts
Expand Down
2 changes: 1 addition & 1 deletion workflow/artifacts/git/git.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package git

import (
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
"github.com/argoproj/argo/workflow/common"
)
Expand Down
2 changes: 1 addition & 1 deletion workflow/artifacts/http/http.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package http

import (
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
"github.com/argoproj/argo/workflow/common"
)
Expand Down
2 changes: 1 addition & 1 deletion workflow/artifacts/s3/s3.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package s3

import (
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
minio "github.com/minio/minio-go"
log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion workflow/client/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"
Expand Down
2 changes: 1 addition & 1 deletion workflow/client/cr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"time"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
log "github.com/sirupsen/logrus"
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
Expand Down
2 changes: 1 addition & 1 deletion workflow/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package common

import (
"github.com/argoproj/argo"
wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion workflow/common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
log "github.com/sirupsen/logrus"
"github.com/valyala/fasttemplate"
Expand Down
2 changes: 1 addition & 1 deletion workflow/common/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"strings"

wfv1 "github.com/argoproj/argo/api/workflow/v1"
wfv1 "github.com/argoproj/argo/api/workflow/v1alpha1"
"github.com/argoproj/argo/errors"
"github.com/valyala/fasttemplate"
)
Expand Down
Loading

0 comments on commit 424fba5

Please sign in to comment.