Documentation ¶
Index ¶
- Constants
- Variables
- func CIDRToIPAndNetMask(ipv4 string) (string, string, int, error)
- func CreateMachineCloudInitSecret(ctx context.Context, userdata, machineName string, ...) error
- func ExtractAPIServerToken(ctx context.Context, client ctrlruntimeclient.Client) (string, error)
- func ExtractTokenAndAPIServer(ctx context.Context, userdata string, client ctrlruntimeclient.Client) (token string, apiServer string, err error)
- func RemoveFinalizerOnInstanceNotFound(finalizer string, machine *v1alpha1.Machine, ...) (bool, error)
- func SetCABundleFile(filename string) error
- type HTTPClientConfig
- type LogRoundTripper
Constants ¶
View Source
const (
CloudInitNamespace = "cloud-init-settings"
)
Variables ¶
View Source
var ( // CABundle is set globally once by the main() function // and is used to overwrite the default set of CA certificates // loaded from the host system/pod CABundle *x509.CertPool )
Functions ¶
func CIDRToIPAndNetMask ¶ added in v1.29.0
func CreateMachineCloudInitSecret ¶ added in v1.28.0
func ExtractAPIServerToken ¶ added in v1.36.1
func ExtractTokenAndAPIServer ¶ added in v1.28.0
func RemoveFinalizerOnInstanceNotFound ¶
func RemoveFinalizerOnInstanceNotFound(finalizer string, machine *v1alpha1.Machine, provider *cloudprovidertypes.ProviderData) (bool, error)
RemoveFinalizerOnInstanceNotFound checks whether a finalizer exists and removes it on demand.
func SetCABundleFile ¶ added in v1.26.0
SetCABundleFile reads a PEM-encoded file and replaces the current global CABundle with a new one. The file must contain at least one valid certificate.
Types ¶
type HTTPClientConfig ¶ added in v1.14.3
type HTTPClientConfig struct { // LogPrefix is prepended to request/response logs LogPrefix string // Global timeout used by the client Timeout time.Duration }
func (HTTPClientConfig) New ¶ added in v1.14.3
func (c HTTPClientConfig) New() http.Client
New return a custom HTTP client that allows for logging HTTP request and response information.
type LogRoundTripper ¶ added in v1.14.3
type LogRoundTripper struct {
// contains filtered or unexported fields
}
LogRoundTripper is used to log information about requests and responses that may be useful for debugging purposes. Note that setting log level >5 results in full dumps of requests and responses, including sensitive invormation (e.g. Authorization header).
Click to show internal directories.
Click to hide internal directories.