resourcebuilder

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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/kube-logging/logging-operator:4.0.0"
)

Variables

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

Functions

func AppendCRDResourceBuilders

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

func CRD

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

func CRDExists

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

func GVKDomainName

func GVKDomainName(gvk schema.GroupVersionKind) string

func OperatorArgs

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

func ResourceBuildersWithReader

func ResourceBuildersWithReader(reader client.Reader) reconciler.ResourceBuilders

func SetupWithBuilder

func SetupWithBuilder(builder *builder.Builder)

Types

type CRDModifier

func ConversionWebhookModifiers

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

func ModifierCAInjectAnnotation

func ModifierCAInjectAnnotation(certName types.NamespacedName) CRDModifier

func ModifierConversionWebhook

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