gateway

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGateway

func BuildGateway(params manifestutils.Params) ([]client.Object, error)

BuildGateway creates gateway objects.

func BuildServiceAccountAnnotations added in v0.10.0

func BuildServiceAccountAnnotations(tenants v1alpha1.TenantsSpec, routeName string) map[string]string

BuildServiceAccountAnnotations returns the annotations to use a ServiceAccount as an OAuth client.

func LivenessProbe added in v0.10.0

func LivenessProbe(tls bool) *corev1.Probe

LivenessProbe returns the liveness probe spec for the gateway.

func NewAccessReviewClusterRole added in v0.10.0

func NewAccessReviewClusterRole(name string, labels labels.Set) *rbacv1.ClusterRole

NewAccessReviewClusterRole creates a ClusterRole for tokenreviews and subjectaccessreviews.

func NewAccessReviewClusterRoleBinding added in v0.10.0

func NewAccessReviewClusterRoleBinding(name string, labels labels.Set, saNamespace string, saName string) *rbacv1.ClusterRoleBinding

NewAccessReviewClusterRoleBinding creates a ClusterRoleBinding for the ClusterRole created by NewAccessReviewClusterRole().

func NewConfigOptions added in v0.10.0

func NewConfigOptions(
	namespace string,
	name string,
	saName string,
	routeHost string,
	opaPackage string,
	tenantsSpec v1alpha1.TenantsSpec,
	oidcSecrets []*manifestutils.GatewayTenantOIDCSecret,
	tenantsData []*manifestutils.GatewayTenantsData,
) options

NewConfigOptions initializes options required to build the configuration files for multitenancy.

func NewOpaContainer added in v0.10.0

func NewOpaContainer(ctrlConfig configv1alpha1.ProjectConfig, tenants v1alpha1.TenantsSpec, opaPackage string, resources corev1.ResourceRequirements) corev1.Container

NewOpaContainer creates an OPA (https://github.com/observatorium/opa-openshift) container.

func NewRBACConfigMap added in v0.10.0

func NewRBACConfigMap(cfgOpts options, namespace string, name string, labels labels.Set) (*corev1.ConfigMap, string, error)

NewRBACConfigMap creates a ConfigMap containing the RBAC configuration file.

func NewTenantsSecret added in v0.10.0

func NewTenantsSecret(cfgOpts options, namespace string, name string, labels labels.Set) (*corev1.Secret, string, error)

NewTenantsSecret creates a Secret containing the tenants configuration file.

func ReadinessProbe added in v0.10.0

func ReadinessProbe(tls bool) *corev1.Probe

ReadinessProbe returns the readiness probe for the gateway.

Types

This section is empty.

Jump to

Keyboard shortcuts

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