• Michael Taufen's avatar
    Make feature gates loadable from a map[string]bool · 131b4195
    Michael Taufen authored
    Command line flag API remains the same. This allows ComponentConfig
    structures (e.g. KubeletConfiguration) to express the map structure
    behind feature gates in a natural way when written as JSON or YAML.
    
    For example:
    
    KubeletConfiguration Before:
    ```
    apiVersion: kubeletconfig/v1alpha1
    kind: KubeletConfiguration
    featureGates: "DynamicKubeletConfig=true,Accelerators=true"
    ```
    
    KubeletConfiguration After:
    ```
    apiVersion: kubeletconfig/v1alpha1
    kind: KubeletConfiguration
    featureGates:
      DynamicKubeletConfig: true
      Accelerators: true
    ```
    131b4195
gpu_device_plugin.go 6.35 KB