provider-ceph

module
v0.0.47-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0

README

provider-ceph

provider-ceph is a minimal Crossplane Provider that reconciles Bucket CRs with multiple external S3 backends such as Ceph. It comes with the following features:

  • A ProviderConfig type that represents a single S3 backend (such as Ceph) and points to a credentials Secret for access to that backend.
  • A controller that reconciles ProviderConfig objects which represent S3 backends and stores client details for each backend.
  • A Bucket resource type that represents an S3 bucket.
  • A controller that observes Bucket objects and reconciles these objects with the S3 backends.

Getting Started

Install Crossplane in you Kubernetes cluster

Install the provider by using the Upbound CLI after changing the image tag to the latest release:

up ctp provider install xpkg.upbound.io/linode/provider-ceph:v0.0.46

Alternatively, you can use declarative installation:

cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: linode-provider-ceph
spec:
  package: xpkg.upbound.io/linode/provider-ceph:v0.0.46
EOF

See WEBHOOKS.md for instructions on how to enable webhooks.

Customizing provider deployment

Crossplane uses DeploymentRuntimeConfig object to apply customizations on the provider. Here are a few examples:

apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
  name: provider-ceph
spec:
  deploymentTemplate:
    spec:
      selector: {}
      template:
        spec:
          containers:
          - name: package-runtime
            args:
            - --kube-client-rate=80000
            - --reconcile-timeout=5s
            - --max-reconcile-rate=600
            - --reconcile-concurrency=160
            - --poll=30m
            - --sync=1h
            - --assume-role-arn=[ASSUME_ROLE_ARN]

You have to attach DeploymentRuntimeConfig to the Provider object.

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-ceph
spec:
  runtimeConfigRef:
    name: provider-ceph

Contact

Development

Refer to Crossplane's CONTRIBUTING.md file for more information on how the Crossplane community prefers to work. The guide-provider-development.md guide may also be of use. For more information about how to setup your development environment, please follow our DEVELOPMENT.md page.

Directories

Path Synopsis
Package apis contains Kubernetes API for the Ceph provider.
Package apis contains Kubernetes API for the Ceph provider.
provider-ceph
Package provider-ceph contains group provider-ceph API versions
Package provider-ceph contains group provider-ceph API versions
provider-ceph/v1alpha1
Package v1alpha1 contains the v1alpha1 group Sample resources of the Ceph provider.
Package v1alpha1 contains the v1alpha1 group Sample resources of the Ceph provider.
v1alpha1
Package v1alpha1 contains the core resources of the Ceph provider.
Package v1alpha1 contains the core resources of the Ceph provider.
cmd
internal
backendstore/backendstorefakes
Code generated by counterfeiter.
Code generated by counterfeiter.
otel
Package otel provides tools to interact with the opentelemetry golang sdk
Package otel provides tools to interact with the opentelemetry golang sdk
otel/traces
Package traces provides helper functions for tracing with OpenTelemetry SDK.
Package traces provides helper functions for tracing with OpenTelemetry SDK.
rgw
utils/randomstring
Package randomstring provides utilities for generating random strings.
Package randomstring provides utilities for generating random strings.
utils/randomstring/randomstringfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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