cluster-api: sigs.k8s.io/cluster-api/test/infrastructure/docker/cloudinit Index | Files

package cloudinit

import "sigs.k8s.io/cluster-api/test/infrastructure/docker/cloudinit"

Package cloudinit defines cloud init adapter for kind nodes.

The Adapter supports a limited set of cloud init features, just what is necessary to test CPBPK; additionally, for sake of simplicity, the adapter is designed to work on existing kind node images.

Index

Package Files

doc.go kindadapter.go runcmd.go unknown.go writefiles.go

type Cmd Uses

type Cmd struct {
    Cmd   string
    Args  []string
    Stdin string
}

Cmd

func Commands Uses

func Commands(cloudConfig []byte) ([]Cmd, error)

Commands converts a cloudconfig to a list of commands to run in sequence on the node.

func (*Cmd) UnmarshalJSON Uses

func (c *Cmd) UnmarshalJSON(data []byte) error

UnmarshalJSON a runcmd command It can be either a list or a string. If the item is a list, the head of the list is the command and the tail are the args. If the item is a string, the whole command will be wrapped in `/bin/sh -c`.

Package cloudinit imports 12 packages (graph) and is imported by 1 packages. Updated 2020-10-29. Refresh now. Tools for package owners.