From b0afa979ff47e569c645bd480ff2f1f8c27342a1 Mon Sep 17 00:00:00 2001 From: Steve Kriss Date: Fri, 17 May 2019 12:49:51 -0600 Subject: [PATCH] remove issue-template-gen/ from v0.10 and master docs Signed-off-by: Steve Kriss --- site/docs/master/issue-template-gen/main.go | 45 -------------------- site/docs/v0.10.0/issue-template-gen/main.go | 45 -------------------- 2 files changed, 90 deletions(-) delete mode 100644 site/docs/master/issue-template-gen/main.go delete mode 100644 site/docs/v0.10.0/issue-template-gen/main.go diff --git a/site/docs/master/issue-template-gen/main.go b/site/docs/master/issue-template-gen/main.go deleted file mode 100644 index 5adc1b647..000000000 --- a/site/docs/master/issue-template-gen/main.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2018 the Velero contributors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// This code renders the IssueTemplate string in pkg/cmd/cli/bug/bug.go to -// .github/ISSUE_TEMPLATE/bug_report.md via the hack/update-generated-issue-template.sh script. - -package main - -import ( - "log" - "os" - "text/template" - - "github.com/heptio/velero/pkg/cmd/cli/bug" -) - -func main() { - outTemplateFilename := os.Args[1] - outFile, err := os.OpenFile(outTemplateFilename, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644) - if err != nil { - log.Fatal(err) - } - defer outFile.Close() - tmpl, err := template.New("ghissue").Parse(bug.IssueTemplate) - if err != nil { - log.Fatal(err) - } - err = tmpl.Execute(outFile, bug.VeleroBugInfo{}) - if err != nil { - log.Fatal(err) - } -} diff --git a/site/docs/v0.10.0/issue-template-gen/main.go b/site/docs/v0.10.0/issue-template-gen/main.go deleted file mode 100644 index 19ef0ab85..000000000 --- a/site/docs/v0.10.0/issue-template-gen/main.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2018 the Heptio Ark contributors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// This code renders the IssueTemplate string in pkg/cmd/cli/bug/bug.go to -// .github/ISSUE_TEMPLATE/bug_report.md via the hack/update-generated-issue-template.sh script. - -package main - -import ( - "log" - "os" - "text/template" - - "github.com/heptio/ark/pkg/cmd/cli/bug" -) - -func main() { - outTemplateFilename := os.Args[1] - outFile, err := os.OpenFile(outTemplateFilename, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644) - if err != nil { - log.Fatal(err) - } - defer outFile.Close() - tmpl, err := template.New("ghissue").Parse(bug.IssueTemplate) - if err != nil { - log.Fatal(err) - } - err = tmpl.Execute(outFile, bug.ArkBugInfo{}) - if err != nil { - log.Fatal(err) - } -}