Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AddToManagerFuncs []func(manager.Manager) error
AddToManagerFuncs is a list of functions to add all Controllers to the Manager
Functions ¶
func Add ¶
Add creates a new Stack Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func AddToManager ¶
AddToManager adds all Controllers to the Manager
Types ¶
type ActivationRenderer ¶
type ActivationRenderer interface {
//Render processes the yaml source content before it is unmarshaled into an object model
Render(b []byte, context map[string]interface{}) ([]byte, error)
}
An ActivationRenderer customizes the source content from the repository before it is applied
type Index ¶
type Index struct {
// API Version.
APIVersion string `yaml:"apiVersion,omitempty"`
// Holds version 2 stack's data.
Stacks []Stack `yaml:"stacks,omitempty"`
// Holds version 2 stack's data.
Triggers []Trigger `yaml:"triggers,omitempty"`
}
Index holds data pertaining to an index referencing a set of stacks.
func ResolveIndex ¶
func ResolveIndex(c client.Client, repoConf kabanerov1alpha2.RepositoryConfig, namespace string, pipelines []Pipelines, triggers []Trigger, imagePrefix string, reqLogger logr.Logger) (*Index, error)
ResolveIndex returns a structure representation of the yaml file represented by the index.
type Maintainers ¶
type Maintainers struct {
Email string `yaml:"email,omitempty"`
GithubId string `yaml:"github-id,omitempty"`
Name string `yaml:"name,omitempty"`
}
Maintainers holds stack maintainer information.
type PipelineFiles ¶
type PipelineFiles struct {
File string `yaml:"file,omitempty"`
Sha256 string `yaml:"sha256,omitempty"`
}
PipelineFiles holds the stack's associated pipeline files.
type PipelineManifest ¶
type PipelineManifest struct {
Contents []PipelineFiles `yaml:"contents,omitempty"`
}
PipelineManifest holds the stack's associated pipelime manifests.
type Pipelines ¶
type Pipelines struct {
Id string `yaml:"id,omitempty"`
Sha256 string `yaml:"sha256,omitempty"`
Url string `yaml:"url,omitempty"`
GitRelease kabanerov1alpha2.GitReleaseSpec `yaml:"gitRelease,omitempty"`
SkipCertVerification bool `yaml:"skipCertVerification,omitempty"`
}
Pipelines holds a stack's associated pipeline data.
type ReconcileStack ¶
type ReconcileStack struct {
// contains filtered or unexported fields
}
ReconcileStack reconciles a Stack object
func (*ReconcileStack) Reconcile ¶
Reconcile reads that state of the cluster for a Stack object and makes changes based on the state read and what is in the Stack.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ReconcileStack) ReconcileStack ¶
func (r *ReconcileStack) ReconcileStack(c *kabanerov1alpha2.Stack) (reconcile.Result, error)
ReconcileStack activates or deactivates the input stack.
type Stack ¶
type Stack struct {
DefaultDashboard string `yaml:"default-dashboard,omitempty"`
DefaultImage string `yaml:"default-image,omitempty"`
DefaultPipeline string `yaml:"default-pipeline,omitempty"`
DefaultTemplate string `yaml:"default-template,omitempty"`
Description string `yaml:"description,omitempty"`
Id string `yaml:"id,omitempty"`
Image string `yaml:"image,omitempty"`
Images []Images `yaml:"images,omitempty"`
License string `yaml:"license,omitempty"`
Maintainers []Maintainers `yaml:"maintainers,omitempty"`
Name string `yaml:"name,omitempty"`
Pipelines []Pipelines `yaml:"pipelines,omitempty"`
Templates []Templates `yaml:"templates,omitempty"`
Version string `yaml:"version,omitempty"`
}
Stack holds stack specific data.