tcpproxy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Namespace is where tcp-proxy resources are deployed inside the tenant cluster.
	Namespace = "kube-system"

	// DeploymentName is the name of the tcp-proxy Deployment.
	DeploymentName = "steward-tcp-proxy"

	// ServiceName is the name of the tcp-proxy Service.
	ServiceName = "steward-tcp-proxy"

	// ServiceAccountName is the name of the tcp-proxy ServiceAccount.
	ServiceAccountName = "steward-tcp-proxy"

	// ClusterRoleName is the name of the tcp-proxy ClusterRole.
	ClusterRoleName = "steward:tcp-proxy"

	// ClusterRoleBindingName is the name of the tcp-proxy ClusterRoleBinding.
	ClusterRoleBindingName = "steward:tcp-proxy"

	// DefaultImage is the default container image for tcp-proxy.
	// TLS termination mode for Ingress/Gateway, passthrough for LoadBalancer/NodePort.
	DefaultImage = "ghcr.io/butlerdotdev/steward-tcp-proxy:v0.2.0"

	// ProxyPort is the port tcp-proxy listens on for proxied connections.
	ProxyPort = 6443

	// HealthPort is the port for health check endpoints.
	HealthPort = 8080

	// MetricsPort is the port for Prometheus metrics.
	MetricsPort = 9090

	// AppLabel is the app label value used for pod selection.
	AppLabel = "steward-tcp-proxy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Client client.Client
	// contains filtered or unexported fields
}

Agent manages the tcp-proxy Deployment inside the tenant cluster.

func (*Agent) CleanUp

func (*Agent) Define

func (*Agent) GetHistogram

func (r *Agent) GetHistogram() prometheus.Histogram

func (*Agent) GetName

func (r *Agent) GetName() string

func (*Agent) ShouldCleanup

func (r *Agent) ShouldCleanup(tcp *stewardv1alpha1.TenantControlPlane) bool

func (*Agent) ShouldStatusBeUpdated

func (r *Agent) ShouldStatusBeUpdated(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) bool

func (*Agent) UpdateTenantControlPlaneStatus

func (r *Agent) UpdateTenantControlPlaneStatus(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) error

type ClusterRoleBindingResource

type ClusterRoleBindingResource struct {
	Client client.Client
	// contains filtered or unexported fields
}

ClusterRoleBindingResource manages the tcp-proxy ClusterRoleBinding inside the tenant cluster.

func (*ClusterRoleBindingResource) CleanUp

func (*ClusterRoleBindingResource) CreateOrUpdate

func (*ClusterRoleBindingResource) Define

func (*ClusterRoleBindingResource) GetHistogram

func (*ClusterRoleBindingResource) GetName

func (r *ClusterRoleBindingResource) GetName() string

func (*ClusterRoleBindingResource) ShouldCleanup

func (*ClusterRoleBindingResource) ShouldStatusBeUpdated

func (*ClusterRoleBindingResource) UpdateTenantControlPlaneStatus

func (r *ClusterRoleBindingResource) UpdateTenantControlPlaneStatus(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) error

type ClusterRoleResource

type ClusterRoleResource struct {
	Client client.Client
	// contains filtered or unexported fields
}

ClusterRoleResource manages the tcp-proxy ClusterRole inside the tenant cluster.

func (*ClusterRoleResource) CleanUp

func (*ClusterRoleResource) CreateOrUpdate

func (*ClusterRoleResource) Define

func (*ClusterRoleResource) GetHistogram

func (r *ClusterRoleResource) GetHistogram() prometheus.Histogram

func (*ClusterRoleResource) GetName

func (r *ClusterRoleResource) GetName() string

func (*ClusterRoleResource) ShouldCleanup

func (*ClusterRoleResource) ShouldStatusBeUpdated

func (r *ClusterRoleResource) ShouldStatusBeUpdated(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) bool

func (*ClusterRoleResource) UpdateTenantControlPlaneStatus

func (r *ClusterRoleResource) UpdateTenantControlPlaneStatus(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) error

type ServiceAccountResource

type ServiceAccountResource struct {
	Client client.Client
	// contains filtered or unexported fields
}

ServiceAccountResource manages the tcp-proxy ServiceAccount inside the tenant cluster.

func (*ServiceAccountResource) CleanUp

func (*ServiceAccountResource) CreateOrUpdate

func (*ServiceAccountResource) Define

func (*ServiceAccountResource) GetHistogram

func (r *ServiceAccountResource) GetHistogram() prometheus.Histogram

func (*ServiceAccountResource) GetName

func (r *ServiceAccountResource) GetName() string

func (*ServiceAccountResource) ShouldCleanup

func (*ServiceAccountResource) ShouldStatusBeUpdated

func (*ServiceAccountResource) UpdateTenantControlPlaneStatus

func (r *ServiceAccountResource) UpdateTenantControlPlaneStatus(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) error

type ServiceResource

type ServiceResource struct {
	Client client.Client
	// contains filtered or unexported fields
}

ServiceResource manages the tcp-proxy ClusterIP Service inside the tenant cluster.

func (*ServiceResource) CleanUp

func (*ServiceResource) Define

func (*ServiceResource) GetHistogram

func (r *ServiceResource) GetHistogram() prometheus.Histogram

func (*ServiceResource) GetName

func (r *ServiceResource) GetName() string

func (*ServiceResource) ShouldCleanup

func (r *ServiceResource) ShouldCleanup(tcp *stewardv1alpha1.TenantControlPlane) bool

func (*ServiceResource) ShouldStatusBeUpdated

func (r *ServiceResource) ShouldStatusBeUpdated(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) bool

func (*ServiceResource) UpdateTenantControlPlaneStatus

func (r *ServiceResource) UpdateTenantControlPlaneStatus(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) error

Jump to

Keyboard shortcuts

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