k8sconv

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 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 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