mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
pointer usage error
This commit is contained in:
@@ -52,10 +52,10 @@ func newPod(podName string, nodeName string, label map[string]string) *v1.Pod {
|
||||
|
||||
func TestIsPodUpdated(t *testing.T) {
|
||||
templateGeneration := utilpointer.Int64Ptr(12345)
|
||||
badGeneration := utilpointer.Int64Ptr(12345)
|
||||
badGeneration := utilpointer.Int64Ptr(12350)
|
||||
hash := "55555"
|
||||
labels := map[string]string{extensions.DaemonSetTemplateGenerationKey: fmt.Sprint(templateGeneration), extensions.DefaultDaemonSetUniqueLabelKey: hash}
|
||||
labelsNoHash := map[string]string{extensions.DaemonSetTemplateGenerationKey: fmt.Sprint(templateGeneration)}
|
||||
labels := map[string]string{extensions.DaemonSetTemplateGenerationKey: fmt.Sprint(*templateGeneration), extensions.DefaultDaemonSetUniqueLabelKey: hash}
|
||||
labelsNoHash := map[string]string{extensions.DaemonSetTemplateGenerationKey: fmt.Sprint(*templateGeneration)}
|
||||
tests := []struct {
|
||||
test string
|
||||
templateGeneration *int64
|
||||
|
||||
Reference in New Issue
Block a user