Skip to content

Commit

Permalink
feat: Update deployment CRDs to include new ExitNodeProvisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Nov 28, 2023
1 parent b29fba1 commit c0b6cd2
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
64 changes: 64 additions & 0 deletions deploy/crd/exit-node-provisioner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: exitnodeprovisioners.chisel-operator.io
spec:
group: chisel-operator.io
names:
categories: []
kind: ExitNodeProvisioner
plural: exitnodeprovisioners
shortNames: []
singular: exitnodeprovisioner
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
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:
type: string
required:
- auth
type: object
DigitalOcean:
properties:
auth:
description: Reference to a secret containing the DigitalOcean API token, under the token key
type: string
region:
description: Region ID of the DigitalOcean datacenter to provision the exit node in
type: string
required:
- auth
- region
type: object
Linode:
properties:
auth:
type: string
required:
- auth
type: object
type: object
required:
- spec
title: ExitNodeProvisioner
type: object
served: true
storage: true
subresources: {}
2 changes: 1 addition & 1 deletion deploy/crd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resources:
- exit-node.yaml

- exit-node-provisioner.yaml
5 changes: 3 additions & 2 deletions src/crdgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ mod cloud;
mod ops;

fn main() {
print!("{}", serde_yaml::to_string(&ops::ExitNode::crd()).unwrap());
print!(
println!("{}", serde_yaml::to_string(&ops::ExitNode::crd()).unwrap());
println!("---");
println!(
"{}",
serde_yaml::to_string(&ops::ExitNodeProvisioner::crd()).unwrap()
)
Expand Down

0 comments on commit c0b6cd2

Please sign in to comment.