webhook

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package webhook contains code for checking a CloudZero API token.

Index

Constants

View Source
const (
	DiagnosticInsightsIngress = config.DiagnosticInsightsIngress
	MaxConnectionAttempts     = 6
	ConnectionTimeout         = 5 * time.Second
	ValidateURLPathProtocol   = "https"
	ValidateURLPath           = "/validate"
)

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context, cfg *config.Settings) diagnostic.Provider

func SendPodToValidatingWebhook

func SendPodToValidatingWebhook(ctx context.Context, webhookURL string) (*admissionv1.AdmissionResponse, error)

SendPodToValidatingWebhook sends a Pod to the validating webhook and returns the AdmissionResponse.

Types

This section is empty.

Jump to

Keyboard shortcuts

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