resourcebuilder

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSecurePort                    int32  = 443
	DefaultWebhookPort                   int32  = 9443
	CertManagerInjectCAFromAnnotationKey string = "cert-manager.io/inject-ca-from"
	WebhookNameAffix                     string = "-logging-operator-webhooks"
	WebhookCertDir                       string = "/tmp/k8s-webhook-server/serving-certs"
)
View Source
const (
	Image = "ghcr.io/banzaicloud/logging-operator:4.0.0-rc18"
)

Variables

View Source
var ConversionReviewVersions = []string{
	"v1beta1",
	"v1alpha1",
}

Functions

func AppendCRDResourceBuilders added in v0.7.6

func AppendCRDResourceBuilders(rbs []reconciler.ResourceBuilder, modifiers ...CRDModifier) []reconciler.ResourceBuilder

func AppendOperatorResourceBuilders added in v0.7.6

func AppendOperatorResourceBuilders(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, config *ComponentConfig) []reconciler.ResourceBuilder

func AppendPrometheusRulesResourceBuilders added in v0.7.9

func AppendPrometheusRulesResourceBuilders(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, config *ComponentConfig) []reconciler.ResourceBuilder

func AppendServiceMonitorBuilder added in v0.8.5

func AppendServiceMonitorBuilder(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, config *ComponentConfig) []reconciler.ResourceBuilder

func AppendWebhookResourceBuilders added in v0.7.6

func AppendWebhookResourceBuilders(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, config *ComponentConfig) []reconciler.ResourceBuilder

func CRD

func CRD(group string, kind string, modifiers ...CRDModifier) (runtime.Object, reconciler.DesiredState, error)

func CRDExists added in v0.7.22

func CRDExists(ctx context.Context, reader client.Reader, crdName string) (bool, error)

func Certificate added in v0.7.3

func ExtensionsMutatingWebhook added in v0.7.18

func ExtensionsMutatingWebhook(parent reconciler.ResourceOwner, config ComponentConfig) admissionregistration.MutatingWebhook

func GVKDomainName added in v0.7.7

func GVKDomainName(gvk schema.GroupVersionKind) string

func Issuer added in v0.7.3

func MutatingWebhookConfiguration added in v0.7.7

func MutatingWebhookConfiguration(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)

func Namespace added in v0.3.20

func OperatorArgs added in v0.7.5

func OperatorArgs(config ComponentConfig) (args []string)

func ResourceBuildersWithReader added in v0.7.22

func ResourceBuildersWithReader(reader client.Reader) reconciler.ResourceBuilders

func SetupWithBuilder

func SetupWithBuilder(builder *builder.Builder)

func WebhookService added in v0.7.6

Types

type CRDModifier added in v0.7.3

func ConversionWebhookModifiers added in v0.7.3

func ConversionWebhookModifiers(parent reconciler.ResourceOwner, config *ComponentConfig) []CRDModifier

func ModifierCAInjectAnnotation added in v0.7.3

func ModifierCAInjectAnnotation(certName types.NamespacedName) CRDModifier

func ModifierConversionWebhook added in v0.7.3

func ModifierConversionWebhook(svc types.NamespacedName) CRDModifier

type ComponentConfig

type ComponentConfig struct {
	types.EnabledComponent `json:",inline"`
	Namespace              string               `json:"namespace,omitempty"`
	MetaOverrides          *types.MetaBase      `json:"metaOverrides,omitempty"`
	WorkloadMetaOverrides  *types.MetaBase      `json:"workloadMetaOverrides,omitempty"`
	WorkloadOverrides      *types.PodSpecBase   `json:"workloadOverrides,omitempty"`
	ContainerOverrides     *types.ContainerBase `json:"containerOverrides,omitempty"`
	WatchNamespace         string               `json:"watchNamespace,omitempty"`
	WatchLoggingName       string               `json:"watchLoggingName,omitempty"`
	DisableWebhook         bool                 `json:"disableWebhook,omitempty"`
	Metrics                *v1beta1.Metrics     `json:"installServiceMonitor,omitempty"`
	InstallPrometheusRules bool                 `json:"-"`
}

func (*ComponentConfig) DeepCopy

func (in *ComponentConfig) DeepCopy() *ComponentConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentConfig.

func (*ComponentConfig) DeepCopyInto

func (in *ComponentConfig) DeepCopyInto(out *ComponentConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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