Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

check_test.go

Blame
    • Max Jonas Werner's avatar
      9af61753
      fix e2e check test · 9af61753
      Max Jonas Werner authored
      
      The output of `kubectl version` has changed with newer kubectl version
      from
      
      ```
      {
        "serverVersion": ...,
        "clientVersion": ...
      }
      ```
      
      to
      
      ```
      {
        "serverVersion": ...,
        "clientVersion": ...,
        "kustomizeVersion": ...
      }
      ```
      
      So the `kustomizeVersion` field is new which causes the JSON
      unmarshaling to fail.
      
      We now just unmarshal it to `map[string]interface{}` and peel the
      server git version out of that map manually w/o unmarshalling the JSON
      into a custom type.
      
      Signed-off-by: default avatarMax Jonas Werner <mail@makk.es>
      9af61753
      History
      fix e2e check test
      Max Jonas Werner authored
      
      The output of `kubectl version` has changed with newer kubectl version
      from
      
      ```
      {
        "serverVersion": ...,
        "clientVersion": ...
      }
      ```
      
      to
      
      ```
      {
        "serverVersion": ...,
        "clientVersion": ...,
        "kustomizeVersion": ...
      }
      ```
      
      So the `kustomizeVersion` field is new which causes the JSON
      unmarshaling to fail.
      
      We now just unmarshal it to `map[string]interface{}` and peel the
      server git version out of that map manually w/o unmarshalling the JSON
      into a custom type.
      
      Signed-off-by: default avatarMax Jonas Werner <mail@makk.es>
    community-support.md 3.84 KiB