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 ¶
- Variables
- type Condition
- type ConditionType
- type Conditions
- type Status
- type TrafficPermissions
- func (in *TrafficPermissions) AddFinalizer(f string)
- func (in *TrafficPermissions) DeepCopy() *TrafficPermissions
- func (in *TrafficPermissions) DeepCopyInto(out *TrafficPermissions)
- func (in *TrafficPermissions) DeepCopyObject() runtime.Object
- func (in *TrafficPermissions) DefaultNamespaceFields(tenancy common.ConsulTenancyConfig)
- func (in *TrafficPermissions) Finalizers() []string
- func (in *TrafficPermissions) KubeKind() string
- func (in *TrafficPermissions) KubernetesName() string
- func (in *TrafficPermissions) MatchesConsul(candidate *pbresource.Resource, namespace, partition string) bool
- func (in *TrafficPermissions) RemoveFinalizer(f string)
- func (in *TrafficPermissions) Resource(namespace, partition string) *pbresource.Resource
- func (in *TrafficPermissions) ResourceID(namespace, partition string) *pbresource.ID
- func (in *TrafficPermissions) SetLastSyncedTime(time *metav1.Time)
- func (in *TrafficPermissions) SetSyncedCondition(status corev1.ConditionStatus, reason, message string)
- func (in *TrafficPermissions) SyncedCondition() (status corev1.ConditionStatus, reason, message string)
- func (in *TrafficPermissions) SyncedConditionStatus() corev1.ConditionStatus
- func (in *TrafficPermissions) Validate(tenancy common.ConsulTenancyConfig) error
- type TrafficPermissionsList
- type TrafficPermissionsWebhook
Constants ¶
This section is empty.
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
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 ¶
func (in *TrafficPermissionsList) DeepCopy() *TrafficPermissionsList
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) InjectDecoder ¶
func (v *TrafficPermissionsWebhook) InjectDecoder(d *admission.Decoder) error
func (*TrafficPermissionsWebhook) List ¶
func (v *TrafficPermissionsWebhook) List(ctx context.Context) ([]common.ConsulResource, error)