-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
20 changed files
with
76 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ c8x.exe | |
c8x | ||
*.tsx | ||
.idea/ | ||
k8x | ||
c8x |
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
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,4 +1,4 @@ | ||
module github.com/kubernetix/k8x/v1 | ||
module github.com/kubernetix/c8x | ||
|
||
go 1.22.0 | ||
|
||
|
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
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,39 +1 @@ | ||
# k8x charts | ||
|
||
## How it looks? | ||
[whoami chart](/whoami/chart.ts). | ||
```ts | ||
/// <reference types="@kubernetix/types" /> | ||
|
||
import MyIngress, { MyIngressProps } from "./components/ingress"; | ||
import Deployment, { MyDeploymentProps } from "./components/deployment"; | ||
import Service from "./components/service"; | ||
|
||
const values: { | ||
namespace: string; | ||
ingress: MyIngressProps; | ||
deployment: MyDeploymentProps; | ||
} = { | ||
namespace: $env.get<string>("WHOAMI_NAMESPACE") ?? "default", | ||
deployment: { | ||
replicas: $env.get<number>("WHOAMI_REPLICAS") ?? 1, | ||
}, | ||
ingress: { | ||
domain: $env.get<string>("WHOAMI_DOMAIN") ?? "example.com", | ||
}, | ||
}; | ||
|
||
export default (): Chart => ({ | ||
namespace: { | ||
kind: "Namespace", | ||
apiVersion: "v1", | ||
metadata: { name: values.namespace }, | ||
}, | ||
components: [ | ||
MyIngress(values.ingress), | ||
Deployment(values.deployment), | ||
Service(), | ||
], | ||
}); | ||
|
||
``` | ||
# c8x charts |
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,5 +1,5 @@ | ||
# General config (default, dev) | ||
export K8X_KUBECONFIG=~/.kube/config | ||
export K8X_WHOAMI_NAMESPACE=whoami | ||
export K8X_WHOAMI_REPLICAS=1 | ||
export K8X_WHOAMI_DOMAIN=whoami.pfusch.dev | ||
export C8X_KUBECONFIG=~/.kube/config | ||
export C8X_WHOAMI_NAMESPACE=whoami | ||
export C8X_WHOAMI_REPLICAS=1 | ||
export C8X_WHOAMI_DOMAIN=whoami.pfusch.dev |
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,7 +1,7 @@ | ||
# K8X whoami chart | ||
# c8x whoami chart | ||
|
||
[![Deploy whoami chart](https://github.com/kubernetix/charts/actions/workflows/whoami.yml/badge.svg)](https://github.com/kubernetix/charts/actions/workflows/whoami.yml) | ||
|
||
This chart is an example chart to demonstrate the features of k8x | ||
This chart is an example chart to demonstrate the features of c8x | ||
|
||
`source .env.example && k8x render chart` | ||
`source .env.example && c8x render chart` |
Oops, something went wrong.