cloudinit

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 13 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

func Run

func Run(cloudConfig []byte, cmder exec.Cmder) ([]string, error)

Run the given userData (a cloud config script) on the given node

Types

type Cmd

type Cmd struct {
	Cmd  string
	Args []string
}

Cmd defines a runcmd command

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, it will be properly executed (with the first arg as the command). If the item is a string, it will be written to a file and interpreted using “sh“.

Jump to

Keyboard shortcuts

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