From aff530cc7ea6c2ab9cb66c9c45f4ba4ed854bb9d Mon Sep 17 00:00:00 2001 From: xyhhx Date: Thu, 12 Dec 2024 11:58:32 -0500 Subject: [PATCH] feat(chise-operator.io): add chisel-operator (#437) --- chisel-operator.io/exitnode_v1.json | 81 ++++++++++++ .../exitnodeprovisioner_v1.json | 116 ++++++++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 chisel-operator.io/exitnode_v1.json create mode 100644 chisel-operator.io/exitnodeprovisioner_v1.json diff --git a/chisel-operator.io/exitnode_v1.json b/chisel-operator.io/exitnode_v1.json new file mode 100644 index 00000000..0ebacb72 --- /dev/null +++ b/chisel-operator.io/exitnode_v1.json @@ -0,0 +1,81 @@ +{ + "description": "Auto-generated derived type for ExitNodeSpec via `CustomResource`", + "properties": { + "spec": { + "description": "ExitNode is a custom resource that represents a Chisel exit node. It will be used as the reverse proxy for all services in the cluster.", + "properties": { + "auth": { + "description": "Optional authentication secret name to connect to the control plane", + "nullable": true, + "type": "string" + }, + "chisel_image": { + "description": "Optional value for the chisel client image used to connect to the chisel server If not provided, jpillora/chisel:latest is used", + "nullable": true, + "type": "string" + }, + "default_route": { + "default": false, + "description": "Optional boolean value for whether to make the exit node the default route for the cluster If true, the exit node will be the default route for the cluster default value is false", + "type": "boolean" + }, + "external_host": { + "description": "Optional real external hostname/IP of exit node If not provided, the host field will be used", + "nullable": true, + "type": "string" + }, + "fingerprint": { + "description": "Optional but highly recommended fingerprint to perform host-key validation against the server's public key", + "nullable": true, + "type": "string" + }, + "host": { + "description": "Hostname or IP address of the chisel server", + "type": "string" + }, + "port": { + "description": "Control plane port of the chisel server", + "format": "uint16", + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "host", + "port" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "nullable": true, + "properties": { + "id": { + "nullable": true, + "type": "string" + }, + "ip": { + "type": "string" + }, + "name": { + "type": "string" + }, + "provider": { + "type": "string" + } + }, + "required": [ + "ip", + "name", + "provider" + ], + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "title": "ExitNode", + "type": "object" +} diff --git a/chisel-operator.io/exitnodeprovisioner_v1.json b/chisel-operator.io/exitnodeprovisioner_v1.json new file mode 100644 index 00000000..2a3018ff --- /dev/null +++ b/chisel-operator.io/exitnodeprovisioner_v1.json @@ -0,0 +1,116 @@ +{ + "description": "Auto-generated derived type for ExitNodeProvisionerSpec via `CustomResource`", + "properties": { + "spec": { + "description": "ExitNodeProvisioner is a custom resource that represents a Chisel exit node provisioner on a cloud provider.", + "oneOf": [ + { + "required": [ + "DigitalOcean" + ] + }, + { + "required": [ + "Linode" + ] + }, + { + "required": [ + "AWS" + ] + } + ], + "properties": { + "AWS": { + "properties": { + "auth": { + "description": "Reference to a secret containing the AWS access key ID and secret access key, under the `access_key_id` and `secret_access_key` secret keys", + "type": "string" + }, + "region": { + "description": "Region ID for the AWS region to provision the exit node in See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html", + "type": "string" + }, + "security_group": { + "description": "Security group name to use for the exit node, uses the default security group if not specified", + "nullable": true, + "type": "string" + }, + "size": { + "default": "t2.micro", + "description": "Size for the EC2 instance See https://aws.amazon.com/ec2/instance-types/", + "type": "string" + } + }, + "required": [ + "auth", + "region" + ], + "type": "object", + "additionalProperties": false + }, + "DigitalOcean": { + "properties": { + "auth": { + "description": "Reference to a secret containing the DigitalOcean API token, under the `DIGITALOCEAN_TOKEN` secret key", + "type": "string" + }, + "region": { + "default": "", + "description": "Region ID of the DigitalOcean datacenter to provision the exit node in If empty, DigitalOcean will randomly select a region for you, which might not be what you want See https://slugs.do-api.dev/", + "type": "string" + }, + "size": { + "default": "s-1vcpu-1gb", + "description": "Size for the DigitalOcean droplet See https://slugs.do-api.dev/", + "type": "string" + }, + "ssh_fingerprints": { + "default": [], + "description": "SSH key fingerprints to add to the exit node", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "auth" + ], + "type": "object", + "additionalProperties": false + }, + "Linode": { + "properties": { + "auth": { + "description": "Name of the secret containing the Linode API token, under the `LINODE_TOKEN` secret key", + "type": "string" + }, + "region": { + "description": "Region ID of the Linode datacenter to provision the exit node in See https://api.linode.com/v4/regions", + "type": "string" + }, + "size": { + "default": "g6-nanode-1", + "description": "Size for the Linode instance See https://api.linode.com/v4/linode/", + "type": "string" + } + }, + "required": [ + "auth", + "region" + ], + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "title": "ExitNodeProvisioner", + "type": "object" +}