extensions

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuditlogExtensionType = "shoot-auditlog-service"
)
View Source
const CertExtensionType = "shoot-cert-service"
View Source
const DNSExtensionType = "shoot-dns-service"
View Source
const NetworkFilterType = "shoot-networking-filter"
View Source
const (
	OidcExtensionType = "shoot-oidc-service"
)

Variables

This section is empty.

Functions

func NewAuditLogExtension

func NewAuditLogExtension(d auditlogs.AuditLogData) (*gardener.Extension, error)

func NewCertExtension

func NewCertExtension() (*gardener.Extension, error)

func NewDNSExtension

func NewDNSExtension(shootName, secretName, domainSuffix, dnsProviderType string) (*gardener.Extension, error)

func NewExtensionsExtenderForCreate

func NewExtensionsExtenderForCreate(config config.ConverterConfig, auditLogData auditlogs.AuditLogData) func(runtime imv1.Runtime, shoot *gardener.Shoot) error

func NewExtensionsExtenderForPatch

func NewExtensionsExtenderForPatch(auditLogData auditlogs.AuditLogData, extensionsOnTheShoot []gardener.Extension) func(runtime imv1.Runtime, shoot *gardener.Shoot) error

func NewNetworkFilterExtension

func NewNetworkFilterExtension(disabled bool) (*gardener.Extension, error)

func NewOIDCExtension

func NewOIDCExtension() (*gardener.Extension, error)

Types

type AuditlogExtensionConfig

type AuditlogExtensionConfig struct {
	metav1.TypeMeta `json:",inline"`
	// Type is the type of auditlog service provider.
	Type string `json:"type"`
	// TenantID is the id of the tenant.
	TenantID string `json:"tenantID"`
	// ServiceURL is the URL of the auditlog service.
	ServiceURL string `json:"serviceURL"`
	// SecretReferenceName is the name of the reference for the secret containing the auditlog service credentials.
	SecretReferenceName string `json:"secretReferenceName"`
}

type CreateExtensionFunc

type CreateExtensionFunc func(runtime imv1.Runtime, shoot gardener.Shoot) (*gardener.Extension, error)

type DNSExtensionProviderConfig

type DNSExtensionProviderConfig struct {
	// APIVersion is gardener extension api version
	APIVersion string `json:"apiVersion"`
	// Kind is extension type
	Kind string `json:"kind"`

	// DnsProviderReplication indicates whether dnsProvider replication is on
	DNSProviderReplication *DNSProviderReplication `json:"dnsProviderReplication,omitempty"`
	// Providers is a list of additional DNS providers that shall be enabled for this shoot cluster.
	// The primary ("external") provider at `spec.dns.provider` is added automatically
	Providers []DNSProvider `json:"providers"`
	// SyncProvidersFromShootSpecDNS is an optional flag for migrating and synchronising the providers given in the
	// shoot manifest at section `spec.dns.providers`. If true, any direct changes on the `providers` section
	// are overwritten with the content of section `spec.dns.providers`.
	SyncProvidersFromShootSpecDNS *bool `json:"syncProvidersFromShootSpecDNS,omitempty"`
}

The types were copied from the following file: https://github.com/gardener/gardener-extension-shoot-dns-service/blob/master/pkg/apis/service/types.go

type DNSIncludeExclude

type DNSIncludeExclude struct {
	// Include is a list of domains that shall be included.
	Include []string `json:"include,omitempty"`
	// Exclude is a list of domains that shall be excluded.
	Exclude []string `json:"exclude,omitempty"`
}

DNSIncludeExclude contains information about which domains shall be included/excluded.

type DNSProvider

type DNSProvider struct {
	// Domains contains information about which domains shall be included/excluded for this provider.
	Domains *DNSIncludeExclude `json:"domains,omitempty"`
	// SecretName is a name of a secret containing credentials for the stated domain and the
	// provider.
	SecretName *string `json:"secretName,omitempty"`
	// Type is the DNS provider type.
	Type *string `json:"type,omitempty"`
	// Zones contains information about which hosted zones shall be included/excluded for this provider.
	Zones *DNSIncludeExclude `json:"zones,omitempty"`
}

DNSProvider contains information about a DNS provider.

type DNSProviderReplication

type DNSProviderReplication struct {
	// Enabled indicates whether replication is on
	Enabled bool `json:"enabled"`
}

type Extension

type Extension struct {
	Type   string
	Create CreateExtensionFunc
}

type ExtensionProviderConfig

type ExtensionProviderConfig struct {
	// APIVersion is gardener extension api version
	APIVersion string `json:"apiVersion"`
	// DnsProviderReplication indicates whether dnsProvider replication is on
	DNSProviderReplication *DNSProviderReplication `json:"dnsProviderReplication,omitempty"`
	// ShootIssuers indicates whether shoot Issuers are on
	ShootIssuers *ShootIssuers `json:"shootIssuers,omitempty"`
	// Kind is extension type
	Kind string `json:"kind"`
}

func NewCertConfig

func NewCertConfig() *ExtensionProviderConfig

type ShootIssuers

type ShootIssuers struct {
	// Enabled indicates whether shoot Issuers are on
	Enabled bool `json:"enabled"`
}

Jump to

Keyboard shortcuts

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