Skip to content

Commit

Permalink
define states for endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
sawsa307 committed Feb 16, 2023
1 parent 527a689 commit 0f3873b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/neg/types/endpoint_stat.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ func (s State) String() string {
return string(s)
}

const (
EPMissingNodeName = State("endpointMissingNodeName")
EPMissingPod = State("endpointMissingPod")
EPMissingZone = State("endpointMissingZone")
EPMissingField = State("endpointMissingField")
EPDuplicate = State("endpointDuplicate")
EPTotal = State("endpointTotal")
)

func StateForEP() []State {
return []State{EPMissingNodeName, EPMissingPod, EPMissingZone, EPMissingField, EPDuplicate, EPTotal}
}

// SyncerEPStat contains endpoint and endpointslice status related to a syncer
type SyncerEPStat struct {
EndpointStateCount StateCountMap
Expand Down

0 comments on commit 0f3873b

Please sign in to comment.