Documentation
¶
Index ¶
Constants ¶
const DefaultGopkgHeader = "# STANZAS BELOW ARE GENERATED AND MAY BE WRITTEN - DO NOT MODIFY BELOW THIS LINE."
DefaultGopkgHeader is the default header used to separate user managed lines and controller-manager managed lines
const DefaultGopkgUserContent = `` /* 932-byte string literal not displayed */
DefaultGopkgUserContent is the default user managed lines to provide.
Variables ¶
var AuthProxyServiceTemplate = `` /* 449-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type AuthProxyRole ¶ added in v1.0.8
AuthProxyRole scaffolds the config/rbac/auth_proxy_role.yaml file
type AuthProxyRoleBinding ¶ added in v1.0.8
AuthProxyRoleBinding scaffolds the config/rbac/auth_proxy_role_binding_rbac.yaml file
type AuthProxyService ¶ added in v1.0.8
AuthProxyService scaffolds the config/rbac/auth_proxy_role.yaml file
type Boilerplate ¶
type Boilerplate struct {
input.Input
// License is the License type to write
License string
// Owner is the copyright owner - e.g. "The Kubernetes Authors"
Owner string
// Year is the copyright year
Year string
}
Boilerplate scaffolds a boilerplate header file.
type GopkgToml ¶
type GopkgToml struct {
input.Input
// ManagedHeader is the header to write after the user owned pieces and before the managed parts of the Gopkg.toml
ManagedHeader string
// DefaultGopkgUserContent is the default content to use for the user owned pieces
DefaultUserContent string
// UserContent is the content to use for the user owned pieces
UserContent string
// Stanzas are additional managed stanzas to add after the ManagedHeader
Stanzas []Stanza
}
GopkgToml writes a templatefile for Gopkg.toml
type KustomizeAuthProxyPatch ¶ added in v1.0.6
KustomizeAuthProxyPatch scaffolds the patch file for enabling prometheus metrics for manager Pod.
type KustomizeImagePatch ¶
type KustomizeImagePatch struct {
input.Input
// ImageURL to use for controller image in manager's manifest.
ImageURL string
}
KustomizeImagePatch scaffolds the patch file for customizing image URL manifest file for manager resource.
type KustomizePrometheusMetricsPatch ¶ added in v1.0.6
KustomizePrometheusMetricsPatch scaffolds the patch file for enabling prometheus metrics for manager Pod.
type Makefile ¶
type Makefile struct {
input.Input
// Image is controller manager image name
Image string
// path for controller-tools pkg
ControllerToolsPath string
}
Makefile scaffolds the Makefile
type Project ¶
type Project struct {
// Path is the output file location - defaults to PROJECT
Path string
input.ProjectFile
}
Project scaffolds the PROJECT file with project metadata
type Stanza ¶
type Stanza struct {
// Type will be between the'[[]]' e.g. override
Type string
// Name will appear after 'name=' and does not include quotes e.g. k8s.io/client-go
Name string
// Version will appear after 'version=' and does not include quotes
Version string
// Revision will appear after 'revision=' and does not include quotes
Revision string
}
Stanza is a single Gopkg.toml entry