Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
*: unify all operators' versioning (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchaodeng committed Jan 10, 2018
1 parent 70e6abf commit 6bd111e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 44 deletions.
2 changes: 1 addition & 1 deletion cmd/backup-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
controller "github.com/coreos/etcd-operator/pkg/controller/backup-operator"
"github.com/coreos/etcd-operator/pkg/util/constants"
"github.com/coreos/etcd-operator/pkg/util/k8sutil"
version "github.com/coreos/etcd-operator/version/backup-operator"
version "github.com/coreos/etcd-operator/version"

"github.com/sirupsen/logrus"
"k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion cmd/restore-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
controller "github.com/coreos/etcd-operator/pkg/controller/restore-operator"
"github.com/coreos/etcd-operator/pkg/util/constants"
"github.com/coreos/etcd-operator/pkg/util/k8sutil"
version "github.com/coreos/etcd-operator/version/restore-operator"
version "github.com/coreos/etcd-operator/version"

"github.com/sirupsen/logrus"
"k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion hack/build/backup-operator/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`

gitHash="github.com/coreos/etcd-operator/version/backup-operator.GitSHA=${GIT_SHA}"
gitHash="github.com/coreos/etcd-operator/version.GitSHA=${GIT_SHA}"

go_ldflags="-X ${gitHash}"

Expand Down
2 changes: 1 addition & 1 deletion hack/build/restore-operator/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`

gitHash="github.com/coreos/etcd-operator/version/restore-operator.GitSHA=${GIT_SHA}"
gitHash="github.com/coreos/etcd-operator/version.GitSHA=${GIT_SHA}"

go_ldflags="-X ${gitHash}"

Expand Down
20 changes: 0 additions & 20 deletions version/backup-operator/version.go

This file was deleted.

20 changes: 0 additions & 20 deletions version/restore-operator/version.go

This file was deleted.

0 comments on commit 6bd111e

Please sign in to comment.