Documentation ¶
Index ¶
- Constants
- Variables
- func AppendCRDResourceBuilders(rbs []reconciler.ResourceBuilder, modifiers ...CRDModifier) []reconciler.ResourceBuilder
- func AppendOperatorResourceBuilders(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, ...) []reconciler.ResourceBuilder
- func AppendPrometheusRulesResourceBuilders(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, ...) []reconciler.ResourceBuilder
- func AppendServiceMonitorBuilder(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, ...) []reconciler.ResourceBuilder
- func AppendWebhookResourceBuilders(rbs []reconciler.ResourceBuilder, parent reconciler.ResourceOwner, ...) []reconciler.ResourceBuilder
- func CRD(group string, kind string, modifiers ...CRDModifier) (runtime.Object, reconciler.DesiredState, error)
- func CRDExists(ctx context.Context, reader client.Reader, crdName string) (bool, error)
- func Certificate(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func ClusterRole(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func ClusterRoleBinding(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func ExtensionsMutatingWebhook(parent reconciler.ResourceOwner, config ComponentConfig) admissionregistration.MutatingWebhook
- func GVKDomainName(gvk schema.GroupVersionKind) string
- func Issuer(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func MutatingWebhookConfiguration(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func Namespace(_ reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func Operator(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func OperatorArgs(config ComponentConfig) (args []string)
- func ResourceBuildersWithReader(reader client.Reader) reconciler.ResourceBuilders
- func ServiceAccount(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- func SetupWithBuilder(builder *builder.Builder)
- func WebhookService(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
- type CRDModifier
- type ComponentConfig
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 Certificate ¶ added in v0.7.3
func Certificate(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
func ClusterRole ¶
func ClusterRole(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
func ClusterRoleBinding ¶
func ClusterRoleBinding(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
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 Issuer(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
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 Namespace(_ reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
func Operator ¶
func Operator(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
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 ServiceAccount ¶
func ServiceAccount(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
func SetupWithBuilder ¶
func WebhookService ¶ added in v0.7.6
func WebhookService(parent reconciler.ResourceOwner, config ComponentConfig) (runtime.Object, reconciler.DesiredState, error)
Types ¶
type CRDModifier ¶ added in v0.7.3
type CRDModifier func(*v1.CustomResourceDefinition) (*v1.CustomResourceDefinition, error)
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.
Click to show internal directories.
Click to hide internal directories.