Documentation ¶
Index ¶
- func AssetAsBytes(path string) ([]byte, error)
- func GetConditionName(ctx context.Context, clientTools *clienttools.ClientTools, namespace string) (string, error)
- func Read(filePath string) (string, error)
- func ReadDir(directory string) ([]string, error)
- func SetUpgradeCondition(ctx context.Context, clientTools *clienttools.ClientTools, namespace string, ...) error
- func SubscribeOperator(ctx context.Context, clientTools *clienttools.ClientTools, ...) error
- type BundleGenerator
- type CSVOut
- type ConditionState
- type CustomResourceDefinition
- type CustomResourceDefinitions
- type Icon
- type Image
- type Install
- type InstallMode
- type InstallSpec
- type InstallSpecDeployment
- type InstallSpecPermission
- type Label
- type Labels
- type Link
- type Maintainer
- type Metadata
- type MetadataAnnotations
- type Provider
- type Selector
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetAsBytes ¶
func GetConditionName ¶
func GetConditionName(ctx context.Context, clientTools *clienttools.ClientTools, namespace string) (string, error)
func Read ¶
* Can read a file or directory of files, the latter being * done by delegating to readDir if file is a directory.
func SetUpgradeCondition ¶
func SetUpgradeCondition(ctx context.Context, clientTools *clienttools.ClientTools, namespace string, state ConditionState) error
Creates the condition if it does not already exist
func SubscribeOperator ¶
func SubscribeOperator(ctx context.Context, clientTools *clienttools.ClientTools, configuration *conf.Config, olmSpec *conf.OlmSpec) error
Finds any existing subscriptions for the operator package. If there are none then it attempts to create both a subscription and operatorgroup in the namespace so that the operator can be initialised.
Returns only those artifacts that are owned by this operator, ie. those that have been given ownership by syndesis, allowing these to be tracked by the operator and tidied up. If they were not created by this operator then they remain independent and will not be tidied up if the CR is removed.
Types ¶
type BundleGenerator ¶
type BundleGenerator interface {
Generate() (err error)
}
func Build ¶
func Build(config *configuration.Config, path string, image string, tag string) (m BundleGenerator)
Build the bundle generator
type ConditionState ¶
type ConditionState struct { // The value of the condition, either metav1.ConditionTrue or metav1.ConditionFalse Status metav1.ConditionStatus // The single word reason for the condition setting // Must start with a letter // Rest of the world can include letters, numbers, commas and colons // Cannot end with comma or colon Reason string // The description of the reason for the condition change. Message string }
type CustomResourceDefinitions ¶
type CustomResourceDefinitions struct {
Owned []CustomResourceDefinition
}
type Install ¶
type Install struct { Strategy string Spec InstallSpec }
type InstallMode ¶
type InstallSpec ¶
type InstallSpec struct { ClusterPermissions []InstallSpecPermission Permissions []InstallSpecPermission Deployments []InstallSpecDeployment }
type InstallSpecDeployment ¶
type InstallSpecDeployment struct { Name string Spec interface{} }
type InstallSpecPermission ¶
type InstallSpecPermission struct { ServiceAccountName string Rules interface{} }
type Maintainer ¶
type Metadata ¶
type Metadata struct { Name string Namespace string Annotations MetadataAnnotations }
type MetadataAnnotations ¶
type Spec ¶
type Spec struct { DisplayName string `yaml:"displayName"` Description string Keywords []string Version string Maturity string Maintainers []Maintainer Provider Provider Labels Labels Selector Selector Icon []Icon Links []Link InstallModes []InstallMode `yaml:"installModes"` Install Install Customresourcedefinitions CustomResourceDefinitions RelatedImages []Image `yaml:"relatedImages"` }