-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10e6e43
commit c1fb303
Showing
10 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# this file contains an invalid config api version for testing | ||
kind: Config | ||
apiVersion: not-valid | ||
# this file contains an invalid config kind for testing | ||
kind: not-valid | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this file contains an invalid config api version for testing | ||
kind: Node | ||
apiVersion: not-valid |
2 changes: 2 additions & 0 deletions
2
pkg/cluster/config/encoding/testdata/invalid-no-apiversion.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# this file contains an invalid config without apiVersion for testing | ||
kind: Node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# this file contains an invalid config without kind for testing | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 |
6 changes: 6 additions & 0 deletions
6
pkg/cluster/config/encoding/testdata/v1alpha1/invalid-minimal-two-nodes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# invalid v1alpha1 config file with two documents | ||
kind: Config | ||
apiVersion: kind.sigs.k8s.io/v1alpha1 | ||
--- | ||
kind: Config | ||
apiVersion: kind.sigs.k8s.io/v1alpha1 |
6 changes: 6 additions & 0 deletions
6
pkg/cluster/config/encoding/testdata/v1alpha2/invalid-minimal-duplicated-names.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# invalid config file with nodes with the same name | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
--- | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 |
18 changes: 18 additions & 0 deletions
18
pkg/cluster/config/encoding/testdata/v1alpha2/valid-full-ha.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# technically valid, config file with a full ha cluster | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
role: control-plane | ||
replicas: 3 | ||
--- | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
role: worker | ||
replicas: 2 | ||
--- | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
role: external-etcd | ||
--- | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
role: external-load-balancer |
7 changes: 7 additions & 0 deletions
7
pkg/cluster/config/encoding/testdata/v1alpha2/valid-minimal-two-nodes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# technically valid, minimal config file with two nodes | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
--- | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
role: worker |
2 changes: 1 addition & 1 deletion
2
pkg/cluster/config/encoding/testdata/v1alpha2/valid-minimal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# technically valid, minimal config file | ||
kind: Config | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 |
2 changes: 1 addition & 1 deletion
2
pkg/cluster/config/encoding/testdata/v1alpha2/valid-with-lifecyclehooks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
kind: Config | ||
kind: Node | ||
apiVersion: kind.sigs.k8s.io/v1alpha2 | ||
nodeLifecycle: | ||
preKubeadm: | ||
|