Skip to content

Commit

Permalink
Refactor codebase to add e2e tests
Browse files Browse the repository at this point in the history
Bump k8s version to v0.18.8

Regenerate clients to reflect k8s version bump

Modify code with respect to k8s and client changes

Add working e2e test base with a dummy test

Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>
  • Loading branch information
nikhil-thomas authored and tekton-robot committed Nov 10, 2020
1 parent 623439b commit 88ee269
Show file tree
Hide file tree
Showing 26 changed files with 271 additions and 195 deletions.
1 change: 1 addition & 0 deletions config/kubernetes/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
metadata:
labels:
name: tekton-operator
app: tekton-operator
spec:
serviceAccountName: tekton-operator
containers:
Expand Down
1 change: 1 addition & 0 deletions config/openshift/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
metadata:
labels:
name: tekton-operator
app: tekton-operator
spec:
serviceAccountName: tekton-operator
containers:
Expand Down
1 change: 1 addition & 0 deletions config/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: tekton-operator
namespace: tekton-operator
subjects:
- kind: ServiceAccount
name: tekton-operator
Expand Down
1 change: 1 addition & 0 deletions hack/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package tools
// This package imports things required by this repository, to force `go mod` to see them as dependencies
import (
_ "github.com/tektoncd/plumbing"
_ "github.com/tektoncd/plumbing/scripts"
_ "k8s.io/code-generator"
_ "knative.dev/pkg/hack"
)
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ -z "${GOPATH:-}" ]; then
export GOPATH=$(go env GOPATH)
fi

source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/library.sh
source $(git rev-parse --show-toplevel)/vendor/github.com/tektoncd/plumbing/scripts/library.sh

CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${REPO_ROOT_DIR}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}

Expand Down
2 changes: 1 addition & 1 deletion hack/update-k8s-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o nounset
set -o pipefail

export GO111MODULE=on
export K8S_VERSION="${1:-v0.17.6}"
export K8S_VERSION="${1:-v0.18.8}"

K8S_DEPS=(
"k8s.io/api"
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/clientset.go

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

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

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

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

Loading

0 comments on commit 88ee269

Please sign in to comment.