Documentation
¶
Index ¶
- Constants
- func ApplyMutator(gen Mutator) error
- func Name(o Getter) string
- func NewGeneratorAzurePathFixJob(lister batchlisters.JobNamespaceLister, client batchset.BatchV1Interface, ...) *generatorAzurePathFixJob
- func NewGeneratorClusterOperator(deployLister appslisters.DeploymentNamespaceLister, ...) *generatorClusterOperator
- func RouteIsCreatedByOperator(route *routeapi.Route) bool
- type ConfigOverrides
- type DeploymentOverrides
- type Generator
- type Getter
- type ImagePrunerGenerator
- type Mutator
Constants ¶
View Source
const RouteOwnerAnnotation = "imageregistry.openshift.io"
Variables ¶
This section is empty.
Functions ¶
func ApplyMutator ¶
func NewGeneratorAzurePathFixJob ¶
func NewGeneratorAzurePathFixJob( lister batchlisters.JobNamespaceLister, client batchset.BatchV1Interface, secretLister corev1listers.SecretNamespaceLister, infrastructureLister configlisters.InfrastructureLister, proxyLister configlisters.ProxyLister, openshiftConfigLister corev1listers.ConfigMapNamespaceLister, cr *imageregistryv1.Config, kubeconfig *restclient.Config, ) *generatorAzurePathFixJob
func NewGeneratorClusterOperator ¶
func NewGeneratorClusterOperator( deployLister appslisters.DeploymentNamespaceLister, configLister configlisters.ClusterOperatorLister, configClient configv1client.ClusterOperatorsGetter, cr *imageregistryv1.Config, imagePruner *imageregistryv1.ImagePruner, relatedObjects []configv1.ObjectReference, ) *generatorClusterOperator
Types ¶
type ConfigOverrides ¶
type ConfigOverrides struct {
Deployment *DeploymentOverrides `json:"deployment,omitempty"`
}
ConfigOverrides holds data users can set to override default object configurations created by this operator. This is stored in the registry Config.Spec.UnsupportedConfigOverrides.
type DeploymentOverrides ¶
type DeploymentOverrides struct { Annotations map[string]string `json:"annotations,omitempty"` RuntimeClassName *string `json:"runtimeClassName,omitempty"` }
DeploymentOverrides holds items that can be overwriten in the image registry deployment.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type ImagePrunerGenerator ¶
type ImagePrunerGenerator struct {
// contains filtered or unexported fields
}
func NewImagePrunerGenerator ¶
func NewImagePrunerGenerator(clients *client.Clients, listers *client.ImagePrunerControllerListers) *ImagePrunerGenerator
func (*ImagePrunerGenerator) Apply ¶
func (g *ImagePrunerGenerator) Apply(pcr *imageregistryv1.ImagePruner) error
func (*ImagePrunerGenerator) List ¶
func (g *ImagePrunerGenerator) List(cr *imageregistryv1.ImagePruner) ([]Mutator, error)
func (*ImagePrunerGenerator) Remove ¶
func (g *ImagePrunerGenerator) Remove(cr *imageregistryv1.ImagePruner) error
type Mutator ¶
type Mutator interface { Getter Create() (runtime.Object, error) Update(o runtime.Object) (runtime.Object, bool, error) Delete(opts metaapi.DeleteOptions) error // Owned indicates whether this resource is explicitly owned by the registry operator // and therefore should be removed when the registry config resource is removed. Owned() bool }
func NewGeneratorCAConfig ¶
func NewGeneratorCAConfig( lister corelisters.ConfigMapNamespaceLister, imageConfigLister configlisters.ImageLister, openshiftConfigLister corelisters.ConfigMapNamespaceLister, serviceLister corelisters.ServiceNamespaceLister, imageRegistryConfigLister imageregistryv1listers.ConfigLister, storageListers *client.StorageListers, kubeconfig *restclient.Config, client coreset.CoreV1Interface, featureGateAccessor featuregates.FeatureGateAccess, ) Mutator
func NewGeneratorImageRegistryCA ¶
func NewGeneratorImageRegistryCA( lister corelisters.ConfigMapNamespaceLister, managedLister corelisters.ConfigMapLister, imageConfigLister configlisters.ImageLister, openshiftConfigLister corelisters.ConfigMapNamespaceLister, serviceLister corelisters.ServiceNamespaceLister, imageRegistryConfigLister imageregistryv1listers.ConfigLister, storageListers *client.StorageListers, kubeconfig *restclient.Config, client coreset.CoreV1Interface, featureGateAccessor featuregates.FeatureGateAccess, ) Mutator
func NewGeneratorNodeCADaemonSet ¶
func NewGeneratorNodeCADaemonSet(eventRecorder events.Recorder, daemonSetLister appsv1listers.DaemonSetNamespaceLister, serviceLister corev1listers.ServiceNamespaceLister, client appsv1client.AppsV1Interface, operatorClient v1helpers.OperatorClient) Mutator
Source Files
¶
- azurepathfixjob.go
- caconfig.go
- clusteroperator.go
- clusterrole.go
- clusterrolebinding.go
- configoverrides.go
- dependencies.go
- deployment.go
- generator.go
- generatorimagepruner.go
- imageregistryca.go
- nodecadaemon.go
- poddisruptionbudget.go
- podtemplatespec.go
- prunerclusterrole.go
- prunerclusterrolebinding.go
- prunercronjob.go
- prunerserviceaccount.go
- pullsecret.go
- resource.go
- route.go
- secret.go
- service.go
- serviceaccount.go
- serviceca.go
Click to show internal directories.
Click to hide internal directories.