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

Commit

Permalink
Add v1alpha4 API
Browse files Browse the repository at this point in the history
This adds v1alpha4 API based on v1alpha3 API. This does not introduce
any change to the API yet. Changes in API for the upcoming features will
be added to v1alpha4 API.
  • Loading branch information
darkowlzz committed Apr 17, 2021
1 parent 8449376 commit 8cf1d80
Show file tree
Hide file tree
Showing 24 changed files with 3,633 additions and 63 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ IMAGE_TAG:=$(shell IGNITE_GIT_VERSION=$(GIT_VERSION) DOCKER_USER=$(DOCKER_USER)
IS_DIRTY:=$(shell echo ${GIT_VERSION} | grep -c dirty)
PROJECT = github.com/weaveworks/ignite
APIS_DIR = ${PROJECT}/pkg/apis
API_DIRS = ${APIS_DIR}/ignite,${APIS_DIR}/ignite/v1alpha2,${APIS_DIR}/ignite/v1alpha3,${APIS_DIR}/meta/v1alpha1
API_DIRS = ${APIS_DIR}/ignite,${APIS_DIR}/ignite/v1alpha2,${APIS_DIR}/ignite/v1alpha3,${APIS_DIR}/ignite/v1alpha4,${APIS_DIR}/meta/v1alpha1
CACHE_DIR = $(shell pwd)/bin/cache
# Specifies if this is a CI build or not; if it is, it will save the docker image created to bin/$(GOARCH)/image.tar
IS_CI_BUILD ?= 0
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/cmd/vmcmd/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewCmdPs(out io.Writer) *cobra.Command {
also list VMs that are not currently running.
Using the -f (--filter) flag, you can give conditions VMs should fullfilled to be displayed.
You can filter on all the underlying fields of the VM struct, see the documentation:
https://ignite.readthedocs.io/en/stable/api/ignite_v1alpha3#VM.
https://ignite.readthedocs.io/en/stable/api/ignite_v1alpha4#VM.
Different operators can be used:
- "=" and "==" for the equal
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/output/apply-vm-config-empty.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",
"metadata": {
"name": "",
"created": "2000-01-01T01:00:00Z"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/output/apply-vm-config-json.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",
"metadata": {
"name": "",
"created": "2000-01-01T01:00:00Z"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/output/apply-vm-config-yaml.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",
"metadata": {
"name": "",
"created": "2000-01-01T01:00:00Z"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/output/inspect-json.txt
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",
"metadata": {
"name": "someVM",
"uid": "1699b6ba255cde7f",
Expand Down
2 changes: 1 addition & 1 deletion cmd/ignite/run/testdata/output/inspect-yaml.txt
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:
created: "2000-01-01T01:00:00Z"
Expand Down
Loading

0 comments on commit 8cf1d80

Please sign in to comment.