Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderOlmCatalog ¶ added in v0.0.6
RenderOlmCatalog generates catalog manifests "deploy/olm-catalog/*" The current working directory must be the project repository root
func RenderOperatorYaml ¶ added in v0.0.2
RenderOperatorYaml generates "deploy/operator.yaml"
Types ¶
type Config ¶
type Config struct { // APIVersion is the kubernetes apiVersion that has the format of $GROUP_NAME/$VERSION. APIVersion string `yaml:"apiVersion"` // Kind is the kubernetes resource kind. Kind string `yaml:"kind"` // ProjectName is name of the new operator application // and is also the name of the base directory. ProjectName string `yaml:"projectName"` }
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
NewGenerator creates a new scaffold Generator.
func (*Generator) Render ¶
Render generates the default project structure:
├── <projectName> │ ├── cmd │ │ └── <projectName> │ ├── config │ ├── deploy │ ├── pkg │ │ ├── apis │ │ │ └── <api-dir-name> // computed from apiDirName(apiVersion). │ │ │ └── <version> // computed from version(apiVersion). │ │ └── stub │ ├── tmp │ | ├── build │ | └── codegen │ └── version
Click to show internal directories.
Click to hide internal directories.