github.com/GoogleContainerTools/skaffold/v2@v2.13.2/pkg/webhook/constants/constants.go (about)

     1  /*
     2  Copyright 2019 The Skaffold Authors
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package constants
    18  
    19  import "fmt"
    20  
    21  // DocsVersion defines the version of the docs currently ""(for v1) and "-v2"(for v2)
    22  // This variable is injected at build time based on what version of the controller is being built
    23  var DocsVersion string
    24  
    25  // DocsLabel kicks off the controller when added to a PR
    26  var DocsLabel = fmt.Sprintf("docs-modifications%s", DocsVersion)
    27  
    28  const (
    29  	// GithubAccessToken is the env variable auth for container-tools-bot is stored in
    30  	GithubAccessToken = "GITHUB_ACCESS_TOKEN"
    31  	// GithubOwner is the owner of the repository
    32  	GithubOwner = "GoogleContainerTools"
    33  	// GithubRepo is the name of the repo
    34  	GithubRepo = "skaffold"
    35  	// GithubEventHeader is the header key used to describe a github event
    36  	GithubEventHeader = "X-GitHub-Event"
    37  	// PullRequestEvent is the Github header value for pull requests
    38  	PullRequestEvent = "pull_request"
    39  	// OpenState is the state of an open PR
    40  	OpenState = "open"
    41  
    42  	// when a PR is closed
    43  	ClosedAction = "closed"
    44  	// when a PR is labeled
    45  	LabeledAction = "labeled"
    46  
    47  	// Namespace is the namespace deployments and services will be created in
    48  	Namespace = "default"
    49  
    50  	// HugoPort is the port that hugo defaults to
    51  	HugoPort = 1313
    52  
    53  	// DeploymentImage is the image the controller deploys, must contain hugo and git
    54  	DeploymentImage = "gcr.io/k8s-skaffold/docs-controller:latest"
    55  
    56  	// LogsGCSBucket is the GCS bucket logs are uploaded to
    57  	LogsGCSBucket = "webhook-logs"
    58  )