ingress

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: UPL-1.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCaBundle added in v1.1.0

func CreateCaBundle(certificateName string, compartmentId string, certificatesClient *certificate.CertificatesClient,
	certificateContents *string) (*certificatesmanagement.CaBundle, error)

func CreateImportedTypeCertificate added in v1.1.0

func CreateImportedTypeCertificate(tlsSecretData *TLSSecretData, certificateName string, compartmentId string,
	certificatesClient *certificate.CertificatesClient) (*certificatesmanagement.Certificate, error)

func FindCaBundleWithName added in v1.1.0

func FindCaBundleWithName(certificateName string, compartmentId string,
	certificatesClient *certificate.CertificatesClient) (*string, error)

func FindCertificateWithName added in v1.1.0

func FindCertificateWithName(certificateName string, compartmentId string,
	certificatesClient *certificate.CertificatesClient) (string, error)

func GetCaBundle added in v1.1.0

func GetCaBundle(caBundleId string, certificatesClient *certificate.CertificatesClient) (*certificatesmanagement.CaBundle, string, error)

func GetCertificate added in v1.1.0

func GetCertificate(certificateId *string, certificatesClient *certificate.CertificatesClient) (*certificatesmanagement.Certificate, string, error)

func GetSSLConfigForBackendSet added in v1.1.0

func GetSSLConfigForBackendSet(namespace string, artifactType string, artifact string, lb *ociloadbalancer.LoadBalancer, bsName string,
	compartmentId string, secretLister v1.SecretLister, client *client.WrapperClient) (*ociloadbalancer.SslConfigurationDetails, error)

func GetSSLConfigForListener added in v1.1.0

func GetSSLConfigForListener(namespace string, listener *ociloadbalancer.Listener, artifactType string, artifact string,
	compartmentId string, secretLister v1.SecretLister, client *client.WrapperClient) (*ociloadbalancer.SslConfigurationDetails, error)

func PruneCertificateVersions added in v1.4.1

func PruneCertificateVersions(certificateId string, currentVersion int64,
	versionsToPreserveCount int, certificatesClient *certificate.CertificatesClient) error

func ScheduleCertificateVersionDeletion added in v1.4.1

func ScheduleCertificateVersionDeletion(certificateId string, versionNumber int64, certificatesClient *certificate.CertificatesClient) error

func UpdateCaBundle added in v1.4.1

func UpdateCaBundle(caBundleId string, certificatesClient *certificate.CertificatesClient,
	certificateContents *string) (*certificatesmanagement.CaBundle, error)

func UpdateImportedTypeCertificate added in v1.4.1

func UpdateImportedTypeCertificate(certificateId *string, tlsSecretData *TLSSecretData,
	certificatesClient *certificate.CertificatesClient) (*certificatesmanagement.Certificate, error)

func VerifyOrGetCaBundleIdByName added in v1.4.1

func VerifyOrGetCaBundleIdByName(caBundleId string, caBundleName string, compartmentId string,
	certificatesClient *certificate.CertificatesClient) (*string, error)

VerifyOrGetCaBundleIdByName verifies that caBundle with caBundleId has name caBundleName If not, try to find ca bundle with matching name

func VerifyOrGetCertificateIdByName added in v1.4.1

func VerifyOrGetCertificateIdByName(certificateId string, certificateName string, compartmentId string,
	certificatesClient *certificate.CertificatesClient) (string, error)

VerifyOrGetCertificateIdByName verifies that cert with certificateId has name certificateName If not, try to find certificate with matching name

Types

type Controller

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

Controller demonstrates how to implement a controller with client-go.

func NewController

func NewController(controllerClass string, defaultCompartmentId string,
	ingressClassInformer networkinginformers.IngressClassInformer, ingressInformer networkinginformers.IngressInformer,
	saInformer coreinformers.ServiceAccountInformer, serviceLister corelisters.ServiceLister, secretInformer coreinformers.SecretInformer,
	client *client.ClientProvider, reg *prometheus.Registry, ctrCache ctrcache.Cache, useLbCompartmentForCertificates bool, eventRecorder events.EventRecorder) *Controller

NewController creates a new Controller.

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run begins watching and syncing.

type ObjectMetaForFinalizersPatch

type ObjectMetaForFinalizersPatch struct {
	ResourceVersion string   `json:"resourceVersion"`
	Finalizers      []string `json:"finalizers"`
}

ObjectMetaForFinalizersPatch defines object meta struct for finalizers patch operation.

type TLSSecretData

type TLSSecretData struct {
	// This would hold server certificate and any chain of trust.
	CaCertificateChain *string
	ServerCertificate  *string
	PrivateKey         *string
}

Jump to

Keyboard shortcuts

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