Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=webhook.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type ConfigurationInitParameters
- type ConfigurationObservation
- type ConfigurationParameters
- type Webhook
- func (in *Webhook) DeepCopy() *Webhook
- func (in *Webhook) DeepCopyInto(out *Webhook)
- func (in *Webhook) DeepCopyObject() runtime.Object
- func (mg *Webhook) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Webhook) GetConnectionDetailsMapping() map[string]string
- func (mg *Webhook) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Webhook) GetID() string
- func (tr *Webhook) GetInitParameters() (map[string]any, error)
- func (mg *Webhook) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Webhook) GetObservation() (map[string]any, error)
- func (tr *Webhook) GetParameters() (map[string]any, error)
- func (mg *Webhook) GetProviderConfigReference() *xpv1.Reference
- func (mg *Webhook) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Webhook) GetTerraformResourceType() string
- func (tr *Webhook) GetTerraformSchemaVersion() int
- func (mg *Webhook) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Webhook) LateInitialize(attrs []byte) (bool, error)
- func (mg *Webhook) SetConditions(c ...xpv1.Condition)
- func (mg *Webhook) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Webhook) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Webhook) SetObservation(obs map[string]any) error
- func (tr *Webhook) SetParameters(params map[string]any) error
- func (mg *Webhook) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Webhook) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Webhook) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type WebhookInitParameters
- type WebhookList
- type WebhookObservation
- type WebhookParameters
- type WebhookSpec
- type WebhookStatus
Constants ¶
const ( CRDGroup = "webhook.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( Webhook_Kind = "Webhook" Webhook_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Webhook_Kind}.String() Webhook_KindAPIVersion = Webhook_Kind + "." + CRDGroupVersion.String() Webhook_GroupVersionKind = CRDGroupVersion.WithKind(Webhook_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type ConfigurationInitParameters ¶
type ConfigurationInitParameters struct { // The content type for the payload. Valid values are either form or json. // The content type for the payload. Valid values are either 'form' or 'json'. ContentType *string `json:"contentType,omitempty" tf:"content_type,omitempty"` // Url for the callback webhook. // Url for the callback webhook. Url *string `json:"url,omitempty" tf:"url,omitempty"` // Insecure SSL boolean toggle. Defaults to false. // Insecure SSL boolean toggle. Defaults to 'false'. InsecureSSL *bool `json:"insecureSsl,omitempty" tf:"insecure_ssl,omitempty"` }
func (*ConfigurationInitParameters) DeepCopy ¶
func (in *ConfigurationInitParameters) DeepCopy() *ConfigurationInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationInitParameters.
func (*ConfigurationInitParameters) DeepCopyInto ¶
func (in *ConfigurationInitParameters) DeepCopyInto(out *ConfigurationInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigurationObservation ¶
type ConfigurationObservation struct { // The content type for the payload. Valid values are either form or json. // The content type for the payload. Valid values are either 'form' or 'json'. ContentType *string `json:"contentType,omitempty" tf:"content_type,omitempty"` // Url for the callback webhook. // Url for the callback webhook. Url *string `json:"url,omitempty" tf:"url,omitempty"` // Insecure SSL boolean toggle. Defaults to false. // Insecure SSL boolean toggle. Defaults to 'false'. InsecureSSL *bool `json:"insecureSsl,omitempty" tf:"insecure_ssl,omitempty"` }
func (*ConfigurationObservation) DeepCopy ¶
func (in *ConfigurationObservation) DeepCopy() *ConfigurationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationObservation.
func (*ConfigurationObservation) DeepCopyInto ¶
func (in *ConfigurationObservation) DeepCopyInto(out *ConfigurationObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigurationParameters ¶
type ConfigurationParameters struct { // The content type for the payload. Valid values are either form or json. // The content type for the payload. Valid values are either 'form' or 'json'. // +kubebuilder:validation:Optional ContentType *string `json:"contentType,omitempty" tf:"content_type,omitempty"` // Insecure SSL boolean toggle. Defaults to false. // Insecure SSL boolean toggle. Defaults to 'false'. // +kubebuilder:validation:Optional InsecureSSL *bool `json:"insecureSsl,omitempty" tf:"insecure_ssl,omitempty"` // The shared secret for the webhook. See API documentation. // The shared secret for the webhook // +kubebuilder:validation:Optional SecretSecretRef *v1.SecretKeySelector `json:"secretSecretRef,omitempty" tf:"-"` // The URL of the webhook. // The URL of the webhook. // +kubebuilder:validation:Required URLSecretRef v1.SecretKeySelector `json:"urlSecretRef" tf:"-"` }
func (*ConfigurationParameters) DeepCopy ¶
func (in *ConfigurationParameters) DeepCopy() *ConfigurationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationParameters.
func (*ConfigurationParameters) DeepCopyInto ¶
func (in *ConfigurationParameters) DeepCopyInto(out *ConfigurationParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Webhook ¶
type Webhook 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.events) || (has(self.initProvider) && has(self.initProvider.events))",message="spec.forProvider.events is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.repository) || (has(self.initProvider) && has(self.initProvider.repository))",message="spec.forProvider.repository is a required parameter" Spec WebhookSpec `json:"spec"` Status WebhookStatus `json:"status,omitempty"` }
Webhook is the Schema for the Webhooks API. Creates and manages repository webhooks within GitHub organizations or personal accounts +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,github}
func (*Webhook) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook.
func (*Webhook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Webhook) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Webhook) GetCondition ¶
func (mg *Webhook) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Webhook.
func (*Webhook) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Webhook
func (*Webhook) GetDeletionPolicy ¶
func (mg *Webhook) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Webhook.
func (*Webhook) GetInitParameters ¶
GetInitParameters of this Webhook
func (*Webhook) GetManagementPolicies ¶
func (mg *Webhook) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Webhook.
func (*Webhook) GetObservation ¶
GetObservation of this Webhook
func (*Webhook) GetParameters ¶
GetParameters of this Webhook
func (*Webhook) GetProviderConfigReference ¶
GetProviderConfigReference of this Webhook.
func (*Webhook) GetPublishConnectionDetailsTo ¶
func (mg *Webhook) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Webhook.
func (*Webhook) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Webhook
func (*Webhook) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Webhook) GetWriteConnectionSecretToReference ¶
func (mg *Webhook) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Webhook.
func (*Webhook) LateInitialize ¶
LateInitialize this Webhook using its observed tfState. returns True if there are any spec changes for the resource.
func (*Webhook) SetConditions ¶
SetConditions of this Webhook.
func (*Webhook) SetDeletionPolicy ¶
func (mg *Webhook) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Webhook.
func (*Webhook) SetManagementPolicies ¶
func (mg *Webhook) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Webhook.
func (*Webhook) SetObservation ¶
SetObservation for this Webhook
func (*Webhook) SetParameters ¶
SetParameters for this Webhook
func (*Webhook) SetProviderConfigReference ¶
SetProviderConfigReference of this Webhook.
func (*Webhook) SetPublishConnectionDetailsTo ¶
func (mg *Webhook) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Webhook.
func (*Webhook) SetWriteConnectionSecretToReference ¶
func (mg *Webhook) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Webhook.
type WebhookInitParameters ¶
type WebhookInitParameters struct { // Indicate if the webhook should receive events. Defaults to true. // Indicate if the webhook should receive events. Defaults to 'true'. Active *bool `json:"active,omitempty" tf:"active,omitempty"` // Configuration block for the webhook. Detailed below. // Configuration for the webhook. Configuration []ConfigurationInitParameters `json:"configuration,omitempty" tf:"configuration,omitempty"` // A list of events which should trigger the webhook. See a list of available events. // A list of events which should trigger the webhook Events []*string `json:"events,omitempty" tf:"events,omitempty"` // The repository of the webhook. // The repository of the webhook. Repository *string `json:"repository,omitempty" tf:"repository,omitempty"` }
func (*WebhookInitParameters) DeepCopy ¶
func (in *WebhookInitParameters) DeepCopy() *WebhookInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookInitParameters.
func (*WebhookInitParameters) DeepCopyInto ¶
func (in *WebhookInitParameters) DeepCopyInto(out *WebhookInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookList ¶
type WebhookList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Webhook `json:"items"` }
WebhookList contains a list of Webhooks
func (*WebhookList) DeepCopy ¶
func (in *WebhookList) DeepCopy() *WebhookList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookList.
func (*WebhookList) DeepCopyInto ¶
func (in *WebhookList) DeepCopyInto(out *WebhookList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebhookList) DeepCopyObject ¶
func (in *WebhookList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WebhookList) GetItems ¶
func (l *WebhookList) GetItems() []resource.Managed
GetItems of this WebhookList.
type WebhookObservation ¶
type WebhookObservation struct { // Indicate if the webhook should receive events. Defaults to true. // Indicate if the webhook should receive events. Defaults to 'true'. Active *bool `json:"active,omitempty" tf:"active,omitempty"` // Configuration block for the webhook. Detailed below. // Configuration for the webhook. Configuration []ConfigurationObservation `json:"configuration,omitempty" tf:"configuration,omitempty"` Etag *string `json:"etag,omitempty" tf:"etag,omitempty"` // A list of events which should trigger the webhook. See a list of available events. // A list of events which should trigger the webhook Events []*string `json:"events,omitempty" tf:"events,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // The repository of the webhook. // The repository of the webhook. Repository *string `json:"repository,omitempty" tf:"repository,omitempty"` // URL of the webhook. This is a sensitive attribute because it may include basic auth credentials. // Configuration block for the webhook URL *string `json:"url,omitempty" tf:"url,omitempty"` }
func (*WebhookObservation) DeepCopy ¶
func (in *WebhookObservation) DeepCopy() *WebhookObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookObservation.
func (*WebhookObservation) DeepCopyInto ¶
func (in *WebhookObservation) DeepCopyInto(out *WebhookObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookParameters ¶
type WebhookParameters struct { // Indicate if the webhook should receive events. Defaults to true. // Indicate if the webhook should receive events. Defaults to 'true'. // +kubebuilder:validation:Optional Active *bool `json:"active,omitempty" tf:"active,omitempty"` // Configuration block for the webhook. Detailed below. // Configuration for the webhook. // +kubebuilder:validation:Optional Configuration []ConfigurationParameters `json:"configuration,omitempty" tf:"configuration,omitempty"` // A list of events which should trigger the webhook. See a list of available events. // A list of events which should trigger the webhook // +kubebuilder:validation:Optional Events []*string `json:"events,omitempty" tf:"events,omitempty"` // The repository of the webhook. // The repository of the webhook. // +kubebuilder:validation:Optional Repository *string `json:"repository,omitempty" tf:"repository,omitempty"` }
func (*WebhookParameters) DeepCopy ¶
func (in *WebhookParameters) DeepCopy() *WebhookParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookParameters.
func (*WebhookParameters) DeepCopyInto ¶
func (in *WebhookParameters) DeepCopyInto(out *WebhookParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookSpec ¶
type WebhookSpec struct { v1.ResourceSpec `json:",inline"` ForProvider WebhookParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // 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 WebhookInitParameters `json:"initProvider,omitempty"` }
WebhookSpec defines the desired state of Webhook
func (*WebhookSpec) DeepCopy ¶
func (in *WebhookSpec) DeepCopy() *WebhookSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookSpec.
func (*WebhookSpec) DeepCopyInto ¶
func (in *WebhookSpec) DeepCopyInto(out *WebhookSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookStatus ¶
type WebhookStatus struct { v1.ResourceStatus `json:",inline"` AtProvider WebhookObservation `json:"atProvider,omitempty"` }
WebhookStatus defines the observed state of Webhook.
func (*WebhookStatus) DeepCopy ¶
func (in *WebhookStatus) DeepCopy() *WebhookStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookStatus.
func (*WebhookStatus) DeepCopyInto ¶
func (in *WebhookStatus) DeepCopyInto(out *WebhookStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.