Documentation ¶
Index ¶
- Constants
- func HashSha(password string) string
- type AddonConfig
- type AdminSecretsConfig
- type AdminSecretsFlags
- type AdminSecretsService
- type BranchBuild
- type Build
- type ChartMuseum
- type ChartMuseumEnv
- type ChartMuseumSecret
- type ChatConfig
- type ExposeController
- type ExposeControllerConfig
- type Grafana
- type GrafanaSecret
- type HelmValuesConfig
- type HelmValuesConfigService
- type Image
- type IngressBasicAuth
- type IssueTrackerConfig
- type Jenkins
- type JenkinsAdminSecret
- type JenkinsGiteaServersValuesConfig
- type JenkinsGithubServersValuesConfig
- type JenkinsPipelineSecretsValuesConfig
- type JenkinsServersGlobalConfig
- type JenkinsServersValuesConfig
- type JenkinsValuesConfig
- type Nexus
- type PipelineSecrets
- type Preview
- type PreviewEnvironmentConfig
- type PreviewValuesConfig
- type ProjectConfig
- type ProwValuesConfig
- type WikiConfig
Constants ¶
View Source
const (
// ProjectConfigFileName is the name of the project configuration file
ProjectConfigFileName = "jenkins-x.yml"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddonConfig ¶
type AdminSecretsConfig ¶
type AdminSecretsConfig struct { IngressBasicAuth string `yaml:"JXBasicAuth,omitempty"` ChartMuseum *ChartMuseum `yaml:"chartmuseum,omitempty"` Grafana *Grafana `yaml:"grafana,omitempty"` Jenkins *Jenkins `yaml:"jenkins,omitempty"` Nexus *Nexus `yaml:"nexus,omitempty"` PipelineSecrets *PipelineSecrets `yaml:"PipelineSecrets,omitempty"` }
type AdminSecretsFlags ¶
type AdminSecretsFlags struct {
DefaultAdminPassword string
}
type AdminSecretsService ¶
type AdminSecretsService struct { FileName string Secrets AdminSecretsConfig Flags AdminSecretsFlags }
func (*AdminSecretsService) AddAdminSecretsValues ¶
func (s *AdminSecretsService) AddAdminSecretsValues(cmd *cobra.Command)
func (*AdminSecretsService) NewAdminSecretsConfig ¶
func (s *AdminSecretsService) NewAdminSecretsConfig() error
func (*AdminSecretsService) NewAdminSecretsConfigFromSecret ¶
func (s *AdminSecretsService) NewAdminSecretsConfigFromSecret(decryptedSecrets string) error
type BranchBuild ¶
type BranchBuild struct { Build Build `yaml:"build,omitempty"` // which kind of pipeline - like release, pullRequest, feature Kind string `yaml:"kind,omitempty"` // display name Name string `yaml:"name,omitempty"` // List of sources to populate environment variables in all the steps if there is not already // an environment variable defined on that step EnvFrom []corev1.EnvFromSource `yaml:"envFrom,omitempty"` // List of environment variables to add to each step if there is not already a environemnt variable of that name Env []corev1.EnvVar `yaml:"env,omitempty"` ExcludePodTemplateEnv bool `yaml:"excludePodTemplateEnv,omitempty"` ExcludePodTemplateVolumes bool `yaml:"excludePodTemplateVolumes,omitempty"` }
type Build ¶
type Build struct { // Steps are the steps of the build; each step is run sequentially with the // source mounted into /workspace. Steps []corev1.Container `yaml:"steps,omitempty"` // Volumes is a collection of volumes that are available to mount into the // steps of the build. Volumes []corev1.Volume `yaml:"volumes,omitempty"` // The name of the service account as which to run this build. ServiceAccountName string `yaml:"serviceAccountName,omitempty"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional NodeSelector map[string]string `yaml:"nodeSelector,omitempty"` }
type ChartMuseum ¶
type ChartMuseum struct {
ChartMuseumEnv ChartMuseumEnv `yaml:"env"`
}
type ChartMuseumEnv ¶
type ChartMuseumEnv struct {
ChartMuseumSecret ChartMuseumSecret `yaml:"secret"`
}
type ChartMuseumSecret ¶
type ChatConfig ¶
type ExposeController ¶
type ExposeController struct { Config ExposeControllerConfig `yaml:"config,omitempty"` Annotations map[string]string `yaml:"Annotations,omitempty"` }
type ExposeControllerConfig ¶
type Grafana ¶
type Grafana struct {
GrafanaSecret GrafanaSecret `yaml:"server"`
}
type GrafanaSecret ¶
type HelmValuesConfig ¶
type HelmValuesConfig struct { ExposeController *ExposeController `yaml:"expose,omitempty"` Jenkins JenkinsValuesConfig `yaml:"jenkins,omitempty"` Prow ProwValuesConfig `yaml:"prow,omitempty"` PipelineSecrets JenkinsPipelineSecretsValuesConfig `yaml:"PipelineSecrets,omitempty"` }
func (*HelmValuesConfig) AddExposeControllerValues ¶
func (c *HelmValuesConfig) AddExposeControllerValues(cmd *cobra.Command, ignoreDomain bool)
func (HelmValuesConfig) String ¶
func (c HelmValuesConfig) String() (string, error)
type HelmValuesConfigService ¶
type HelmValuesConfigService struct { FileName string Config HelmValuesConfig }
type IngressBasicAuth ¶ added in v1.0.96
type IngressBasicAuth struct {
JXBasicAuth string `yaml:"JXBasicAuth"`
}
type IssueTrackerConfig ¶
type Jenkins ¶
type Jenkins struct {
JenkinsSecret JenkinsAdminSecret `yaml:"Master"`
}
type JenkinsAdminSecret ¶
type JenkinsAdminSecret struct {
Password string `yaml:"AdminPassword"`
}
type JenkinsPipelineSecretsValuesConfig ¶
type JenkinsPipelineSecretsValuesConfig struct {
DockerConfig string `yaml:"DockerConfig,flow,omitempty"`
}
type JenkinsServersValuesConfig ¶
type JenkinsServersValuesConfig struct { Gitea []JenkinsGiteaServersValuesConfig `yaml:"Gitea,omitempty"` GHE []JenkinsGithubServersValuesConfig `yaml:"GHE,omitempty"` Global JenkinsServersGlobalConfig `yaml:"Global,omitempty"` }
func (*JenkinsServersValuesConfig) GetOrCreateFirstGitea ¶
func (c *JenkinsServersValuesConfig) GetOrCreateFirstGitea() *JenkinsGiteaServersValuesConfig
GetOrCreateFirstGitea returns the first gitea server creating one if required
type JenkinsValuesConfig ¶
type JenkinsValuesConfig struct { Servers JenkinsServersValuesConfig `yaml:"Servers,omitempty"` Enabled *bool `yaml:"enabled,omitempty"` }
type Nexus ¶
type Nexus struct {
DefaultAdminPassword string `yaml:"defaultAdminPassword,omitempty"`
}
type PipelineSecrets ¶
type PipelineSecrets struct {
MavenSettingsXML string `yaml:"MavenSettingsXML,omitempty"`
}
type PreviewValuesConfig ¶
type PreviewValuesConfig struct { ExposeController *ExposeController `yaml:"expose,omitempty"` Preview *Preview `yaml:"preview,omitempty"` }
func (PreviewValuesConfig) String ¶
func (c PreviewValuesConfig) String() (string, error)
type ProjectConfig ¶
type ProjectConfig struct { // List of global environment variables to add to each branch build and each step Env []corev1.EnvVar `yaml:"env,omitempty"` Builds []*BranchBuild `yaml:"builds,omitempty"` PreviewEnvironments *PreviewEnvironmentConfig `yaml:"previewEnvironments,omitempty"` IssueTracker *IssueTrackerConfig `yaml:"issueTracker,omitempty"` Chat *ChatConfig `yaml:"chat,omitempty"` Wiki *WikiConfig `yaml:"wiki,omitempty"` Addons []*AddonConfig `yaml:"addons,omitempty"` BuildPack string `yaml:"buildPack,omitempty"` BuildPackGitURL string `yaml:"buildPackGitURL,omitempty"` BuildPackGitURef string `yaml:"buildPackGitRef,omitempty"` Workflow string `yaml:"workflow,omitempty"` }
func LoadProjectConfig ¶
func LoadProjectConfig(projectDir string) (*ProjectConfig, string, error)
LoadProjectConfig loads the project configuration if there is a project configuration file
func (*ProjectConfig) IsEmpty ¶
func (c *ProjectConfig) IsEmpty() bool
IsEmpty returns true if this configuration is empty
func (*ProjectConfig) SaveConfig ¶
func (c *ProjectConfig) SaveConfig(fileName string) error
SaveConfig saves the configuration file to the given project directory
type ProwValuesConfig ¶
type WikiConfig ¶
Click to show internal directories.
Click to hide internal directories.