Skip to content

Commit

Permalink
Adding the Jaeger client generated code through client-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
rareddy committed Feb 21, 2020
1 parent de6fff1 commit 778696c
Show file tree
Hide file tree
Showing 14 changed files with 280 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .ci/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ if [ $? != 0 ]; then
fi
fi

CLIENTGEN=client-gen
command -v ${CLIENTGEN} > /dev/null
if [ $? != 0 ]; then
if [ -n ${GOPATH} ]; then
CLIENTGEN="${GOPATH}/bin/client-gen"
fi
fi

# generate the CRD(s)
operator-sdk generate crds
RT=$?
Expand Down Expand Up @@ -38,3 +46,17 @@ if [ ${RT} != 0 ]; then
echo "Failed to generate the Kubernetes stubs."
exit ${RT}
fi

# generate the clients
${CLIENTGEN} \
--input "jaegertracing/v1" \
--input-base github.com/jaegertracing/jaeger-operator/pkg/apis \
--go-header-file /dev/null \
--output-package client \
--clientset-name versioned \
--output-base pkg
RT=$?
if [ ${RT} != 0 ]; then
echo "Failed to generate the Jaeger Tracing clients."
exit ${RT}
fi
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ install-tools:
golang.org/x/lint/golint \
github.com/securego/gosec/cmd/gosec \
golang.org/x/tools/cmd/goimports \
k8s.io/code-generator/cmd/client-gen \
k8s.io/kube-openapi/cmd/openapi-gen

.PHONY: install
Expand Down
81 changes: 81 additions & 0 deletions pkg/client/versioned/clientset.go

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

4 changes: 4 additions & 0 deletions pkg/client/versioned/doc.go

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

67 changes: 67 additions & 0 deletions pkg/client/versioned/fake/clientset_generated.go

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

4 changes: 4 additions & 0 deletions pkg/client/versioned/fake/doc.go

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

40 changes: 40 additions & 0 deletions pkg/client/versioned/fake/register.go

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

4 changes: 4 additions & 0 deletions pkg/client/versioned/scheme/doc.go

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

40 changes: 40 additions & 0 deletions pkg/client/versioned/scheme/register.go

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

4 changes: 4 additions & 0 deletions pkg/client/versioned/typed/jaegertracing/v1/doc.go

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

4 changes: 4 additions & 0 deletions pkg/client/versioned/typed/jaegertracing/v1/fake/doc.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.

0 comments on commit 778696c

Please sign in to comment.