Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func ComputeConfigDigest(ctx context.Context, client k8sclient.Reader, vdb *v1alpha1.VirtualDatabase) (string, error)
- func ComputeForVirtualDatabase(vdb *v1alpha1.VirtualDatabase) (string, error)
- func GenerateJarPom(vdb *v1alpha1.VirtualDatabase) (maven.Project, error)
- func GenerateVdbPom(vdb *v1alpha1.VirtualDatabase, sources []vdbutil.DatasourceInfo, ...) (maven.Project, error)
- func IgnoreCacheStore(r *ReconcileVirtualDatabase, vdb *v1alpha1.VirtualDatabase) bool
- func IsVdbUpdated(vdb *v1alpha1.VirtualDatabase) bool
- func PrometheusConfig(client k8sclient.Reader, namespace string) string
- func Random() string
- func RedeployVdb(vdb *v1alpha1.VirtualDatabase) error
- type Action
- type CacheStoreListener
- type ReconcileVirtualDatabase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new VirtualDatabase Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func ComputeConfigDigest ¶
func ComputeConfigDigest(ctx context.Context, client k8sclient.Reader, vdb *v1alpha1.VirtualDatabase) (string, error)
ComputeConfigDigest --875040
func ComputeForVirtualDatabase ¶
func ComputeForVirtualDatabase(vdb *v1alpha1.VirtualDatabase) (string, error)
ComputeForVirtualDatabase a digest of the fields that are relevant for the build Produces a digest that can be used as docker image tag
func GenerateJarPom ¶
func GenerateJarPom(vdb *v1alpha1.VirtualDatabase) (maven.Project, error)
GenerateJarPom -- Generate the POM file based on the VDB provided
func GenerateVdbPom ¶
func GenerateVdbPom(vdb *v1alpha1.VirtualDatabase, sources []vdbutil.DatasourceInfo, includeAllDependencies bool, includeOpenAPIAdependency bool, includeIspnDependency bool) (maven.Project, error)
GenerateVdbPom -- Generate the POM file based on the VDb provided
func IgnoreCacheStore ¶
func IgnoreCacheStore(r *ReconcileVirtualDatabase, vdb *v1alpha1.VirtualDatabase) bool
IgnoreCacheStore Check to see if the cacheStore needs to be used or not
func PrometheusConfig ¶
PrometheusConfig --
func RedeployVdb ¶
func RedeployVdb(vdb *v1alpha1.VirtualDatabase) error
RedeployVdb Handle handles the virtualdatabase
Types ¶
type Action ¶
type Action interface { // a user friendly name for the action Name() string // returns true if the action can handle the vdb CanHandle(vdb *v1alpha1.VirtualDatabase) bool // executes the handling function Handle(ctx context.Context, vdb *v1alpha1.VirtualDatabase, r *ReconcileVirtualDatabase) error }
Action --
func NewCacheStoreAction ¶
func NewCacheStoreAction() Action
NewCacheStoreAction creates a new cachestore action
func NewCreateCertificateAction ¶
func NewCreateCertificateAction() Action
NewCreateCertificateAction creates a new initialize action
func NewCreateServiceAction ¶
func NewCreateServiceAction() Action
NewCreateServiceAction creates a new initialize action
func NewDeploymentAction ¶
func NewDeploymentAction() Action
NewDeploymentAction creates a new initialize action
func NewInitializeAction ¶
func NewInitializeAction() Action
NewInitializeAction creates a new initialize action
func NewPrometheusMonitorAction ¶
func NewPrometheusMonitorAction() Action
NewPrometheusMonitorAction creates a new initialize action
func NewServiceImageAction ¶
func NewServiceImageAction() Action
NewServiceImageAction creates a new initialize action
func News2IBuilderImageAction ¶
func News2IBuilderImageAction() Action
News2IBuilderImageAction creates a new initialize action
type CacheStoreListener ¶
type CacheStoreListener struct {
events.EventListener
}
CacheStoreListener --
type ReconcileVirtualDatabase ¶
type ReconcileVirtualDatabase struct {
// contains filtered or unexported fields
}
ReconcileVirtualDatabase reconciles a VirtualDatabase object
func (*ReconcileVirtualDatabase) Reconcile ¶
Reconcile reads that state of the cluster for a VirtualDatabase object and makes changes based on the state read and what is in the VirtualDatabase.Spec 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.