Skip to main content

API Reference

Packages

infrahub.operators.com/v1alpha1

Package v1alpha1 contains API Schema definitions for the infrahub v1alpha1 API group

Resource Types

InfrahubSync

InfrahubSync is the Schema for the infrahubsyncs API

FieldDescriptionDefaultValidation
apiVersion stringinfrahub.operators.com/v1alpha1
kind stringInfrahubSync
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec InfrahubSyncSpecSpec defines the desired state of InfrahubSync
status InfrahubSyncStatusStatus defines the observed state of InfrahubSync

InfrahubSyncDestination

VidraResourceDestination contains information about where the resource will be sent

Appears in:

FieldDescriptionDefaultValidation
server stringOnly needed if you need to deploy to two Kubernetis cluster (multicluster) if set to "httlps://kubernetes.default.svc" or omitted, the operator will use the current clusterOptional: {}
Pattern: ^(http|https)://[a-zA-Z0-9.-]+(:[0-9]+)?(?:/[a-zA-Z0-9-]+)*$
namespace stringDefault Namespace in the Kubernetes cluster where the resource should be sent, if they do not hava a namespace already setOptional: {}
reconcileOnEvents booleanIf true, the operator will reconcile resources based on k8s events. (default: false) - changes to the resource will trigger a reconciliationfalse

InfrahubSyncSource

VidraResourceSource contains the source information for the resource

Appears in:

FieldDescriptionDefaultValidation
infrahubAPIURL stringURL for the Infrahub API (e.g., https://infrahub.example.com)Pattern: ^(http|https)://[a-zA-Z0-9.-]+(:[0-9]+)?(?:/[a-zA-Z0-9-]+)*$
Required: {}
targetBranch stringThe target branch in Infrahub to interact withmainMinLength: 1
Required: {}
targetDate stringThe target date in Infrahub for all the interactions (e.g., "2025-01-01T00:00:00Z or -2d" for the artifact from two days ago). If not set, the operator will use the current date.Optional: {}
artefactName stringArtifact name that is being handled by the operator, this is used to identify the resource in InfrahubMinLength: 1
Required: {}

InfrahubSyncSpec

InfrahubSyncSpec defines the desired state of InfrahubSync

Appears in:

FieldDescriptionDefaultValidation
source InfrahubSyncSourceFoo is an example field of InfrahubSync. Edit infrahubsync_types.go to remove/update
Source contains the source information for the Infrahub API interaction
destination InfrahubSyncDestinationDestination contains the destination information for the resource

InfrahubSyncStatus

InfrahubSyncStatus defines the observed state of InfrahubSync

Appears in:

FieldDescriptionDefaultValidation
checksums string arrayChecksums contains a list of checksums for synced resources
syncState StateSyncState indicates the current state of the sync operationEnum: [Pending Running Succeeded Failed Stale]
lastError stringLastError provides details about the last error encountered during the sync operation
lastSyncTime TimeLastSyncTime indicates the last time the sync operation was performed

ManagedResourceStatus

Appears in:

FieldDescriptionDefaultValidation
kind stringKind of the resource (e.g., Deployment, Service)
apiVersion stringAPIVersion of the resource (e.g., apps/v1)
name stringName of the resource
namespace stringNamespace of the resource

State

Underlying type: string

Appears in:

FieldDescription
RunningIndicates the resource is currently reconciling
SucceededIndicates the resource reconciliation was successful
FailedIndicates the resource reconciliation failed
StaleIndicates the resource has achieved the desired state but still has old resources which are not yet cleaned up

VidraResource

VidraResource is the Schema for the Vidraresources API

FieldDescriptionDefaultValidation
apiVersion stringinfrahub.operators.com/v1alpha1
kind stringVidraResource
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec VidraResourceSpecVidraResourceSpec defines the desired state of VidraResource
status VidraResourceStatusVidraResourceStatus defines the observed state of VidraResource

VidraResourceSpec

VidraResourceSpec defines the desired state of VidraResource

Appears in:

FieldDescriptionDefaultValidation
destination InfrahubSyncDestinationDestination contains the destination information for the resource
manifest stringManifest contains the manifest information for the resource
reconciledAt TimeThe last time the resource was reconciled

VidraResourceStatus

VidraResourceStatus defines the observed state of VidraResource

Appears in:

FieldDescriptionDefaultValidation
managedResources ManagedResourceStatus arrayManagedResources contains a list of resources managed by this VidraResource
DeployState StateDeployState indicates the current state of the deploymentEnum: [Pending Running Succeeded Failed Stale]
lastError stringLastError contains the last error message if any
lastSyncTime TimeLastSyncTime indicates the last time the resource was synchronized