Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1653

Use enum instead of defined values for tri-state

    XMLWordPrintableJSON

Details

    Description

      In the admission controller we have a tri-state that uses an integer as the underlying values. We should move to a iota that represents the same three values for clarity:

      type triState int
      
      const (
         UNSET triState = iota - 1
         FALSE
         TRUE
      ) 

      Replace all the coded values with the triState values, store the triState and return it from function calls.

      Attachments

        Issue Links

          Activity

            People

              samhxwu Hsuan Zong Wu
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: