hooks

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 47 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DexAuthenticatorClientID added in v1.78.0

func DexAuthenticatorClientID(name, namespace string) string

DexAuthenticatorClientID is the id of the OAuth2Client of a DexAuthenticator. Name and namespace may both contain a dash, so they are joined by "@", which neither can contain: joined by a dash, distinct authenticators ("a" in "b-c" and "a-b" in "c") got one client and one secret.

func SafeDNS1123Name added in v1.73.0

func SafeDNS1123Name(fullOriginalName string) (string, bool, string)

SafeDNS1123Name normalizes and truncates name to DNS-1123 and length <=63. If truncation happens, "-<hash5>" is appended, where hash5 is first 5 hex of sha256(original).

Types

type Credentials

type Credentials struct {
	CookieSecret string `json:"cookieSecret"`
	AppDexSecret string `json:"appDexSecret"`
}

type DexAuthenticator

type DexAuthenticator struct {
	ID          string                 `json:"uuid"`
	EncodedName string                 `json:"encodedName"`
	Name        string                 `json:"name"`
	Namespace   string                 `json:"namespace"`
	Spec        map[string]interface{} `json:"spec"`

	AllowAccessToKubernetes bool        `json:"allowAccessToKubernetes"`
	Credentials             Credentials `json:"credentials"`

	// AllowAccessToKubernetesAnnotation carries the raw annotation value from the filter,
	// which has no logger, to the hook body, which does. It is nil when the annotation is
	// absent, and json:"-" keeps it out of the internal values the templates read.
	AllowAccessToKubernetesAnnotation *string `json:"-"`

	// IsCreatedByModule tells an authenticator of a Deckhouse module, labeled heritage: deckhouse
	// by helm_lib, from one of a user. Only the telemetry reads it.
	IsCreatedByModule bool `json:"-"`
}

type DexAuthenticatorSecret

type DexAuthenticatorSecret struct {
	ID          string      `json:"uuid"`
	Name        string      `json:"name"`
	Namespace   string      `json:"namespace"`
	Credentials Credentials `json:"credentials"`
}

type DexCA

type DexCA struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
}

type DexProvider

type DexProvider map[string]interface{}

type KubernetesSecret

type KubernetesSecret []byte

type KubernetesServicePort

type KubernetesServicePort intstr.IntOrString

type PublishAPICert

type PublishAPICert struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
}

type PublishAPIConfig added in v1.77.0

type PublishAPIConfig struct {
	Name                        string `json:"name"`
	AddKubeconfigGeneratorEntry []byte `json:"addKubeconfigGeneratorEntry"`
	WhitelistSourceRanges       []byte `json:"whitelistSourceRanges"`
	HTTPSMode                   []byte `json:"httpsMode"`
	IngressClass                []byte `json:"ingressClass"`
}

Directories

Path Synopsis
internal
handover
Package handover moves objects from the module chart to user-authn-controller.
Package handover moves objects from the module chart to user-authn-controller.

Jump to

Keyboard shortcuts

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