provider-exoscale

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause Imports: 22 Imported by: 0

README

provider-exoscale

Build Go version Version Maintainability Coverage GitHub downloads

Crossplane provider for managing resources on exoscale.com.

Documentation: https://vshn.github.io/provider-exoscale/

Local Development

Requirements
  • docker
  • go
  • helm
  • kubectl
  • yq
  • sed (or gsed for Mac)

Some other requirements (e.g. kind) will be compiled on-the-fly and put in the local cache dir .kind as needed.

Common make targets
  • make build to build the binary and docker image
  • make generate to (re)generate additional code artifacts
  • make test run test suite
  • make local-install to install the operator in local cluster
  • make install-samples to run the provider in local cluster and apply sample manifests
  • make run-operator to run the code in operator mode against your current kubecontext

See all targets with make help

QuickStart Demonstration
  1. Get an API token exoscale.com
  2. export EXOSCALE_API_KEY=<the-key>
  3. export EXOSCALE_API_SECRET=<the-secret>
  4. make local-install
Kubernetes Webhook Troubleshooting

The provider comes with mutating and validation admission webhook server.

To test and troubleshoot the webhooks on the cluster, simply apply your changes with kubectl.

  1. To debug the webhook in an IDE, we need to generate certificates:

    make webhook-cert
    
  2. Start the operator in your IDE with WEBHOOK_TLS_CERT_DIR environment set to .kind.

  3. Send an admission request sample of the spec:

    # send an admission request
    curl -k -v -H "Content-Type: application/json" --data @samples/admission.k8s.io_admissionreview.json https://localhost:9443/validate-exoscale-crossplane-io-v1-iamkey
    
Crossplane Provider Mechanics

For detailed information on how Crossplane Provider works from a development perspective check provider mechanics documentation page.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package apis contains Kubernetes API for the Template provider.
Package apis contains Kubernetes API for the Template provider.
exoscale/v1
Package v1 contains the v1 group exoscale.crossplane.io resources of provider-exoscale.
Package v1 contains the v1 group exoscale.crossplane.io resources of provider-exoscale.
provider/v1
Package v1 contains the core resources of the provider-exoscale.
Package v1 contains the core resources of the provider-exoscale.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL