bindings

module
v0.0.0-...-bec6c07 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0

README

Bindings

ServiceBinding

The ServiceBinding and ProvisionedService resources have moved to https://github.com/vmware-labs/service-bindings/

ImageBinding

The ImageBinding resource binds an Imageable resource to a resources that embeds a PodSpec.

apiVersion: bindings.projectriff.io/v1alpha1
kind: ImageBinding
metadata:
  name: test-binding
spec:
  containerName: ""
  provider:
    apiVersion: ""
    kind: ""
    name: ""
  subject:
    apiVersion: ""
    kind: ""
    name: ""

The ImageBinding resource must be configured in the following way:

  • containerName: name of container within the subject's pod spec to update with image from the provider
  • provider: a reference to an Imageable resource
    • apiVersion: resource API Version
    • kind: resource kind
    • name: resource name
  • subject: a reference to a PodSpecable resource
    • apiVersion: resource API Version
    • kind: resource kind
    • name: resource name

Imageable

An Imageable resource is any resource that provides an image by implementing the following partial schema

status:
  latestImage: <image-reference>

Examples of Imageable resources

  • kpack Image resource
  • riff Application resource
  • riff Function resource
  • riff Container resource

Install

The CRDs and controller can be installed into a cluster using ko

ko apply --strict -f config

Directories

Path Synopsis
cmd
pkg
apis/bindings/v1alpha1
+k8s:deepcopy-gen=package +groupName=bindings.projectriff.io
+k8s:deepcopy-gen=package +groupName=bindings.projectriff.io
apis/duck/v1alpha1
+k8s:deepcopy-gen=package +groupName=duck.projectriff.io
+k8s:deepcopy-gen=package +groupName=duck.projectriff.io
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/bindings/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/bindings/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/duck/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/duck/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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