Documentation ¶
Index ¶
- func CreateEmptyConfigMap(r client.Client, scheme *runtime.Scheme, ctx context.Context, ...) (ctrl.Result, error)
- func CreateRHOperatorPullSecret(r client.Client, ctx context.Context, ...) error
- func GetRouteHost(pulp *repomanagerpulpprojectorgv1beta2.Pulp) string
- func PulpRouteController(resources controllers.FunctionResources, restClient rest.Interface, ...) (ctrl.Result, error)
- func PulpRouteObject(ctx context.Context, resources controllers.FunctionResources, p *RoutePlugin, ...) *routev1.Route
- func UpdateIngressClass(resources controllers.FunctionResources)
- type DeploymentAPIOCP
- type DeploymentContentOCP
- type DeploymentWorkerOCP
- type IngressOCP
- type PodExec
- type RoutePlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyConfigMap ¶
func CreateEmptyConfigMap(r client.Client, scheme *runtime.Scheme, ctx context.Context, pulp *repomanagerpulpprojectorgv1beta2.Pulp, log logr.Logger) (ctrl.Result, error)
CreateEmptyConfigMap creates an empty ConfigMap that is used by CNO (Cluster Network Operator) to inject custom CA into containers
func CreateRHOperatorPullSecret ¶
func CreateRHOperatorPullSecret(r client.Client, ctx context.Context, pulp repomanagerpulpprojectorgv1beta2.Pulp) error
CreateRHOperatorPullSecret creates a default secret called redhat-operators-pull-secret
func GetRouteHost ¶
func GetRouteHost(pulp *repomanagerpulpprojectorgv1beta2.Pulp) string
GetRouteHost defines route host based on ingress default cluster domain if no .spec.route_host defined
func PulpRouteController ¶
func PulpRouteController(resources controllers.FunctionResources, restClient rest.Interface, restConfig *rest.Config) (ctrl.Result, error)
PulpRouteController creates the routes based on snippets defined in pulp-worker pod
func PulpRouteObject ¶
func PulpRouteObject(ctx context.Context, resources controllers.FunctionResources, p *RoutePlugin, routeHost string) *routev1.Route
PulpRouteObject returns the route object with the specs defined in pulp CR
func UpdateIngressClass ¶
func UpdateIngressClass(resources controllers.FunctionResources)
UpdateIngressClass will handle the modifications needed when changing to/from "openshift-default" ingressclass
Types ¶
type DeploymentAPIOCP ¶
type DeploymentAPIOCP struct {
controllers.DeploymentAPICommon
}
DeploymentAPIOCP is the pulpcore-api Deployment definition for common OCP clusters
func (DeploymentAPIOCP) Deploy ¶
func (d DeploymentAPIOCP) Deploy(resources controllers.FunctionResources) client.Object
Deploy will set the specific OCP configurations for Pulp API Deployment
type DeploymentContentOCP ¶
type DeploymentContentOCP struct {
controllers.DeploymentContentCommon
}
DeploymentContentOCP is the pulpcore-content Deployment definition for common OCP clusters
func (DeploymentContentOCP) Deploy ¶
func (d DeploymentContentOCP) Deploy(resources controllers.FunctionResources) client.Object
Deploy will set the specific OCP configurations for Pulp content Deployment
type DeploymentWorkerOCP ¶
type DeploymentWorkerOCP struct {
controllers.DeploymentWorkerCommon
}
DeploymentWorkerOCP is the pulpcore-worker Deployment definition for common OCP clusters
func (DeploymentWorkerOCP) Deploy ¶
func (d DeploymentWorkerOCP) Deploy(resources controllers.FunctionResources) client.Object
Deploy will set the specific OCP configurations for Pulp worker Deployment
type IngressOCP ¶
type IngressOCP struct{}
IngressOCP is the Ingress definition for OCP clusters
func (IngressOCP) Deploy ¶
func (i IngressOCP) Deploy(resources controllers.FunctionResources, plugins []controllers.IngressPlugin) (*netv1.Ingress, error)
Deploy returns an Ingress based on default OCP IngressController (openshift.io/ingress-to-route)