Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/zone-aware-controllers-for-k8s
/ functions
Functions
188 in github.com/aws/zone-aware-controllers-for-k8s
⨍
Functions
188
◇
Types & classes
24
↓ 1 callers
Function
contextWithStatefulSetName
(ctx context.Context, name string)
e2e/zau/env_test.go:90
↓ 1 callers
Function
contextWithZauName
(ctx context.Context, name string)
e2e/zau/env_test.go:94
↓ 1 callers
Function
contextWithZdbName
(ctx context.Context, name string)
e2e/zdb/env_test.go:63
↓ 1 callers
Function
countHealthyPods
Adapted from `DisruptionController.countHealthyPods()`: https://github.com/kubernetes/kubernetes/blob/d7123a65248/pkg/controller/disruption/disruption
controllers/zdb_controller.go:244
↓ 1 callers
Function
createPods
Create n number of pod replicas evenly distributed accross zones. Example: 3 replicas, 3 zones zone-1: [pod-0, pod-3, pod-6] zone-2: [pod-1, pod-4,
controllers/zau_controller_test.go:594
↓ 1 callers
Function
createStatefulSet
(replicas int32)
pkg/utils/pod_controller_finder_test.go:14
↓ 1 callers
Method
deletePods
(ctx context.Context, zau *opsv1.ZoneAwareUpdate, sts *apps.StatefulSet, pods []*v1.Pod, oldPodsCountMap map[
controllers/zau_controller.go:328
↓ 1 callers
Function
deployHealthyImage
deployHealthyImage will upgrade the StatefulSet under test to a working container image
e2e/zau/faults_test.go:26
↓ 1 callers
Function
getDeployedImages
getDeployedImages returns a list of the unique container images being run by statefulset pods
e2e/zau/zau_test.go:418
↓ 1 callers
Method
getDryRunOption
(req admission.Request)
webhooks/eviction_webhook.go:278
↓ 1 callers
Method
getExpectedPodCount
Adapted from `DisruptionController.getExpectedPodCount()`: https://github.com/kubernetes/kubernetes/blob/d7123a65248/pkg/controller/disruption/disrupt
controllers/zdb_controller.go:153
↓ 1 callers
Method
getExpectedScale
Adapted from `DisruptionController.getExpectedScale()`: https://github.com/kubernetes/kubernetes/blob/d7123a65248/pkg/controller/disruption/disruption
controllers/zdb_controller.go:276
↓ 1 callers
Function
getNamespaceNames
(list corev1.NamespaceList)
e2e/zau/utils.go:7
↓ 1 callers
Function
getOrdinal
(pod *v1.Pod)
controllers/zau_controller_test.go:606
↓ 1 callers
Function
getPodNames
(list corev1.PodList)
e2e/zau/utils.go:15
↓ 1 callers
Method
getPodStatefulSet
(pod *v1.Pod)
controllers/zau_controller.go:426
↓ 1 callers
Method
getPodsForZdb
(ctx context.Context, zdb *opsv1.ZoneDisruptionBudget)
controllers/zdb_controller.go:130
↓ 1 callers
Method
getStatefulSetPods
(ctx context.Context, sts *apps.StatefulSet)
controllers/zau_controller.go:211
↓ 1 callers
Function
getZauForStatefulSet
(c client.Client, logger logr.Logger, sts *apps.StatefulSet)
controllers/zau_controller.go:469
↓ 1 callers
Method
getZone
(ctx context.Context, pod *v1.Pod)
webhooks/eviction_webhook.go:264
↓ 1 callers
Method
handler
(ctx context.Context, req admission.Request)
webhooks/eviction_webhook.go:85
↓ 1 callers
Function
isDisruptedPod
(podName string, zdb *opsv1.ZoneDisruptionBudget)
webhooks/eviction_webhook.go:259
↓ 1 callers
Function
makeAWSConfig
()
e2e/env.go:54
↓ 1 callers
Function
makeEKSClient
(awsconf aws.Config)
e2e/env.go:63
↓ 1 callers
Function
pauseAlarmPatch
(alarm string)
e2e/zau/manifests.go:76
↓ 1 callers
Method
pauseRollout
(ctx context.Context, zau *opsv1.ZoneAwareUpdate)
controllers/zau_controller.go:308
↓ 1 callers
Function
podImagePatch
(image string)
e2e/faults.go:80
↓ 1 callers
Function
statefulSetNameFromContext
(ctx context.Context)
e2e/zdb/env_test.go:75
↓ 1 callers
Function
statefulsetImagePatch
(image string)
e2e/zau/manifests.go:60
↓ 1 callers
Method
sync
Adapted from `DisruptionController.trySync()`: https://github.com/kubernetes/kubernetes/blob/d7123a652/pkg/controller/disruption/disruption.go#L588
controllers/zdb_controller.go:103
↓ 1 callers
Method
updateStatefulSetRevision
(ctx context.Context, sts *apps.StatefulSet)
controllers/zau_controller.go:251
↓ 1 callers
Method
updateStatus
Adapted from `DisruptionController.updatePdbStatus()`: https://github.com/kubernetes/kubernetes/blob/d7123a65248/pkg/controller/disruption/disruption.
controllers/zdb_controller.go:326
↓ 1 callers
Function
verifyGroupKind
(controllerRef *metav1.OwnerReference, expectedKind string, expectedGroups []string)
pkg/utils/pod_controller_finder.go:81
↓ 1 callers
Function
zdbNameFromContext
(ctx context.Context)
e2e/zdb/env_test.go:67
Method
AlarmState
(ctx context.Context, alarmName string)
controllers/zau_controller_test.go:26
Function
CreatePodZoneMap
CreatePodZoneMap indexes all pods by zone and stores the index in context for faster lookup in tests
e2e/env.go:125
Function
CreateTestNamespace
CreateTestNamespace creates a namespace with a random name. It is stored in the context so that the deleteTestNamespace routine can look it up and del
e2e/env.go:145
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAwareUpdateSpec.
api/v1/zz_generated.deepcopy.go:103
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAwareUpdateStatus.
api/v1/zz_generated.deepcopy.go:125
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneDisruptionBudgetSpec.
api/v1/zz_generated.deepcopy.go:209
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneDisruptionBudgetStatus.
api/v1/zz_generated.deepcopy.go:266
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
api/v1/zz_generated.deepcopy.go:53
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
api/v1/zz_generated.deepcopy.go:85
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
api/v1/zz_generated.deepcopy.go:154
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
api/v1/zz_generated.deepcopy.go:186
Function
DeleteTestNamespace
DeleteTestNamespace looks up the test namespace from ctx and deletes it.
e2e/env.go:156
Method
DescribeAlarms
(ctx context.Context, params *cloudwatch.DescribeAlarmsInput, optFns ...func(*cloudwatch.Options))
controllers/zau_controller.go:59
Method
DescribeAlarms
(ctx context.Context, params *cloudwatch.DescribeAlarmsInput, optFns ...func(*cloudwatch.Options))
pkg/utils/alarm_status_provider_test.go:14
Method
Handle
(ctx context.Context, req admission.Request)
webhooks/eviction_webhook.go:74
Method
InjectDecoder
(d *admission.Decoder)
webhooks/eviction_webhook.go:80
Method
Len
()
pkg/utils/sort_map.go:12
Method
Less
(i, j int)
pkg/utils/sort_map.go:13
Method
Reconcile
+kubebuilder:rbac:groups=zonecontrol.k8s.aws,resources=zonedisruptionbudgets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=
controllers/zdb_controller.go:80
Method
Reconcile
+kubebuilder:rbac:groups=zonecontrol.k8s.aws,resources=zoneawareupdates,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=zonec
controllers/zau_controller.go:85
Function
Resource
(resource string)
api/v1/groupversion_info.go:41
Method
SetupWithManager
SetupWithManager sets up the controller with the Manager.
controllers/zdb_controller.go:386
Method
Swap
(i, j int)
pkg/utils/sort_map.go:14
Function
TestAPIs
(t *testing.T)
pkg/utils/pod_controller_finder_suite_test.go:23
Function
TestAPIs
(t *testing.T)
pkg/podzone/helper_suite_test.go:26
Function
TestAPIs
(t *testing.T)
webhooks/suite_test.go:60
Function
TestCloudWatchAlarmStatusProvider
(t *testing.T)
pkg/utils/alarm_status_provider_test.go:18
Function
TestController
(t *testing.T)
controllers/suite_test.go:54
Function
TestControllersToStart
(t *testing.T)
main_test.go:10
Function
TestE2EZauAttemptsDeployment
(t *testing.T)
e2e/zau/zau_test.go:70
Function
TestE2EZauOverlappingDeployments
(t *testing.T)
e2e/zau/zau_test.go:209
Function
TestE2EZauPausesDeployment
(t *testing.T)
e2e/zau/zau_test.go:98
Function
TestE2EZauRollback
(t *testing.T)
e2e/zau/zau_test.go:167
Function
TestE2EZauRolloutAlarm
Note: this test (and the operator) make some assumptions about infrastructure and the context of the test runner * Test runner environment must have A
e2e/zau/zau_test.go:262
Function
TestE2EZauSimpleDeployment
(t *testing.T)
e2e/zau/zau_test.go:31
Function
TestE2EZdbEviction
(t *testing.T)
e2e/zdb/zdb_test.go:24
Function
TestGetNamespaceNames
(t *testing.T)
e2e/zau/utils_test.go:11
Function
TestGetPodNames
(t *testing.T)
e2e/zau/utils_test.go:54
Function
TestIsRunningAndReady
(t *testing.T)
pkg/utils/utils_test.go:11
Function
TestIsSortMapByValue
(t *testing.T)
pkg/utils/sort_map_test.go:9
Function
TestMain
(m *testing.M)
e2e/zdb/main_test.go:19
Function
TestMain
(m *testing.M)
e2e/zau/main_test.go:19
Function
createStatefulSet
createStatefulSet initializes a StatefulSet to use in controller tests
e2e/zdb/env_test.go:36
Function
createStatefulSet
createStatefulSet instantiates a StatefulSet for controllers to target in tests
e2e/zau/env_test.go:24
Function
createZAU
createZAU initializes a ZAU instance in the test namespace
e2e/zau/env_test.go:38
Function
createZDB
createZDB initializes a ZDB instance in the test namespace
e2e/zdb/env_test.go:22
Method
findZdbForPod
(obj client.Object)
controllers/zdb_controller.go:397
Function
init
()
main.go:62
Function
init
()
pkg/metrics/metrics.go:113
Function
init
()
api/v1/zau_types.go:115
Function
init
()
api/v1/zdb_types.go:110
Function
keyFunc
(obj interface{})
pkg/podzone/cache.go:22
Function
main
()
main.go:69
Function
waitForHealthyEnvironment
waitForHealthyEnvironment confirms that tests are targeting a healthy environment
e2e/zau/env_test.go:52
← previous
101–188 of 188, ranked by callers