Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Update docs and test data with v1alpha4 API #855

Merged
merged 1 commit into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: kernel
spec:
memory: 1500MB
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/input/apply-vm-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"kind": "VM",
"apiVersion": "ignite.weave.works/v1alpha3",
"apiVersion": "ignite.weave.works/v1alpha4",
"spec": {
"image": {
"oci": "weaveworks/ignite-ubuntu"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/input/apply-vm-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
spec:
memory: 1500MB
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/input/create-config-no-name.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
spec:
image:
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/input/rm-no-name-uid.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
name: ""
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/input/rm-vm1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
name: myvm2
Expand Down
1 change: 1 addition & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Please refer to the (autogenerated) docs for the API types below:
- [ignite/v1alpha1](ignite_v1alpha1.md)
- [ignite/v1alpha2](ignite_v1alpha2.md)
- [ignite/v1alpha3](ignite_v1alpha3.md)
- [ignite/v1alpha4](ignite_v1alpha4.md)
- [meta/v1alpha1](meta_v1alpha1.md)
4 changes: 2 additions & 2 deletions docs/declarative-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The first commands to support this feature are `ignite run` and `ignite create`.
Here's an example API object file contents:

```yaml
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
name: my-vm
Expand All @@ -35,7 +35,7 @@ INFO[0002] Started Firecracker VM "e04128e6f96176a8" in a container with ID "ign
The full reference format for the `VM` kind is as follows:

```yaml
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
# Automatically set when the object is created
Expand Down
2 changes: 1 addition & 1 deletion docs/gitops.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ back to the repository using the default key for it. To edit your root's git con
Here's a sample configuration you can push to it (my-vm.yaml):

```yaml
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
name: my-vm
Expand Down
6 changes: 4 additions & 2 deletions docs/ignite-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ with path to the configuration file.
Example configuration:

```yaml
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: Configuration
metadata:
name: test-config
Expand Down Expand Up @@ -57,7 +57,7 @@ DEBU[0000] Using ignite configuration file /tmp/ignite-config.yaml
The full reference format for the `Configuration` kind is as follows:

```yaml
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
# Required, the name of the configuration.
Expand All @@ -72,6 +72,8 @@ spec:
memory: [size]
cpus: [uint64]
...
# Optional, directory containing the container registry configuration.
registryConfigDir: [string]
```

You can find the full API reference for `Configuration` kind in the
Expand Down
18 changes: 9 additions & 9 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ for additional details):
```bash
VMFILE=/etc/firecracker/manifests/smoke-test.yml
tee "$VMFILE" > /dev/null <<EOF
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
name: smoke-test
Expand All @@ -172,26 +172,26 @@ DEBU[2551] FileWatcher: Registered inotify events [notify.InCloseWrite: "/etc/fi
DEBU[2552] FileWatcher: Sending update: MODIFY -> "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2552] FileWatcher: Dispatched events batch and reset the events cache
DEBU[2552] GenericMappedRawStorage: AddMapping: "vm/d039cbcd-3606-462d-839e-25ac745cd7c5" -> "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2552] SyncStorage: Received update {{CREATE &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}} 0xc0004c7aa0} true
DEBU[2552] SyncStorage: Sent update: {CREATE &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}}
DEBU[2552] SyncStorage: Received update {{CREATE &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}} 0xc0004c7aa0} true
DEBU[2552] SyncStorage: Sent update: {CREATE &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}}
DEBU[2552] FileWatcher: Skipping suspended event MODIFY for path: "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2552] FileWatcher: Registered inotify events [notify.InCloseWrite: "/etc/firecracker/manifests/smoke-test.yml"] for path "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2553] FileWatcher: Sending update: MODIFY -> "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2553] FileWatcher: Dispatched events batch and reset the events cache
DEBU[2553] SyncStorage: Received update {{MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}} 0xc0004c7aa0} true
DEBU[2553] SyncStorage: Received update {{MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}} 0xc0004c7aa0} true
DEBU[2553] FileWatcher: Skipping suspended event MODIFY for path: "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2553] SyncStorage: Sent update: {MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}}
DEBU[2553] SyncStorage: Sent update: {MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}}
DEBU[2553] FileWatcher: Registered inotify events [notify.InCloseWrite: "/etc/firecracker/manifests/smoke-test.yml"] for path "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2554] FileWatcher: Sending update: MODIFY -> "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2554] FileWatcher: Dispatched events batch and reset the events cache
DEBU[2554] SyncStorage: Received update {{MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}} 0xc0004c7aa0} true
DEBU[2554] SyncStorage: Received update {{MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}} 0xc0004c7aa0} true
DEBU[2554] FileWatcher: Registered inotify events [notify.InCloseWrite: "/etc/firecracker/manifests/smoke-test.yml"] for path "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2554] SyncStorage: Sent update: {MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}}
DEBU[2554] SyncStorage: Sent update: {MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}}
DEBU[2554] FileWatcher: Skipping suspended event MODIFY for path: "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2555] FileWatcher: Sending update: MODIFY -> "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2555] FileWatcher: Dispatched events batch and reset the events cache
DEBU[2555] SyncStorage: Received update {{MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}} 0xc0004c7aa0} true
DEBU[2555] SyncStorage: Sent update: {MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha3,}}
DEBU[2555] SyncStorage: Received update {{MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}} 0xc0004c7aa0} true
DEBU[2555] SyncStorage: Sent update: {MODIFY &TypeMeta{Kind:VM,APIVersion:ignite.weave.works/v1alpha4,}}
DEBU[2555] FileWatcher: Skipping suspended event MODIFY for path: "/etc/firecracker/manifests/smoke-test.yml"
DEBU[2556] FileWatcher: Registered inotify events [notify.InCloseWrite: "/etc/firecracker/manifests/smoke-test.yml"] for path "/etc/firecracker/manifests/smoke-test.yml"
etc.
Expand Down
2 changes: 1 addition & 1 deletion docs/my-vm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ignite.weave.works/v1alpha3
apiVersion: ignite.weave.works/v1alpha4
kind: VM
metadata:
name: my-vm
Expand Down