allowlistsynchronizer

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 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

Overview

Package allowlistsynchronizer contains helpers to manage the AllowlistSynchronizer CRD required by GKE Autopilot clusters.

Index

Constants

View Source
const DefaultCSIWorkloadAllowlistVersion = "v1.1.2"

DefaultCSIWorkloadAllowlistVersion is the default version of the Datadog CSI driver daemonset WorkloadAllowlist. v1.1.2 allows the APM registry auth and registry allow list env vars.

View Source
const DefaultWorkloadAllowlistVersion = "v1.0.7"

DefaultWorkloadAllowlistVersion is the default version of the Datadog daemonset WorkloadAllowlist.

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{
		Group:   "auto.gke.io",
		Version: "v1",
	}

	SchemeBuilder = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error {
		scheme.AddKnownTypes(SchemeGroupVersion, &AllowlistSynchronizer{})
		metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
		return nil
	})
)

Functions

func CreateAllowlistSynchronizer

func CreateAllowlistSynchronizer(version, partOfLabel string, commonLabels map[string]string)

CreateAllowlistSynchronizer creates a GKE AllowlistSynchronizer Custom Resource (auto.gke.io/v1) for the Datadog WorkloadAllowlist if it doesn't exist. The AllowlistSynchronizer is needed so that GKE Autopilot can sync the Datadog WorkloadAllowlist to the cluster. See the CRD reference: https://cloud.google.com/kubernetes-engine/docs/reference/crds/allowlistsynchronizer

version selects the WorkloadAllowlist YAML to point at. Pass an empty string to use DefaultWorkloadAllowlistVersion. Malformed versions also fall back to the default.

commonLabels are merged into the AllowlistSynchronizer ObjectMeta labels so that required-label admission policies (e.g. Kyverno) do not reject the create/patch. Operator-owned keys take precedence on conflicts.

func CreateCSIAllowlistSynchronizer added in v1.28.0

func CreateCSIAllowlistSynchronizer(version, partOfLabel string, commonLabels map[string]string)

CreateCSIAllowlistSynchronizer creates a GKE AllowlistSynchronizer Custom Resource (auto.gke.io/v1) for the Datadog CSI driver WorkloadAllowlist if it doesn't exist.

version selects the Datadog CSI driver WorkloadAllowlist YAML to point at. Pass an empty string to use DefaultCSIWorkloadAllowlistVersion. Malformed versions also fall back to the default. While the new default propagates across GKE node versions, the previous default is synchronized alongside it.

commonLabels are merged into the AllowlistSynchronizer ObjectMeta labels so that required-label admission policies (e.g. Kyverno) do not reject the create/patch. Operator-owned keys take precedence on conflicts.

Types

type AllowlistSynchronizer

type AllowlistSynchronizer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec AllowlistSynchronizerSpec `json:"spec"`
}

func (*AllowlistSynchronizer) DeepCopyObject

func (in *AllowlistSynchronizer) DeepCopyObject() runtime.Object

type AllowlistSynchronizerSpec

type AllowlistSynchronizerSpec struct {
	AllowlistPaths []string `json:"allowlistPaths,omitempty"`
}

Jump to

Keyboard shortcuts

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