From 9efdc79c5be9c4758c3923209b6b9970f1c0bc58 Mon Sep 17 00:00:00 2001 From: Ruixian Song Date: Mon, 6 Mar 2023 13:28:19 -0800 Subject: [PATCH] Add type PodLabelPropagationConfig structs --- pkg/neg/types/types.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/neg/types/types.go b/pkg/neg/types/types.go index ded5284364..9aaa4c99ad 100644 --- a/pkg/neg/types/types.go +++ b/pkg/neg/types/types.go @@ -366,3 +366,15 @@ func NodePredicateForNetworkEndpointType(negType NetworkEndpointType) utils.Node } return utils.CandidateNodesPredicate } + +// PodLabelPropagationConfig contains a list of configurations for labels to be propagated to GCE network endpoints. +type PodLabelPropagationConfig struct { + Labels []Label +} + +// Label contains configuration for a label to be propagated to GCE network endpoints. +type Label struct { + Key string + ShortKey string + MaxLabelSizeBytes int +}