Documentation
¶
Index ¶
- Constants
- Variables
- func Deploy(ctx context.Context, kube client.Client, opts DeployOptions) (digest string, err error)
- func Lookup(ctx context.Context, kube client.Client, opts DeployOptions) (digest string, err error)
- func Undeploy(ctx context.Context, kube client.Client, opts UndeployOptions) error
- type DeployOptions
- type UndeployOptions
Constants ¶
View Source
const ( CompositionVersionLabel = "krateo.io/composition-version" CompositionStillExistErr = "compositions still exist" )
Variables ¶
View Source
var (
ErrCompositionStillExist = errors.New(CompositionStillExistErr)
)
Functions ¶
Types ¶
type DeployOptions ¶
type DeployOptions struct {
GVR schema.GroupVersionResource
DiscoveryClient discovery.CachedDiscoveryInterface
KubeClient client.Client
DynClient dynamic.Interface
Namespace string
Spec *definitionsv1alpha1.ChartInfo
RBACFolderPath string
DeploymentTemplatePath string
ConfigmapTemplatePath string
JsonSchemaTemplatePath string
ServiceTemplatePath string
JsonSchemaBytes []byte
// DryRunServer is used to determine if the deployment should be applied in dry-run mode. This is ignored in lookup mode
DryRunServer bool
}
type UndeployOptions ¶
type UndeployOptions struct {
DiscoveryClient discovery.CachedDiscoveryInterface
KubeClient client.Client
DynamicClient dynamic.Interface
Namespace string
GVR schema.GroupVersionResource
Spec *definitionsv1alpha1.ChartInfo
RBACFolderPath string
SkipCRD bool
DeploymentTemplatePath string
ServiceTemplatePath string
ConfigmapTemplatePath string
JsonSchemaTemplatePath string
JsonSchemaBytes []byte
}
Click to show internal directories.
Click to hide internal directories.