---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "top",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "kubernetes",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "top",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "flannel",
         position: (7, 13),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "storageBackend",
        position: (10, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "kubernetes",
        position: (10, 21),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (14, 3),
        },
        Raw {
         content: "services",
         position: (14, 11),
        },
        Raw {
         content: "kubernetes",
         position: (14, 20),
        },
        Raw {
         content: "flannel",
         position: (14, 31),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (15, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (15, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "enable flannel networking",
              position: (15, 30),
             },
            ],
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (14, 41),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (19, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (19, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (19, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (19, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (20, 5),
             },
             Raw {
              content: "flannel",
              position: (20, 14),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "enable",
                 position: (22, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "mkDefault",
                position: (22, 16),
               },
               arguments: [
                Variable {
                 identifier: "true",
                 position: (22, 26),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "network",
                 position: (23, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "mkDefault",
                position: (23, 17),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "top",
                  position: (23, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "clusterCidr",
                    position: (23, 31),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             Inherit(
              None,
              [
               Raw {
                content: "storageBackend",
                position: (24, 15),
               },
              ],
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "nodeName",
                 position: (25, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (25, 18),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "services",
                  position: (25, 25),
                 },
                 Raw {
                  content: "kubernetes",
                  position: (25, 34),
                 },
                 Raw {
                  content: "kubelet",
                  position: (25, 45),
                 },
                 Raw {
                  content: "hostname",
                  position: (25, 53),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (20, 24),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (28, 5),
             },
             Raw {
              content: "kubernetes",
              position: (28, 14),
             },
             Raw {
              content: "kubelet",
              position: (28, 25),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "networkPlugin",
                 position: (29, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "mkDefault",
                position: (29, 23),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "cni",
                   position: (29, 34),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "cni",
                 position: (30, 7),
                },
                Raw {
                 content: "config",
                 position: (30, 11),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "mkDefault",
                position: (30, 20),
               },
               arguments: [
                List {
                 elements: [
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "name",
                        position: (31, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "mynet",
                        position: (31, 17),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "type",
                        position: (32, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "flannel",
                        position: (32, 17),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "cniVersion",
                        position: (33, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "0.3.1",
                        position: (33, 23),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "delegate",
                        position: (34, 9),
                       },
                      ],
                     },
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "isDefaultGateway",
                           position: (35, 11),
                          },
                         ],
                        },
                        Variable {
                         identifier: "true",
                         position: (35, 30),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "bridge",
                           position: (36, 11),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "mynet",
                           position: (36, 21),
                          },
                         ],
                        },
                       ),
                      ],
                      recursive: false,
                      position: (34, 20),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (30, 31),
                  },
                 ],
                 position: (30, 30),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (28, 35),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (41, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "firewall",
                 position: (42, 7),
                },
                Raw {
                 content: "allowedUDPPorts",
                 position: (42, 16),
                },
               ],
              },
              List {
               elements: [
                Int {
                 value: 8285,
                 position: (43, 9),
                },
                Int {
                 value: 8472,
                 position: (44, 9),
                },
               ],
               position: (42, 34),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "dhcpcd",
                 position: (46, 7),
                },
                Raw {
                 content: "denyInterfaces",
                 position: (46, 14),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "mynet*",
                   position: (46, 34),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "flannel*",
                   position: (46, 43),
                  },
                 ],
                },
               ],
               position: (46, 31),
              },
             ),
            ],
            recursive: false,
            position: (41, 18),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (49, 5),
             },
             Raw {
              content: "kubernetes",
              position: (49, 14),
             },
             Raw {
              content: "pki",
              position: (49, 25),
             },
             Raw {
              content: "certs",
              position: (49, 29),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "flannelClient",
                 position: (50, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "top",
                 position: (50, 23),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "lib",
                   position: (50, 27),
                  },
                  Raw {
                   content: "mkCert",
                   position: (50, 31),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "name",
                      position: (51, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "flannel-client",
                      position: (51, 17),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "CN",
                      position: (52, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "flannel-client",
                      position: (52, 15),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "action",
                      position: (53, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "systemctl restart flannel.service",
                      position: (53, 19),
                     },
                    ],
                   },
                  ),
                 ],
                 recursive: false,
                 position: (50, 38),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (49, 37),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (58, 5),
             },
             Raw {
              content: "kubernetes",
              position: (58, 14),
             },
             Raw {
              content: "addonManager",
              position: (58, 25),
             },
             Raw {
              content: "bootstrapAddons",
              position: (58, 38),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (58, 56),
            },
            arguments: [
             BinaryOperation {
              operator: LogicalAnd,
              operands: [
               BinaryOperation {
                operator: EqualTo,
                operands: [
                 Variable {
                  identifier: "storageBackend",
                  position: (58, 63),
                 },
                 String {
                  parts: [
                   Raw {
                    content: "kubernetes",
                    position: (58, 82),
                   },
                  ],
                 },
                ],
                position: (58, 78),
               },
               FunctionApplication {
                function: Variable {
                 identifier: "elem",
                 position: (58, 99),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "RBAC",
                    position: (58, 105),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "top",
                   position: (58, 111),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "apiserver",
                     position: (58, 115),
                    },
                    Raw {
                     content: "authorizationMode",
                     position: (58, 125),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              ],
              position: (58, 95),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "flannel-cr",
                   position: (60, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "apiVersion",
                      position: (61, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "rbac.authorization.k8s.io/v1",
                      position: (61, 23),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "kind",
                      position: (62, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "ClusterRole",
                      position: (62, 17),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "metadata",
                      position: (63, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "name",
                         position: (63, 22),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "flannel",
                         position: (63, 30),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (63, 20),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "rules",
                      position: (64, 9),
                     },
                    ],
                   },
                   List {
                    elements: [
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "apiGroups",
                           position: (65, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [],
                          },
                         ],
                         position: (65, 23),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "resources",
                           position: (66, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "pods",
                             position: (66, 26),
                            },
                           ],
                          },
                         ],
                         position: (66, 23),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "verbs",
                           position: (67, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "get",
                             position: (67, 22),
                            },
                           ],
                          },
                         ],
                         position: (67, 19),
                        },
                       ),
                      ],
                      recursive: false,
                      position: (64, 18),
                     },
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "apiGroups",
                           position: (70, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [],
                          },
                         ],
                         position: (70, 23),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "resources",
                           position: (71, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "nodes",
                             position: (71, 26),
                            },
                           ],
                          },
                         ],
                         position: (71, 23),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "verbs",
                           position: (72, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "list",
                             position: (72, 22),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "watch",
                             position: (72, 29),
                            },
                           ],
                          },
                         ],
                         position: (72, 19),
                        },
                       ),
                      ],
                      recursive: false,
                      position: (69, 9),
                     },
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "apiGroups",
                           position: (75, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [],
                          },
                         ],
                         position: (75, 23),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "resources",
                           position: (76, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "nodes/status",
                             position: (76, 26),
                            },
                           ],
                          },
                         ],
                         position: (76, 23),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "verbs",
                           position: (77, 11),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "patch",
                             position: (77, 22),
                            },
                           ],
                          },
                         ],
                         position: (77, 19),
                        },
                       ),
                      ],
                      recursive: false,
                      position: (74, 9),
                     },
                    ],
                    position: (64, 17),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (60, 20),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "flannel-crb",
                   position: (81, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "apiVersion",
                      position: (82, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "rbac.authorization.k8s.io/v1",
                      position: (82, 23),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "kind",
                      position: (83, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "ClusterRoleBinding",
                      position: (83, 17),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "metadata",
                      position: (84, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "name",
                         position: (84, 22),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "flannel",
                         position: (84, 30),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (84, 20),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "roleRef",
                      position: (85, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "apiGroup",
                         position: (86, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "rbac.authorization.k8s.io",
                         position: (86, 23),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "kind",
                         position: (87, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "ClusterRole",
                         position: (87, 19),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "name",
                         position: (88, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "flannel",
                         position: (88, 19),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (85, 19),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "subjects",
                      position: (90, 9),
                     },
                    ],
                   },
                   List {
                    elements: [
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "kind",
                           position: (91, 11),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "User",
                           position: (91, 19),
                          },
                         ],
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "name",
                           position: (92, 11),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "flannel-client",
                           position: (92, 19),
                          },
                         ],
                        },
                       ),
                      ],
                      recursive: false,
                      position: (90, 21),
                     },
                    ],
                    position: (90, 20),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (81, 21),
                },
               ),
              ],
              recursive: false,
              position: (58, 145),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (19, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (99, 3),
        },
        Raw {
         content: "buildDocsInSandbox",
         position: (99, 8),
        },
       ],
      },
      Variable {
       identifier: "false",
       position: (99, 29),
      },
     ),
    ],
    recursive: false,
    position: (12, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}