Skip to content

Commit

Permalink
remove unused githubToken var
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Apr 14, 2022
1 parent c68fa74 commit a794566
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM golang:1.16.3-stretch AS builder
LABEL AUTHOR Seungkyu Ahn ([email protected])

ARG PRV_GITHUB_TOKEN
RUN go env -w GOPRIVATE=github.com/openinfradev/tks-cluster-lcm
RUN git config --global url."https://x-access-token:${PRV_GITHUB_TOKEN}@github.com".insteadOf "https://github.com"

RUN mkdir -p /build
WORKDIR /build

Expand Down
7 changes: 0 additions & 7 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var (
argoPort int
revision string
githubAccount string
githubToken string
)

func init() {
Expand All @@ -55,8 +54,6 @@ func init() {
flag.IntVar(&argoPort, "argo-port", 2746, "server port for argo-workflow-server")
flag.StringVar(&revision, "revision", "main", "revision for workflow parameter")
flag.StringVar(&githubAccount, "git-account", "tks-management", "git repository name for workflow parameter")

githubToken = os.Getenv("TOKEN")
}

func main() {
Expand All @@ -77,10 +74,6 @@ func main() {
log.Info("githubAccount : ", githubAccount)
log.Info("****************** ")

if githubToken = os.Getenv("TOKEN"); githubToken == "" {
log.Fatal("Specify githubToken to environment variable (TOKEN).")
}

// initialize clients
var err error
argowfClient, err = argowf.New(argoAddress, argoPort)
Expand Down

0 comments on commit a794566

Please sign in to comment.