certconfigmapgenerator

package
v2.29.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package certconfigmapgenerator contains generator logic of add cert configmap resource in user namespaces

Package trustedcabundle provides utility functions to create and check trusted CA bundle configmap from DSCI CRD

Index

Constants

View Source
const (
	CAConfigMapName           = "odh-trusted-ca-bundle"
	CADataFieldName           = "odh-ca-bundle.crt"
	TrustedCABundleFieldOwner = resources.PlatformFieldOwner + "/trustedcabundle"
	PartOf                    = "opendatahub-operator"
	NSListLimit               = 500
)
View Source
const (
	ServiceName = "certconfigmapgenerator"
)

Variables

This section is empty.

Functions

func CreateOdhTrustedCABundleConfigMap added in v2.29.0

func CreateOdhTrustedCABundleConfigMap(ctx context.Context, cli client.Client, namespace string, customCAData string) error

CreateOdhTrustedCABundleConfigMap creates a configMap 'odh-trusted-ca-bundle' in given namespace with labels and data or update existing odh-trusted-ca-bundle configmap if already exists with new content of .data.odh-ca-bundle.crt this is certificates for the cluster trusted CA Cert Bundle.

func DeleteOdhTrustedCABundleConfigMap added in v2.29.0

func DeleteOdhTrustedCABundleConfigMap(ctx context.Context, cli client.Client, namespace string) error

func NewWithManager added in v2.29.0

func NewWithManager(_ context.Context, mgr ctrl.Manager) error

NewWithManager sets up the controller with the Manager.

Types

type CertConfigmapGeneratorReconciler added in v2.28.0

type CertConfigmapGeneratorReconciler struct {
	// contains filtered or unexported fields
}

CertConfigmapGeneratorReconciler holds the controller configuration.

func (*CertConfigmapGeneratorReconciler) Reconcile added in v2.28.0

Reconcile will generate new configmap, odh-trusted-ca-bundle, that includes cluster-wide trusted-ca bundle and custom ca bundle in every new namespace created.

Jump to

Keyboard shortcuts

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