cloudinit

package
v0.0.0-...-40841d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

Cmd.

func Commands

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

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`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL