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
- func CreateOdhTrustedCABundleConfigMap(ctx context.Context, cli client.Client, namespace string, customCAData string) error
- func DeleteOdhTrustedCABundleConfigMap(ctx context.Context, cli client.Client, namespace string) error
- func NewWithManager(_ context.Context, mgr ctrl.Manager) error
- type CertConfigmapGeneratorReconciler
Constants ¶
const ( CAConfigMapName = "odh-trusted-ca-bundle" CADataFieldName = "odh-ca-bundle.crt" TrustedCABundleFieldOwner = resources.PlatformFieldOwner + "/trustedcabundle" PartOf = "opendatahub-operator" NSListLimit = 500 )
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
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
func (r *CertConfigmapGeneratorReconciler) Reconcile(ctx context.Context, ns *corev1.Namespace) (ctrl.Result, error)
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.