Documentation ¶
Index ¶
- Constants
- Variables
- func DesiredEnvoyService(Sesame *operatorv1alpha1.Sesame) *corev1.Service
- func DesiredSesameService(Sesame *operatorv1alpha1.Sesame) *corev1.Service
- func EnsureEnvoyService(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
- func EnsureEnvoyServiceDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
- func EnsureSesameService(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
- func EnsureSesameServiceDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
Constants ¶
View Source
const ( // SesameSvcName is the name of Sesame's Service. // [TODO] danehans: Update Sesame name to sesame.Name + "-sesame" to support multiple // Sesames/ns when https://github.com/projectsesame/Sesame/issues/2122 is fixed. SesameSvcName = "sesame" // EnvoyServiceHTTPPort is the HTTP port number of the Envoy service. EnvoyServiceHTTPPort = int32(80) // EnvoyServiceHTTPSPort is the HTTPS port number of the Envoy service. EnvoyServiceHTTPSPort = int32(443) // EnvoyNodePortHTTPPort is the NodePort port number for Envoy's HTTP service. For NodePort // details see: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport EnvoyNodePortHTTPPort = int32(30080) // EnvoyNodePortHTTPSPort is the NodePort port number for Envoy's HTTPS service. For NodePort // details see: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport EnvoyNodePortHTTPSPort = int32(30443) )
Variables ¶
View Source
var ( // InternalLBAnnotations maps cloud providers to the provider's annotation // key/value pair used for managing an internal load balancer. For additional // details see: // https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer // InternalLBAnnotations = map[operatorv1alpha1.LoadBalancerProviderType]map[string]string{ operatorv1alpha1.AWSLoadBalancerProvider: { // contains filtered or unexported fields }, operatorv1alpha1.AzureLoadBalancerProvider: { // contains filtered or unexported fields }, operatorv1alpha1.GCPLoadBalancerProvider: { // contains filtered or unexported fields }, } )
Functions ¶
func DesiredEnvoyService ¶
func DesiredEnvoyService(Sesame *operatorv1alpha1.Sesame) *corev1.Service
DesiredEnvoyService generates the desired Envoy Service for the given sesame.
func DesiredSesameService ¶
func DesiredSesameService(Sesame *operatorv1alpha1.Sesame) *corev1.Service
DesiredSesameService generates the desired Sesame Service for the given sesame.
func EnsureEnvoyService ¶
func EnsureEnvoyService(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
EnsureEnvoyService ensures that an Envoy Service exists for the given sesame.
func EnsureEnvoyServiceDeleted ¶
func EnsureEnvoyServiceDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
EnsureEnvoyServiceDeleted ensures that an Envoy Service for the provided sesame is deleted.
func EnsureSesameService ¶
func EnsureSesameService(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
EnsureSesameService ensures that a Sesame Service exists for the given sesame.
func EnsureSesameServiceDeleted ¶
func EnsureSesameServiceDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
EnsureSesameServiceDeleted ensures that a Sesame Service for the provided sesame is deleted if Sesame owner labels exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.