Documentation ¶
Overview ¶
Package k8s provides abstracted access to kubernetes APIs.
Index ¶
Constants ¶
View Source
const (
EnvPodName = "POD_NAME"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPodIndexProvider ¶
MockPodIndexProvider is an autogenerated mock type for the PodIndexProvider type
func (*MockPodIndexProvider) Get ¶
func (_m *MockPodIndexProvider) Get() (string, error)
Get provides a mock function with given fields:
type MockSecret ¶
MockSecret is an autogenerated mock type for the Secret type
type PodIndexProvider ¶
PodIndexProvider provides pod ordinal index inside StatefulSet.
func NewPodIndexProvider ¶
func NewPodIndexProvider() PodIndexProvider
type Secret ¶
func NewSecretInCluster ¶
func NewSecretInCluster(stateConfig *config.StateConfig) (Secret, error)
NewSecretInCluster creates a Secret that is suitable for eks-connector pods based on stateConfig. The secret will be accessed using in-cluster Kubernetes credentials and suffixed with pod ordinal index in StatefulSet to avoid conflicts.
Click to show internal directories.
Click to hide internal directories.