ocp

package
v0.0.0-...-2006d36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: GPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

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

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

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

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

Deploy returns an Ingress based on default OCP IngressController (openshift.io/ingress-to-route)

type PodExec

type PodExec struct {
	RESTClient rest.Interface
	RESTConfig *rest.Config
	Scheme     *runtime.Scheme
}

PodExec contains the configs to execute a command inside a pod

type RoutePlugin

type RoutePlugin struct {
	Name        string `json:"name"`
	Path        string `json:"path"`
	ServiceName string `json:"serviceName"`
	TargetPort  string `json:"targetPort"`
	Rewrite     string `json:"rewrite"`
}

RoutePlugin defines a plugin route.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL