Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/install/installer/cmd/config_files.go
2498 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
/// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package cmd
6
7
import (
8
"github.com/spf13/cobra"
9
)
10
11
var configFilesOpts struct {
12
MountPath string
13
}
14
15
// configFilesCmd represents the validate command
16
var configFilesCmd = &cobra.Command{
17
Use: "files",
18
Short: "Perform configuration tasks against the cluster's file system",
19
Long: `Perform configuration tasks against the cluster's file system
20
21
These can be run either directly on the cluster nodes or
22
by mounting volumes to a pod.`,
23
}
24
25
func init() {
26
configCmd.AddCommand(configFilesCmd)
27
28
configFilesCmd.PersistentFlags().StringVar(&configFilesOpts.MountPath, "mount-path", getEnvvar("MOUNT_PATH", "/"), "prepends a mount path to the file locations - for use in a pod")
29
}
30
31