Documentation ¶
Overview ¶
Copyright 2019 The Operator-SDK Authors
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.
Index ¶
- Constants
- Variables
- func PrintGoMod() error
- func UpdateAnsibleWatchForResource(r *scaffold.Resource, absProjectPath string) error
- type BuildDockerfile
- type DeployOperator
- type DockerfileHybrid
- type Entrypoint
- type GoMod
- type Main
- type MoleculeClusterConverge
- type MoleculeClusterCreate
- type MoleculeClusterDestroy
- type MoleculeClusterMolecule
- type MoleculeClusterPrepare
- type MoleculeClusterVerify
- type MoleculeDefaultConverge
- type MoleculeDefaultMolecule
- type MoleculeDefaultPrepare
- type MoleculeDefaultVerify
- type MoleculeTemplatesOperator
- type MoleculeTestLocalConverge
- type MoleculeTestLocalMolecule
- type MoleculeTestLocalPrepare
- type MoleculeTestLocalVerify
- type Playbook
- type RequirementsYml
- type RolesDefaultsMain
- type RolesFiles
- type RolesHandlersMain
- type RolesMetaMain
- type RolesReadme
- type RolesTasksMain
- type RolesTemplates
- type RolesVarsMain
- type StaticInput
- type Travis
- type UserSetup
- type Watches
Constants ¶
const ( RolesDir = "roles" MoleculeDir = "molecule" MoleculeDefaultDir = MoleculeDir + filePathSep + "default" MoleculeTestLocalDir = MoleculeDir + filePathSep + "test-local" MoleculeClusterDir = MoleculeDir + filePathSep + "cluster" MoleculeTemplatesDir = MoleculeDir + filePathSep + "templates" )
const BuildDockerfileFile = "Dockerfile"
const DeployOperatorFile = "operator.yaml"
const GoModFile = "go.mod"
const MoleculeClusterConvergeFile = "converge.yml"
const MoleculeClusterCreateFile = "create.yml"
const MoleculeClusterDestroyFile = "destroy.yml"
const MoleculeClusterMoleculeFile = "molecule.yml"
const MoleculeClusterPrepareFile = "prepare.yml"
const MoleculeClusterVerifyFile = "verify.yml"
const MoleculeDefaultConvergeFile = "converge.yml"
const MoleculeDefaultMoleculeFile = "molecule.yml"
const MoleculeDefaultPrepareFile = "prepare.yml"
const MoleculeDefaultVerifyFile = "verify.yml"
const MoleculeTemplatesOperatorFile = "operator.yaml.j2"
const MoleculeTestLocalConvergeFile = "converge.yml"
const MoleculeTestLocalMoleculeFile = "molecule.yml"
const MoleculeTestLocalPrepareFile = "prepare.yml"
const MoleculeTestLocalVerifyFile = "verify.yml"
const PlaybookYamlFile = "playbook.yml"
const RolesDefaultsMainFile = "defaults" + filePathSep + "main.yml"
const RolesFilesDir = "files" + filePathSep + ".placeholder"
const RolesHandlersMainFile = "handlers" + filePathSep + "main.yml"
const RolesMetaMainFile = "meta" + filePathSep + "main.yml"
const RolesReadmeFile = "README.md"
const RolesTasksMainFile = "tasks" + filePathSep + "main.yml"
const RolesTemplatesDir = "templates" + filePathSep + ".placeholder"
const RolesVarsMainFile = "vars" + filePathSep + "main.yml"
const TravisFile = ".travis.yml"
const WatchesFile = "watches.yaml"
Variables ¶
var AnsibleDelims = [2]string{"[[", "]]"}
AnsibleDelims is a slice of two strings representing the left and right delimiters for ansible templates. Arrays can't be constants but this should be a constant.
Functions ¶
func PrintGoMod ¶
func PrintGoMod() error
Types ¶
type BuildDockerfile ¶
type DeployOperator ¶
type DockerfileHybrid ¶
type DockerfileHybrid struct { input.Input // Playbook - if true, include a COPY statement for playbook.yml Playbook bool // Roles - if true, include a COPY statement for the roles directory Roles bool // Watches - if true, include a COPY statement for watches.yaml Watches bool // Requirements - if true, include a COPY and RUN to install Ansible requirements Requirements bool }
DockerfileHybrid - Dockerfile for a hybrid operator
type MoleculeClusterConverge ¶ added in v0.17.0
type MoleculeClusterConverge struct {
StaticInput
}
type MoleculeClusterCreate ¶ added in v0.16.0
type MoleculeClusterCreate struct {
StaticInput
}
type MoleculeClusterDestroy ¶ added in v0.16.0
type MoleculeClusterMolecule ¶ added in v0.16.0
type MoleculeClusterPrepare ¶ added in v0.16.0
type MoleculeClusterVerify ¶ added in v0.16.0
type MoleculeDefaultConverge ¶ added in v0.17.0
type MoleculeDefaultMolecule ¶
type MoleculeDefaultMolecule struct {
StaticInput
}
type MoleculeDefaultPrepare ¶
type MoleculeDefaultPrepare struct {
StaticInput
}
type MoleculeDefaultVerify ¶ added in v0.16.0
type MoleculeDefaultVerify struct {
StaticInput
}
type MoleculeTemplatesOperator ¶ added in v0.16.0
type MoleculeTestLocalConverge ¶ added in v0.17.0
type MoleculeTestLocalMolecule ¶
type MoleculeTestLocalMolecule struct {
StaticInput
}
type MoleculeTestLocalPrepare ¶
type MoleculeTestLocalPrepare struct {
StaticInput
}
type MoleculeTestLocalVerify ¶ added in v0.16.0
type MoleculeTestLocalVerify struct {
StaticInput
}
type RequirementsYml ¶ added in v0.16.0
type RequirementsYml struct {
StaticInput
}
RequirementsYml - A requirements file for Ansible collection dependencies
type RolesDefaultsMain ¶
type RolesFiles ¶
type RolesFiles struct { StaticInput Resource scaffold.Resource }
type RolesHandlersMain ¶
type RolesMetaMain ¶
type RolesMetaMain struct { StaticInput Resource scaffold.Resource }
type RolesReadme ¶
type RolesReadme struct { StaticInput Resource scaffold.Resource }
type RolesTasksMain ¶
type RolesTemplates ¶
type RolesTemplates struct { StaticInput Resource scaffold.Resource }
type RolesVarsMain ¶
type StaticInput ¶
StaticInput is the input for scaffolding a static file with no parameters
func (*StaticInput) CustomRender ¶
func (s *StaticInput) CustomRender() ([]byte, error)
CustomRender return the template body unmodified
func (StaticInput) SetFS ¶
func (s StaticInput) SetFS(_ afero.Fs)
type Travis ¶
type Travis struct {
StaticInput
}
Source Files ¶
- build_dockerfile.go
- constants.go
- deploy_operator.go
- dockerfilehybrid.go
- entrypoint.go
- go_mod.go
- input.go
- main.go
- molecule_cluster_converge.go
- molecule_cluster_create.go
- molecule_cluster_destroy.go
- molecule_cluster_molecule.go
- molecule_cluster_prepare.go
- molecule_cluster_verify.go
- molecule_default_converge.go
- molecule_default_molecule.go
- molecule_default_prepare.go
- molecule_default_verify.go
- molecule_templates_operator.go
- molecule_test_local_converge.go
- molecule_test_local_molecule.go
- molecule_test_local_prepare.go
- molecule_test_local_verify.go
- playbook.go
- requirements.go
- roles_defaults_main.go
- roles_files.go
- roles_handlers_main.go
- roles_meta_main.go
- roles_readme.go
- roles_tasks_main.go
- roles_templates.go
- roles_vars_main.go
- travis.go
- usersetup.go
- watches.go