Merge pull request #3870 from Shopify/improve-plugin

Improve kubectl plugin
This commit is contained in:
Kubernetes Prow Robot 2019-03-14 07:36:30 -07:00 committed by GitHub
commit 2dbc1ea3b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1117 additions and 464 deletions

View file

@ -91,7 +91,7 @@ func NewPostStatusRequest(path, contentType string, data interface{}) (int, []by
// GetServerBlock takes an nginx.conf file and a host and tries to find the server block for that host
func GetServerBlock(conf string, host string) (string, error) {
startMsg := fmt.Sprintf("## start server %v", host)
startMsg := fmt.Sprintf("## start server %v\n", host)
endMsg := fmt.Sprintf("## end server %v", host)
blockStart := strings.Index(conf, startMsg)