v1alpha1

package
v0.0.0-...-92ac060 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 for the DaytonaBinding +k8s:deepcopy-gen=package +groupName=binding.app

Index

Constants

View Source
const (
	// DaytonaBindingConditionReady is set when the binding has been applied to the subjects.
	DaytonaBindingConditionReady = apis.ConditionReady
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: apis.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type DaytonaBinding

type DaytonaBinding struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the DaytonaBinding (from the client).
	// +optional
	Spec DaytonaBindingSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the DaytonaBinding (from the controller).
	// +optional
	Status DaytonaBindingStatus `json:"status,omitempty"`
}

DaytonaBinding is a Knative-style Binding for injecting Github credentials compatible with ./pkg/github into any Kubernetes resource with a Pod Spec.

func (*DaytonaBinding) DeepCopy

func (in *DaytonaBinding) DeepCopy() *DaytonaBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaytonaBinding.

func (*DaytonaBinding) DeepCopyInto

func (in *DaytonaBinding) DeepCopyInto(out *DaytonaBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DaytonaBinding) DeepCopyObject

func (in *DaytonaBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*DaytonaBinding) Do

func (db *DaytonaBinding) Do(ctx context.Context, pod *duckv1.WithPodable)

Do implements the logic of injecting all of the Daytona content into the Pod.

func (*DaytonaBinding) GetBindingStatus

func (db *DaytonaBinding) GetBindingStatus() duck.BindableStatus

GetBindingStatus implements Bindable

func (*DaytonaBinding) GetGroupVersionKind

func (db *DaytonaBinding) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*DaytonaBinding) GetSubject

func (db *DaytonaBinding) GetSubject() tracker.Reference

GetSubject implements Bindable

func (*DaytonaBinding) SetDefaults

func (db *DaytonaBinding) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*DaytonaBinding) Undo

func (db *DaytonaBinding) Undo(ctx context.Context, pod *duckv1.WithPodable)

Undo implements the logic of removing all of the Daytona content from the Pod.

func (*DaytonaBinding) Validate

func (db *DaytonaBinding) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type DaytonaBindingList

type DaytonaBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []DaytonaBinding `json:"items"`
}

DaytonaBindingList is a list of DaytonaBinding resources

func (*DaytonaBindingList) DeepCopy

func (in *DaytonaBindingList) DeepCopy() *DaytonaBindingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaytonaBindingList.

func (*DaytonaBindingList) DeepCopyInto

func (in *DaytonaBindingList) DeepCopyInto(out *DaytonaBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DaytonaBindingList) DeepCopyObject

func (in *DaytonaBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DaytonaBindingSpec

type DaytonaBindingSpec struct {
	// Subject holds a reference to the "pod speccable" Kubernetes resource which will
	// be bound with Github secret data.
	Subject tracker.Reference `json:"subject"`

	// The location of the Daytona image
	Image string `json:"image"`

	Auth string `json:"auth"`

	AuthMount string `json:"authMount"`

	SecretEnv string `json:"secretEnv"`

	TokenPath string `json:"tokenPath"`

	VaultAuthRole string `json:"vaultAuthRole"`

	SecretPath string `json:"secretPath"`

	VaultSecretsApp string `json:"vaultSecretsApp"`

	VaultSecretsGlobal string `json:"vaultSecretsGlobal"`
}

DaytonaBindingSpec holds the desired state of the DaytonaBinding (from the client).

func (*DaytonaBindingSpec) DeepCopy

func (in *DaytonaBindingSpec) DeepCopy() *DaytonaBindingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaytonaBindingSpec.

func (*DaytonaBindingSpec) DeepCopyInto

func (in *DaytonaBindingSpec) DeepCopyInto(out *DaytonaBindingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DaytonaBindingSpec) Validate

func (dbs *DaytonaBindingSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type DaytonaBindingStatus

type DaytonaBindingStatus struct {
	duckv1beta1.Status `json:",inline"`
}

DaytonaBindingStatus communicates the observed state of the DaytonaBinding (from the controller).

func (*DaytonaBindingStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaytonaBindingStatus.

func (*DaytonaBindingStatus) DeepCopyInto

func (in *DaytonaBindingStatus) DeepCopyInto(out *DaytonaBindingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DaytonaBindingStatus) InitializeConditions

func (dbs *DaytonaBindingStatus) InitializeConditions()

InitializeConditions initializes Ready and subconditions to Unknown.

func (*DaytonaBindingStatus) MarkBindingAvailable

func (dbs *DaytonaBindingStatus) MarkBindingAvailable()

MarkBindingAvailable marks when the DaytonaBinding CRD is Ready.

func (*DaytonaBindingStatus) MarkBindingUnavailable

func (dbs *DaytonaBindingStatus) MarkBindingUnavailable(reason, message string)

MarkBindingUnavailable marks when the DaytonaBinding CRD is not Ready with a reason.

func (*DaytonaBindingStatus) SetObservedGeneration

func (dbs *DaytonaBindingStatus) SetObservedGeneration(gen int64)

SetObservedGeneration implements BindableStatus

Jump to

Keyboard shortcuts

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