crossplane-provider-ionoscloud

module
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0

README

CI CI Daily Gitter Quality Gate Status Bugs Maintainability Rating Reliability Rating Security Rating Vulnerabilities Release Release Date Go

Alt text

Crossplane Provider IONOS Cloud


Overview

This crossplane-provider-ionoscloud repository is the Crossplane infrastructure provider for IONOS Cloud. The provider that is built from the source code from this repository can be installed into a Crossplane control plane and adds the following new functionality:

  • Custom Resource Definitions (CRDs) that model IONOS Cloud infrastructure and services (e.g. Database As a Service Postgres, Compute Engine, Kubernetes, etc.)
  • Controllers to provision these resources in IONOS Cloud based on the users desired state captured in CRDs they create
  • Implementations of Crossplane portable resource abstractions, enabling IONOS Cloud resources to fulfill a user's general need for cloud services

Getting Started and Documentation

For getting started with Crossplane Provider IONOS Cloud, check out this step-by-step example.

Set up Crossplane Provider IONOS Cloud

In order to set up Crossplane Provider IONOS Cloud, see details in here.

Authentication on IONOS Cloud

Crossplane Provider IONOS Cloud uses ProviderConfig in order to setup credentials via secrets. You can use environments variables when creating the ProviderConfig resource.

Environment Variable Description
IONOS_USERNAME Specify the username used to login, to authenticate against the IONOS Cloud API
IONOS_PASSWORD Specify the password used to login, to authenticate against the IONOS Cloud API
IONOS_TOKEN Specify the token used to login, if a token is being used instead of username and password
IONOS_API_URL Specify the API URL. It will overwrite the API endpoint default value api.ionos.com
IONOS_LOG_LEVEL Specify the Log Level used to log messages. Possible values: Off, Debug, Trace
IONOS_PINNED_CERT Specify the SHA-256 public fingerprint here, enables certificate pinning

⚠️ Note: We recommend you only set this TRACE for debugging purposes. Disable it in your production environments because it can log sensitive data.
It logs the full request and response without encryption, even for an HTTPS call.
Verbose request and response logging can also significantly impact your application's performance.

Certificate pinning:

You can enable certificate pinning if you want to bypass the normal certificate checking procedure, by doing the following:

You can get the sha256 fingerprint most easily from the browser by inspecting the certificate test.

Apply the following crds. They will install the latest ionos provider with the pinned certificate enabled.

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-ionos
spec:
  package: ghcr.io/ionos-cloud/crossplane-provider-ionoscloud:latest
  runtimeConfigRef:
    name: enable-pinning
---
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
  name: enable-pinning
spec:
  deploymentTemplate:
    spec:
      selector: {}
      template:
        spec:
          containers:
            - name: package-runtime
              env:
                - name: IONOS_PINNED_CERT
                  value: "pinned_cert_here"

More details about ProviderConfig and authentication here.

Provision Resources on IONOS Cloud

Crossplane Provider IONOS Cloud Managed Resources list is available here.

Build images

For building Docker images, use:

make build

A version can be set via $VERSION variable. By running make build VERSION=v0.x.x, the specified version will be added into the package/crossplane.yaml.

For tagging Docker images, use:

make docker.tag VERSION=v0.x.x

Usage

To run a K8s Cluster and install Crossplane:

make dev

To run e2e tests:

make e2e

To run linters on the code before opening a PR:

make reviewable

To clean up the K8s Cluster:

make dev-clean

To list all available options:

make help

Testing

Crossplane Provider IONOS Cloud has end-to-end integration tests for the resources supported.

For running end-to-end integration tests locally, use:

make e2e

If the images have a specific version, other than latest, this can be set via make e2e VERSION=v0.x.x.

Daily workflows with all end-to-end integration tests are running using GitHub Actions. You can check their status here.

Releases

Releases can be made on Crossplane Provider IONOS Cloud via tags or manual action of the CD workflow. The CD workflow will test and release the images. It will release images for controller and provider, with 2 tags each: latest and the corresponding release tag.

Contributing

crossplane-provider-ionoscloud is a community driven project and we welcome contributions. See the Crossplane Contributing guidelines to get started.

Adding New Resource

New resources can be added by defining the required types in apis and the controllers internal/controller/.

If you are running crossplane for the first time, run:

make submodules

To generate the CRDs YAML files run:

make generate

Report a Bug

For filing bugs, suggesting improvements, or requesting new features, please open an issue.

Code of Conduct

crossplane-provider-ionoscloud adheres to the same Code of Conduct as the core Crossplane project.

License

crossplane-provider-ionoscloud is under the Apache 2.0 License.

Directories

Path Synopsis
Package apis contains Kubernetes API for the Template provider.
Package apis contains Kubernetes API for the Template provider.
alb
Package alb contains group Sample API versions
Package alb contains group Sample API versions
alb/v1alpha1
Package v1alpha1 contains the v1alpha1 group ApplicationLoadBalancer resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group ApplicationLoadBalancer resources of the IONOS Cloud provider.
backup
Package backup contains group Sample API versions
Package backup contains group Sample API versions
backup/v1alpha1
Package v1alpha1 contains the v1alpha1 group Backup resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group Backup resources of the IONOS Cloud provider.
compute
Package compute contains group compute API versions
Package compute contains group compute API versions
compute/v1alpha1
Package v1alpha1 contains the v1alpha1 group Sample resources of the ionoscloud provider.
Package v1alpha1 contains the v1alpha1 group Sample resources of the ionoscloud provider.
dataplatform
Package dataplatform contains group Sample API versions
Package dataplatform contains group Sample API versions
dataplatform/v1alpha1
Package v1alpha1 contains the v1alpha1 group DataplatformCluster resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group DataplatformCluster resources of the IONOS Cloud provider.
dbaas
Package dbaas contains group Sample API versions
Package dbaas contains group Sample API versions
dbaas/mongo/v1alpha1
Package v1alpha1 contains the v1alpha1 group DBaaS Mongo resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group DBaaS Mongo resources of the IONOS Cloud provider.
dbaas/postgres/v1alpha1
Package v1alpha1 contains the v1alpha1 group DBaaS Postgres resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group DBaaS Postgres resources of the IONOS Cloud provider.
k8s
Package k8s contains group Sample API versions
Package k8s contains group Sample API versions
k8s/v1alpha1
Package v1alpha1 contains the v1alpha1 group K8s resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group K8s resources of the IONOS Cloud provider.
nlb
Package nlb contains group Sample API versions
Package nlb contains group Sample API versions
nlb/v1alpha1
Package v1alpha1 contains the v1alpha1 group NetworkLoadBalancer resources of the IONOS Cloud provider.
Package v1alpha1 contains the v1alpha1 group NetworkLoadBalancer resources of the IONOS Cloud provider.
v1alpha1
Package v1alpha1 contains the core resources of the Template provider.
Package v1alpha1 contains the core resources of the Template provider.
cmd
internal
mock/clients
Package clients define configuration for generating mocks of existing clients.
Package clients define configuration for generating mocks of existing clients.
mock/clients/compute/datacenter
Package datacenter is a generated GoMock package.
Package datacenter is a generated GoMock package.
mock/clients/compute/ipblock
Package ipblock is a generated GoMock package.
Package ipblock is a generated GoMock package.
mock/clients/compute/user
Package user is a generated GoMock package.
Package user is a generated GoMock package.
mock/clients/flowlog/networkloadbalancer
Package networkloadbalancer is a generated GoMock package.
Package networkloadbalancer is a generated GoMock package.
mock/clients/k8s/k8scluster
Package k8scluster is a generated GoMock package.
Package k8scluster is a generated GoMock package.
mock/clients/k8s/k8snodepool
Package k8snodepool is a generated GoMock package.
Package k8snodepool is a generated GoMock package.
mock/clients/nlb/forwardingrule
Package forwardingrule is a generated GoMock package.
Package forwardingrule is a generated GoMock package.
mock/clients/nlb/networkloadbalancer
Package networkloadbalancer is a generated GoMock package.
Package networkloadbalancer is a generated GoMock package.
version
Package version contains the version of crossplane-provider-ionoscloud
Package version contains the version of crossplane-provider-ionoscloud
package
pkg
tools
doc
nolint: gosec
nolint: gosec

Jump to

Keyboard shortcuts

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