-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Config file compatible with Kustomize
Move name to metadata.name in Simple kind
- Loading branch information
Showing
13 changed files
with
205 additions
and
68 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
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
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
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,6 +1,7 @@ | ||
apiVersion: k3d.io/v1alpha4 | ||
kind: Simple | ||
name: test | ||
metadata: | ||
name: test | ||
servers: 1 | ||
agents: 1 | ||
registries: | ||
|
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,6 +1,7 @@ | ||
apiVersion: k3d.io/v1alpha4 | ||
kind: Simple | ||
name: test | ||
metadata: | ||
name: test | ||
servers: 1 | ||
agents: 2 | ||
kubeAPI: | ||
|
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,5 @@ | ||
apiVersion: k3d.io/v1alpha4 | ||
kind: Simple | ||
name: supertest | ||
metadata: | ||
name: supertest | ||
agents: 8 |
3 changes: 2 additions & 1 deletion
3
pkg/config/test_assets/config_test_simple_invalid_servers.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,6 +1,7 @@ | ||
apiVersion: k3d.io/v1alpha4 | ||
kind: Simple | ||
name: 1234 | ||
metadata: | ||
name: 1234 | ||
servers: 1 | ||
agents: 2 | ||
kubeAPI: | ||
|
56 changes: 56 additions & 0 deletions
56
pkg/config/test_assets/config_test_simple_migration_v1alpha4.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,56 @@ | ||
apiVersion: k3d.io/v1alpha4 | ||
kind: Simple | ||
metadata: | ||
name: test | ||
servers: 3 | ||
agents: 2 | ||
kubeAPI: | ||
hostIP: "0.0.0.0" | ||
hostPort: "6446" | ||
#image: rancher/k3s:latest | ||
volumes: | ||
- volume: /my/path:/some/path | ||
nodeFilters: | ||
- all | ||
ports: | ||
- port: 80:80 | ||
nodeFilters: | ||
- loadbalancer | ||
- port: 0.0.0.0:443:443 | ||
nodeFilters: | ||
- loadbalancer | ||
env: | ||
- envVar: bar=baz,bob | ||
nodeFilters: | ||
- all | ||
registries: | ||
create: | ||
name: k3d-test-registry | ||
host: "0.0.0.0" | ||
hostPort: random | ||
config: | | ||
mirrors: | ||
"my.company.registry": | ||
endpoint: | ||
- http://my.company.registry:5000 | ||
options: | ||
k3d: | ||
wait: true | ||
timeout: "360s" # should be pretty high for multi-server clusters to allow for a proper startup routine | ||
disableLoadbalancer: false | ||
disableImageVolume: false | ||
k3s: | ||
extraArgs: | ||
- arg: --tls-san=127.0.0.1 | ||
nodeFilters: | ||
- server:* | ||
kubeconfig: | ||
updateDefaultKubeconfig: true | ||
switchCurrentContext: true | ||
runtime: | ||
labels: | ||
- label: foo=bar | ||
nodeFilters: | ||
- server:0 | ||
- loadbalancer |
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
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
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
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
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