Documentation
¶
Index ¶
- func BuildGateway(params manifestutils.Params) ([]client.Object, error)
- func BuildServiceAccountAnnotations(tenants v1alpha1.TenantsSpec, routeName string) map[string]string
- func LivenessProbe(tls bool) *corev1.Probe
- func NewAccessReviewClusterRole(name string, labels labels.Set) *rbacv1.ClusterRole
- func NewAccessReviewClusterRoleBinding(name string, labels labels.Set, saNamespace string, saName string) *rbacv1.ClusterRoleBinding
- func NewConfigOptions(namespace string, name string, saName string, routeHost string, ...) options
- func NewOpaContainer(ctrlConfig configv1alpha1.ProjectConfig, tenants v1alpha1.TenantsSpec, ...) corev1.Container
- func NewRBACConfigMap(cfgOpts options, namespace string, name string, labels labels.Set) (*corev1.ConfigMap, string, error)
- func NewTenantsSecret(cfgOpts options, namespace string, name string, labels labels.Set) (*corev1.Secret, string, error)
- func ReadinessProbe(tls bool) *corev1.Probe
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
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.
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, rbac bool, 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
ReadinessProbe returns the readiness probe for the gateway.
Types ¶
This section is empty.