v2beta1

package
v0.0.0-...-7754ea6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package v2beta1 contains API Schema definitions for the consul.hashicorp.com v2beta1 API group +kubebuilder:object:generate=true +groupName=auth.consul.hashicorp.com

Index

Constants

This section is empty.

Variables

View Source
var (

	// AuthGroup is a collection of auth resources.
	AuthGroup = "auth.consul.hashicorp.com"

	// AuthGroupVersion is group version used to register these objects.
	AuthGroupVersion = schema.GroupVersion{Group: AuthGroup, Version: "v2beta1"}

	// AuthSchemeBuilder is used to add go types to the GroupVersionKind scheme.
	AuthSchemeBuilder = &scheme.Builder{GroupVersion: AuthGroupVersion}

	// AddAuthToScheme adds the types in this group-version to the given scheme.
	AddAuthToScheme = AuthSchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Condition

type Condition struct {
	// Type of condition.
	// +required
	Type ConditionType `json:"type" description:"type of status condition"`

	// Status of the condition, one of True, False, Unknown.
	// +required
	Status corev1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"`

	// LastTransitionTime is the last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transitioned from one status to another"`

	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"`

	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"`
}

Conditions define a readiness condition for a Consul resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties +k8s:deepcopy-gen=true +k8s:openapi-gen=true

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

func (*Condition) IsFalse

func (c *Condition) IsFalse() bool

IsFalse is true if the condition is False.

func (*Condition) IsTrue

func (c *Condition) IsTrue() bool

IsTrue is true if the condition is True.

func (*Condition) IsUnknown

func (c *Condition) IsUnknown() bool

IsUnknown is true if the condition is Unknown.

type ConditionType

type ConditionType string

ConditionType is a camel-cased condition type.

const (
	// ConditionSynced specifies that the resource has been synced with Consul.
	ConditionSynced ConditionType = "Synced"
)

type Conditions

type Conditions []Condition

Conditions is the schema for the conditions portion of the payload.

func (Conditions) DeepCopy

func (in Conditions) DeepCopy() Conditions

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

func (Conditions) DeepCopyInto

func (in Conditions) DeepCopyInto(out *Conditions)

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

type Status

type Status struct {
	// Conditions indicate the latest available observations of a resource's current state.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// LastSyncedTime is the last time the resource successfully synced with Consul.
	// +optional
	LastSyncedTime *metav1.Time `json:"lastSyncedTime,omitempty" description:"last time the condition transitioned from one status to another"`
}

+k8s:deepcopy-gen=true +k8s:openapi-gen=true

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

func (*Status) GetCondition

func (s *Status) GetCondition(t ConditionType) *Condition

type TrafficPermissions

type TrafficPermissions struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   pbauth.TrafficPermissions `json:"spec,omitempty"`
	Status `json:"status,omitempty"`
}

TrafficPermissions is the Schema for the traffic-permissions API +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul" +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource" +kubebuilder:resource:shortName="traffic-permissions"

func (*TrafficPermissions) AddFinalizer

func (in *TrafficPermissions) AddFinalizer(f string)

func (*TrafficPermissions) DeepCopy

func (in *TrafficPermissions) DeepCopy() *TrafficPermissions

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

func (*TrafficPermissions) DeepCopyInto

func (in *TrafficPermissions) DeepCopyInto(out *TrafficPermissions)

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

func (*TrafficPermissions) DeepCopyObject

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

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

func (*TrafficPermissions) DefaultNamespaceFields

func (in *TrafficPermissions) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)

DefaultNamespaceFields is required as part of the common.MeshConfig interface.

func (*TrafficPermissions) Finalizers

func (in *TrafficPermissions) Finalizers() []string

func (*TrafficPermissions) KubeKind

func (in *TrafficPermissions) KubeKind() string

func (*TrafficPermissions) KubernetesName

func (in *TrafficPermissions) KubernetesName() string

func (*TrafficPermissions) MatchesConsul

func (in *TrafficPermissions) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool

func (*TrafficPermissions) RemoveFinalizer

func (in *TrafficPermissions) RemoveFinalizer(f string)

func (*TrafficPermissions) Resource

func (in *TrafficPermissions) Resource(namespace, partition string) *pbresource.Resource

func (*TrafficPermissions) ResourceID

func (in *TrafficPermissions) ResourceID(namespace, partition string) *pbresource.ID

func (*TrafficPermissions) SetLastSyncedTime

func (in *TrafficPermissions) SetLastSyncedTime(time *metav1.Time)

func (*TrafficPermissions) SetSyncedCondition

func (in *TrafficPermissions) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)

func (*TrafficPermissions) SyncedCondition

func (in *TrafficPermissions) SyncedCondition() (status corev1.ConditionStatus, reason, message string)

func (*TrafficPermissions) SyncedConditionStatus

func (in *TrafficPermissions) SyncedConditionStatus() corev1.ConditionStatus

func (*TrafficPermissions) Validate

func (in *TrafficPermissions) Validate(tenancy common.ConsulTenancyConfig) error

type TrafficPermissionsList

type TrafficPermissionsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []*TrafficPermissions `json:"items"`
}

TrafficPermissionsList contains a list of TrafficPermissions.

func (*TrafficPermissionsList) DeepCopy

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

func (*TrafficPermissionsList) DeepCopyInto

func (in *TrafficPermissionsList) DeepCopyInto(out *TrafficPermissionsList)

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

func (*TrafficPermissionsList) DeepCopyObject

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

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

type TrafficPermissionsWebhook

type TrafficPermissionsWebhook struct {
	Logger logr.Logger

	// ConsulTenancyConfig contains the injector's namespace and partition configuration.
	ConsulTenancyConfig common.ConsulTenancyConfig

	client.Client
	// contains filtered or unexported fields
}

func (*TrafficPermissionsWebhook) Handle

func (*TrafficPermissionsWebhook) InjectDecoder

func (v *TrafficPermissionsWebhook) InjectDecoder(d *admission.Decoder) error

func (*TrafficPermissionsWebhook) List

Jump to

Keyboard shortcuts

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