k8sconv

package
v0.32.0 Latest Latest
Warning

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

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

Documentation

Overview

Package k8sconv contains helpers related to converting data to Kubernetes resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpaConfToK8sOPAConfigMap

func OpaConfToK8sOPAConfigMap(
	opaconf styra.OPAConfig,
	slpURL string,
	opaDefaultConfig configv2alpha2.OPAConfig,
	customConfig map[string]interface{},
) (corev1.ConfigMap, error)

OpaConfToK8sOPAConfigMap creates a corev1.ConfigMap for the OPA based on the configuration from Styra. The configmap configures the OPA to communicate to an SLP.

func OpaConfToK8sOPAConfigMapNoSLP

func OpaConfToK8sOPAConfigMapNoSLP(
	opaconf styra.OPAConfig,
	opaDefaultConfig configv2alpha2.OPAConfig,
	customConfig map[string]interface{},
) (corev1.ConfigMap, error)

OpaConfToK8sOPAConfigMapNoSLP creates a ConfigMap for the OPA based on the configuration from Styra. The ConfigMap configures the OPA to communicate directly to Styra and not via an SLP.

func OpaConfToK8sOPAConfigMapforOCP added in v0.29.0

func OpaConfToK8sOPAConfigMapforOCP(
	opaconf ocp.OPAConfig,
	opaDefaultConfig configv2alpha2.OPAConfig,
	customConfig map[string]interface{},
) (corev1.ConfigMap, error)

OpaConfToK8sOPAConfigMapforOCP creates a ConfigMap for the OPA. It configures OPA to fetch bundle from MinIO. OpaConfToK8sOPAConfigMapforOCP merges the information given as input into a ConfigMap for OPA

func OpaConfToK8sSLPConfigMap

func OpaConfToK8sSLPConfigMap(opaconf styra.OPAConfig) (corev1.ConfigMap, error)

OpaConfToK8sSLPConfigMap creates a ConfigMap for the SLP based on the configuration from Styra.

Types

This section is empty.

Jump to

Keyboard shortcuts

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