Documentation ¶
Overview ¶
Package k8sconv contains helpers related to converting data to Kubernetes resources.
Index ¶
- func OpaConfToK8sOPAConfigMap(opaconf styra.OPAConfig, slpURL string, ...) (corev1.ConfigMap, error)
- func OpaConfToK8sOPAConfigMapNoSLP(opaconf styra.OPAConfig, opaDefaultConfig configv2alpha2.OPAConfig, ...) (corev1.ConfigMap, error)
- func OpaConfToK8sSLPConfigMap(opaconf styra.OPAConfig) (corev1.ConfigMap, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.