v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=auth.vault.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "auth.vault.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Backend_Kind             = "Backend"
	Backend_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Backend_Kind}.String()
	Backend_KindAPIVersion   = Backend_Kind + "." + CRDGroupVersion.String()
	Backend_GroupVersionKind = CRDGroupVersion.WithKind(Backend_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

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

Functions

This section is empty.

Types

type Backend

type Backend struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || has(self.initProvider.type)",message="type is a required parameter"
	Spec   BackendSpec   `json:"spec"`
	Status BackendStatus `json:"status,omitempty"`
}

Backend is the Schema for the Backends API. Managing roles in an Cert auth backend in Vault +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vault}

func (*Backend) DeepCopy

func (in *Backend) DeepCopy() *Backend

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

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

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

func (*Backend) DeepCopyObject

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

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

func (*Backend) GetCondition

func (mg *Backend) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Backend.

func (*Backend) GetConnectionDetailsMapping

func (tr *Backend) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Backend

func (*Backend) GetDeletionPolicy

func (mg *Backend) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Backend.

func (*Backend) GetID

func (tr *Backend) GetID() string

GetID returns ID of underlying Terraform resource of this Backend

func (*Backend) GetInitParameters added in v0.2.0

func (tr *Backend) GetInitParameters() (map[string]any, error)

GetInitParameters of this Backend

func (*Backend) GetManagementPolicies added in v0.2.0

func (mg *Backend) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Backend.

func (*Backend) GetObservation

func (tr *Backend) GetObservation() (map[string]any, error)

GetObservation of this Backend

func (*Backend) GetParameters

func (tr *Backend) GetParameters() (map[string]any, error)

GetParameters of this Backend

func (*Backend) GetProviderConfigReference

func (mg *Backend) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Backend.

func (*Backend) GetProviderReference

func (mg *Backend) GetProviderReference() *xpv1.Reference

GetProviderReference of this Backend. Deprecated: Use GetProviderConfigReference.

func (*Backend) GetPublishConnectionDetailsTo

func (mg *Backend) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Backend.

func (*Backend) GetTerraformResourceType

func (mg *Backend) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Backend

func (*Backend) GetTerraformSchemaVersion

func (tr *Backend) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Backend) GetWriteConnectionSecretToReference

func (mg *Backend) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Backend.

func (*Backend) LateInitialize

func (tr *Backend) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Backend using its observed tfState. returns True if there are any spec changes for the resource.

func (*Backend) SetConditions

func (mg *Backend) SetConditions(c ...xpv1.Condition)

SetConditions of this Backend.

func (*Backend) SetDeletionPolicy

func (mg *Backend) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Backend.

func (*Backend) SetManagementPolicies added in v0.2.0

func (mg *Backend) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Backend.

func (*Backend) SetObservation

func (tr *Backend) SetObservation(obs map[string]any) error

SetObservation for this Backend

func (*Backend) SetParameters

func (tr *Backend) SetParameters(params map[string]any) error

SetParameters for this Backend

func (*Backend) SetProviderConfigReference

func (mg *Backend) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Backend.

func (*Backend) SetProviderReference

func (mg *Backend) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Backend. Deprecated: Use SetProviderConfigReference.

func (*Backend) SetPublishConnectionDetailsTo

func (mg *Backend) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Backend.

func (*Backend) SetWriteConnectionSecretToReference

func (mg *Backend) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Backend.

type BackendInitParameters added in v0.2.0

type BackendInitParameters struct {

	// The description of the auth backend
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// If set, opts out of mount migration on path updates.
	DisableRemount *bool `json:"disableRemount,omitempty" tf:"disable_remount,omitempty"`

	// Specifies if the auth method is local only
	Local *bool `json:"local,omitempty" tf:"local,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// path to mount the backend. This defaults to the type.
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	Tune []TuneInitParameters `json:"tune,omitempty" tf:"tune,omitempty"`

	// Name of the auth backend
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*BackendInitParameters) DeepCopy added in v0.2.0

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

func (*BackendInitParameters) DeepCopyInto added in v0.2.0

func (in *BackendInitParameters) DeepCopyInto(out *BackendInitParameters)

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

type BackendList

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

BackendList contains a list of Backends

func (*BackendList) DeepCopy

func (in *BackendList) DeepCopy() *BackendList

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

func (*BackendList) DeepCopyInto

func (in *BackendList) DeepCopyInto(out *BackendList)

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

func (*BackendList) DeepCopyObject

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

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

func (*BackendList) GetItems

func (l *BackendList) GetItems() []resource.Managed

GetItems of this BackendList.

type BackendObservation

type BackendObservation struct {

	// The accessor of the auth backend
	Accessor *string `json:"accessor,omitempty" tf:"accessor,omitempty"`

	// The description of the auth backend
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// If set, opts out of mount migration on path updates.
	DisableRemount *bool `json:"disableRemount,omitempty" tf:"disable_remount,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Specifies if the auth method is local only
	Local *bool `json:"local,omitempty" tf:"local,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// path to mount the backend. This defaults to the type.
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	Tune []TuneObservation `json:"tune,omitempty" tf:"tune,omitempty"`

	// Name of the auth backend
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*BackendObservation) DeepCopy

func (in *BackendObservation) DeepCopy() *BackendObservation

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

func (*BackendObservation) DeepCopyInto

func (in *BackendObservation) DeepCopyInto(out *BackendObservation)

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

type BackendParameters

type BackendParameters struct {

	// The description of the auth backend
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// If set, opts out of mount migration on path updates.
	// +kubebuilder:validation:Optional
	DisableRemount *bool `json:"disableRemount,omitempty" tf:"disable_remount,omitempty"`

	// Specifies if the auth method is local only
	// +kubebuilder:validation:Optional
	Local *bool `json:"local,omitempty" tf:"local,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// path to mount the backend. This defaults to the type.
	// +kubebuilder:validation:Optional
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// +kubebuilder:validation:Optional
	Tune []TuneParameters `json:"tune,omitempty" tf:"tune,omitempty"`

	// Name of the auth backend
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*BackendParameters) DeepCopy

func (in *BackendParameters) DeepCopy() *BackendParameters

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

func (*BackendParameters) DeepCopyInto

func (in *BackendParameters) DeepCopyInto(out *BackendParameters)

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

type BackendSpec

type BackendSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     BackendParameters `json:"forProvider"`
	// THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored
	// unless the relevant Crossplane feature flag is enabled, and may be
	// changed or removed without notice.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider BackendInitParameters `json:"initProvider,omitempty"`
}

BackendSpec defines the desired state of Backend

func (*BackendSpec) DeepCopy

func (in *BackendSpec) DeepCopy() *BackendSpec

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

func (*BackendSpec) DeepCopyInto

func (in *BackendSpec) DeepCopyInto(out *BackendSpec)

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

type BackendStatus

type BackendStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        BackendObservation `json:"atProvider,omitempty"`
}

BackendStatus defines the observed state of Backend.

func (*BackendStatus) DeepCopy

func (in *BackendStatus) DeepCopy() *BackendStatus

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

func (*BackendStatus) DeepCopyInto

func (in *BackendStatus) DeepCopyInto(out *BackendStatus)

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

type TuneInitParameters added in v0.2.0

type TuneInitParameters struct {
	AllowedResponseHeaders []*string `json:"allowedResponseHeaders,omitempty" tf:"allowed_response_headers"`

	AuditNonHMACRequestKeys []*string `json:"auditNonHmacRequestKeys,omitempty" tf:"audit_non_hmac_request_keys"`

	AuditNonHMACResponseKeys []*string `json:"auditNonHmacResponseKeys,omitempty" tf:"audit_non_hmac_response_keys"`

	DefaultLeaseTTL *string `json:"defaultLeaseTtl,omitempty" tf:"default_lease_ttl"`

	ListingVisibility *string `json:"listingVisibility,omitempty" tf:"listing_visibility"`

	MaxLeaseTTL *string `json:"maxLeaseTtl,omitempty" tf:"max_lease_ttl"`

	PassthroughRequestHeaders []*string `json:"passthroughRequestHeaders,omitempty" tf:"passthrough_request_headers"`

	// The type of token that should be generated. Can be service,
	// batch, or default to use the mount's tuned default (which unless changed will be
	// service tokens). For token store roles, there are two additional possibilities:
	// default-service and default-batch which specify the type to return unless the client
	// requests a different type at generation time.
	TokenType *string `json:"tokenType,omitempty" tf:"token_type"`
}

func (*TuneInitParameters) DeepCopy added in v0.2.0

func (in *TuneInitParameters) DeepCopy() *TuneInitParameters

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

func (*TuneInitParameters) DeepCopyInto added in v0.2.0

func (in *TuneInitParameters) DeepCopyInto(out *TuneInitParameters)

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

type TuneObservation

type TuneObservation struct {
	AllowedResponseHeaders []*string `json:"allowedResponseHeaders,omitempty" tf:"allowed_response_headers,omitempty"`

	AuditNonHMACRequestKeys []*string `json:"auditNonHmacRequestKeys,omitempty" tf:"audit_non_hmac_request_keys,omitempty"`

	AuditNonHMACResponseKeys []*string `json:"auditNonHmacResponseKeys,omitempty" tf:"audit_non_hmac_response_keys,omitempty"`

	DefaultLeaseTTL *string `json:"defaultLeaseTtl,omitempty" tf:"default_lease_ttl,omitempty"`

	ListingVisibility *string `json:"listingVisibility,omitempty" tf:"listing_visibility,omitempty"`

	MaxLeaseTTL *string `json:"maxLeaseTtl,omitempty" tf:"max_lease_ttl,omitempty"`

	PassthroughRequestHeaders []*string `json:"passthroughRequestHeaders,omitempty" tf:"passthrough_request_headers,omitempty"`

	// The type of token that should be generated. Can be service,
	// batch, or default to use the mount's tuned default (which unless changed will be
	// service tokens). For token store roles, there are two additional possibilities:
	// default-service and default-batch which specify the type to return unless the client
	// requests a different type at generation time.
	TokenType *string `json:"tokenType,omitempty" tf:"token_type,omitempty"`
}

func (*TuneObservation) DeepCopy

func (in *TuneObservation) DeepCopy() *TuneObservation

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

func (*TuneObservation) DeepCopyInto

func (in *TuneObservation) DeepCopyInto(out *TuneObservation)

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

type TuneParameters

type TuneParameters struct {

	// +kubebuilder:validation:Optional
	AllowedResponseHeaders []*string `json:"allowedResponseHeaders,omitempty" tf:"allowed_response_headers"`

	// +kubebuilder:validation:Optional
	AuditNonHMACRequestKeys []*string `json:"auditNonHmacRequestKeys,omitempty" tf:"audit_non_hmac_request_keys"`

	// +kubebuilder:validation:Optional
	AuditNonHMACResponseKeys []*string `json:"auditNonHmacResponseKeys,omitempty" tf:"audit_non_hmac_response_keys"`

	// +kubebuilder:validation:Optional
	DefaultLeaseTTL *string `json:"defaultLeaseTtl,omitempty" tf:"default_lease_ttl"`

	// +kubebuilder:validation:Optional
	ListingVisibility *string `json:"listingVisibility,omitempty" tf:"listing_visibility"`

	// +kubebuilder:validation:Optional
	MaxLeaseTTL *string `json:"maxLeaseTtl,omitempty" tf:"max_lease_ttl"`

	// +kubebuilder:validation:Optional
	PassthroughRequestHeaders []*string `json:"passthroughRequestHeaders,omitempty" tf:"passthrough_request_headers"`

	// The type of token that should be generated. Can be service,
	// batch, or default to use the mount's tuned default (which unless changed will be
	// service tokens). For token store roles, there are two additional possibilities:
	// default-service and default-batch which specify the type to return unless the client
	// requests a different type at generation time.
	// +kubebuilder:validation:Optional
	TokenType *string `json:"tokenType,omitempty" tf:"token_type"`
}

func (*TuneParameters) DeepCopy

func (in *TuneParameters) DeepCopy() *TuneParameters

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

func (*TuneParameters) DeepCopyInto

func (in *TuneParameters) DeepCopyInto(out *TuneParameters)

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

Jump to

Keyboard shortcuts

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