resources

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendSubjectToRoleBinding

func AppendSubjectToRoleBinding(roleBinding client.Object, serviceAccount k8score.ServiceAccount) client.Object

Makes sure a given serviceaccount is among the subjects of a rolebinding or clusterrolebinding

func EqualServices

func EqualServices(s1, s2 *k8score.Service) bool

func GetAuthorinoClusterRoleBinding

func GetAuthorinoClusterRoleBinding(roleBindingName, clusterRoleName string, serviceAccount k8score.ServiceAccount) *k8srbac.ClusterRoleBinding

func GetAuthorinoRoleBinding

func GetAuthorinoRoleBinding(namespace, crName, roleBindingNameSuffix, roleKind, roleName string, serviceAccount k8score.ServiceAccount, labels map[string]string) *k8srbac.RoleBinding

func GetAuthorinoServiceAccount

func GetAuthorinoServiceAccount(namespace, crName string, labels map[string]string) *k8score.ServiceAccount

func GetContainer

func GetContainer(image string, imagePullPolicy k8score.PullPolicy, containerName string, args []string, envVars []k8score.EnvVar, volMounts []k8score.VolumeMount) k8score.Container

func GetDeployment

func GetDeployment(name, namespace, saName string, replicas *int32, containers []k8score.Container, vol []k8score.Volume, labels map[string]string) *k8sapps.Deployment

func GetLeaderElectionRules

func GetLeaderElectionRules() []k8srbac.PolicyRule

func GetSubjectForRoleBinding

func GetSubjectForRoleBinding(serviceAccount k8score.ServiceAccount) k8srbac.Subject

func GetTlsVolume

func GetTlsVolume(certName, secretName string) k8score.Volume

func GetTlsVolumeMount

func GetTlsVolumeMount(certName, certPath, certKeyPath string) []k8score.VolumeMount

func NewAuthService

func NewAuthService(authorinoName, serviceNamespace string, grpcPort, httpPort int32, labels map[string]string) *k8score.Service

func NewMetricsService

func NewMetricsService(authorinoName, serviceNamespace string, port int32, labels map[string]string) *k8score.Service

func NewOIDCService

func NewOIDCService(authorinoName, authorinoNamespace string, port int32, labels map[string]string) *k8score.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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