Documentation
¶
Overview ¶
Package v2 provides partial-match assertion structs for FluxCD's Helm controller Kinds (`helm.toolkit.fluxcd.io/v2`).
Re-generate with:
go generate ./assert/flux/helm/v2/...
Index ¶
- type CommonMetadataAssertion
- type CrossNamespaceObjectReferenceAssertion
- type CrossNamespaceSourceReferenceAssertion
- type DependencyReferenceAssertion
- type DriftDetectionAssertion
- type FilterAssertion
- type GroupVersionAssertion
- type HelmChartTemplateAssertion
- type HelmChartTemplateObjectMetaAssertion
- type HelmChartTemplateSpecAssertion
- type HelmChartTemplateVerificationAssertion
- type HelmReleaseAssertion
- type HelmReleaseSpecAssertion
- type IgnoreRuleAssertion
- type InstallAssertion
- type InstallRemediationAssertion
- type InstallStrategyAssertion
- type KustomizeAssertion
- type PostRendererAssertion
- type ResourceInventoryAssertion
- type ResourceRefAssertion
- type RollbackAssertion
- type SnapshotAssertion
- type TestAssertion
- type UninstallAssertion
- type UpgradeAssertion
- type UpgradeRemediationAssertion
- type UpgradeStrategyAssertion
- type WaitStrategyAssertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonMetadataAssertion ¶
type CommonMetadataAssertion struct {
Annotations assert.Opt[map[string]string]
Labels assert.Opt[map[string]string]
}
CommonMetadataAssertion is the assertion struct for CommonMetadata.
func (CommonMetadataAssertion) IsAssertable ¶
func (_ CommonMetadataAssertion) IsAssertable()
IsAssertable marks CommonMetadataAssertion as an Assertable.
type CrossNamespaceObjectReferenceAssertion ¶
type CrossNamespaceObjectReferenceAssertion struct {
APIVersion assert.Opt[string]
Kind assert.Opt[string]
Name assert.Opt[string]
Namespace assert.Opt[string]
}
CrossNamespaceObjectReferenceAssertion is the assertion struct for CrossNamespaceObjectReference.
func (CrossNamespaceObjectReferenceAssertion) IsAssertable ¶
func (_ CrossNamespaceObjectReferenceAssertion) IsAssertable()
IsAssertable marks CrossNamespaceObjectReferenceAssertion as an Assertable.
type CrossNamespaceSourceReferenceAssertion ¶
type CrossNamespaceSourceReferenceAssertion struct {
APIVersion assert.Opt[string]
Kind assert.Opt[string]
Name assert.Opt[string]
Namespace assert.Opt[string]
}
CrossNamespaceSourceReferenceAssertion is the assertion struct for CrossNamespaceSourceReference.
func (CrossNamespaceSourceReferenceAssertion) IsAssertable ¶
func (_ CrossNamespaceSourceReferenceAssertion) IsAssertable()
IsAssertable marks CrossNamespaceSourceReferenceAssertion as an Assertable.
type DependencyReferenceAssertion ¶
type DependencyReferenceAssertion struct {
Name assert.Opt[string]
Namespace assert.Opt[string]
ReadyExpr assert.Opt[string]
}
DependencyReferenceAssertion is the assertion struct for DependencyReference.
func (DependencyReferenceAssertion) IsAssertable ¶
func (_ DependencyReferenceAssertion) IsAssertable()
IsAssertable marks DependencyReferenceAssertion as an Assertable.
type DriftDetectionAssertion ¶
type DriftDetectionAssertion struct {
Mode assert.Opt[v2.DriftDetectionMode]
Ignore assert.Opt[[]IgnoreRuleAssertion]
}
DriftDetectionAssertion is the assertion struct for DriftDetection.
func (DriftDetectionAssertion) IsAssertable ¶
func (_ DriftDetectionAssertion) IsAssertable()
IsAssertable marks DriftDetectionAssertion as an Assertable.
type FilterAssertion ¶
FilterAssertion is the assertion struct for Filter.
func (FilterAssertion) IsAssertable ¶
func (_ FilterAssertion) IsAssertable()
IsAssertable marks FilterAssertion as an Assertable.
type GroupVersionAssertion ¶
GroupVersionAssertion is the assertion struct for GroupVersion.
func (GroupVersionAssertion) IsAssertable ¶
func (_ GroupVersionAssertion) IsAssertable()
IsAssertable marks GroupVersionAssertion as an Assertable.
type HelmChartTemplateAssertion ¶
type HelmChartTemplateAssertion struct {
ObjectMeta HelmChartTemplateObjectMetaAssertion
Spec HelmChartTemplateSpecAssertion
}
HelmChartTemplateAssertion is the assertion struct for HelmChartTemplate.
func (HelmChartTemplateAssertion) IsAssertable ¶
func (_ HelmChartTemplateAssertion) IsAssertable()
IsAssertable marks HelmChartTemplateAssertion as an Assertable.
type HelmChartTemplateObjectMetaAssertion ¶
type HelmChartTemplateObjectMetaAssertion struct {
Labels assert.Opt[map[string]string]
Annotations assert.Opt[map[string]string]
}
HelmChartTemplateObjectMetaAssertion is the assertion struct for HelmChartTemplateObjectMeta.
func (HelmChartTemplateObjectMetaAssertion) IsAssertable ¶
func (_ HelmChartTemplateObjectMetaAssertion) IsAssertable()
IsAssertable marks HelmChartTemplateObjectMetaAssertion as an Assertable.
type HelmChartTemplateSpecAssertion ¶
type HelmChartTemplateSpecAssertion struct {
Chart assert.Opt[string]
Version assert.Opt[string]
SourceRef CrossNamespaceObjectReferenceAssertion
Interval assert.Opt[*v1.Duration]
ReconcileStrategy assert.Opt[string]
ValuesFiles assert.Opt[[]string]
IgnoreMissingValuesFiles assert.Opt[bool]
Verify HelmChartTemplateVerificationAssertion
}
HelmChartTemplateSpecAssertion is the assertion struct for HelmChartTemplateSpec.
func (HelmChartTemplateSpecAssertion) IsAssertable ¶
func (_ HelmChartTemplateSpecAssertion) IsAssertable()
IsAssertable marks HelmChartTemplateSpecAssertion as an Assertable.
type HelmChartTemplateVerificationAssertion ¶
type HelmChartTemplateVerificationAssertion struct {
Provider assert.Opt[string]
SecretRef assert.Opt[*meta.LocalObjectReference]
}
HelmChartTemplateVerificationAssertion is the assertion struct for HelmChartTemplateVerification.
func (HelmChartTemplateVerificationAssertion) IsAssertable ¶
func (_ HelmChartTemplateVerificationAssertion) IsAssertable()
IsAssertable marks HelmChartTemplateVerificationAssertion as an Assertable.
type HelmReleaseAssertion ¶
type HelmReleaseAssertion struct {
TypeMeta assert.Opt[v1.TypeMeta]
ObjectMeta assert.Opt[v1.ObjectMeta]
Spec HelmReleaseSpecAssertion
Status assert.Opt[v2.HelmReleaseStatus]
}
HelmReleaseAssertion is the assertion struct for HelmRelease.
func (HelmReleaseAssertion) IsAssertable ¶
func (_ HelmReleaseAssertion) IsAssertable()
IsAssertable marks HelmReleaseAssertion as an Assertable.
type HelmReleaseSpecAssertion ¶
type HelmReleaseSpecAssertion struct {
Chart HelmChartTemplateAssertion
ChartRef CrossNamespaceSourceReferenceAssertion
Interval assert.Opt[v1.Duration]
KubeConfig assert.Opt[*meta.KubeConfigReference]
Suspend assert.Opt[bool]
ReleaseName assert.Opt[string]
TargetNamespace assert.Opt[string]
StorageNamespace assert.Opt[string]
DependsOn assert.Opt[[]DependencyReferenceAssertion]
Timeout assert.Opt[*v1.Duration]
MaxHistory assert.Opt[*int]
ServiceAccountName assert.Opt[string]
PersistentClient assert.Opt[*bool]
DriftDetection DriftDetectionAssertion
Install InstallAssertion
Upgrade UpgradeAssertion
Test TestAssertion
Rollback RollbackAssertion
Uninstall UninstallAssertion
ValuesFrom assert.Opt[[]v2.ValuesReference]
Values assert.Opt[*v11.JSON]
CommonMetadata CommonMetadataAssertion
PostRenderers assert.Opt[[]PostRendererAssertion]
WaitStrategy WaitStrategyAssertion
HealthCheckExprs assert.Opt[[]kustomize.CustomHealthCheck]
}
HelmReleaseSpecAssertion is the assertion struct for HelmReleaseSpec.
func (HelmReleaseSpecAssertion) IsAssertable ¶
func (_ HelmReleaseSpecAssertion) IsAssertable()
IsAssertable marks HelmReleaseSpecAssertion as an Assertable.
type IgnoreRuleAssertion ¶
type IgnoreRuleAssertion struct {
Paths assert.Opt[[]string]
Target assert.Opt[*kustomize.Selector]
}
IgnoreRuleAssertion is the assertion struct for IgnoreRule.
func (IgnoreRuleAssertion) IsAssertable ¶
func (_ IgnoreRuleAssertion) IsAssertable()
IsAssertable marks IgnoreRuleAssertion as an Assertable.
type InstallAssertion ¶
type InstallAssertion struct {
Timeout assert.Opt[*v1.Duration]
Strategy InstallStrategyAssertion
Remediation InstallRemediationAssertion
DisableTakeOwnership assert.Opt[bool]
DisableWait assert.Opt[bool]
DisableWaitForJobs assert.Opt[bool]
DisableHooks assert.Opt[bool]
DisableOpenAPIValidation assert.Opt[bool]
DisableSchemaValidation assert.Opt[bool]
Replace assert.Opt[bool]
SkipCRDs assert.Opt[bool]
CRDs assert.Opt[v2.CRDsPolicy]
CreateNamespace assert.Opt[bool]
ServerSideApply assert.Opt[*bool]
}
InstallAssertion is the assertion struct for Install.
func (InstallAssertion) IsAssertable ¶
func (_ InstallAssertion) IsAssertable()
IsAssertable marks InstallAssertion as an Assertable.
type InstallRemediationAssertion ¶
type InstallRemediationAssertion struct {
Retries assert.Opt[int]
IgnoreTestFailures assert.Opt[*bool]
RemediateLastFailure assert.Opt[*bool]
}
InstallRemediationAssertion is the assertion struct for InstallRemediation.
func (InstallRemediationAssertion) IsAssertable ¶
func (_ InstallRemediationAssertion) IsAssertable()
IsAssertable marks InstallRemediationAssertion as an Assertable.
type InstallStrategyAssertion ¶
type InstallStrategyAssertion struct {
Name assert.Opt[string]
RetryInterval assert.Opt[*v1.Duration]
}
InstallStrategyAssertion is the assertion struct for InstallStrategy.
func (InstallStrategyAssertion) IsAssertable ¶
func (_ InstallStrategyAssertion) IsAssertable()
IsAssertable marks InstallStrategyAssertion as an Assertable.
type KustomizeAssertion ¶
type KustomizeAssertion struct {
Patches assert.Opt[[]kustomize.Patch]
Images assert.Opt[[]kustomize.Image]
}
KustomizeAssertion is the assertion struct for Kustomize.
func (KustomizeAssertion) IsAssertable ¶
func (_ KustomizeAssertion) IsAssertable()
IsAssertable marks KustomizeAssertion as an Assertable.
type PostRendererAssertion ¶
type PostRendererAssertion struct {
Kustomize KustomizeAssertion
}
PostRendererAssertion is the assertion struct for PostRenderer.
func (PostRendererAssertion) IsAssertable ¶
func (_ PostRendererAssertion) IsAssertable()
IsAssertable marks PostRendererAssertion as an Assertable.
type ResourceInventoryAssertion ¶
type ResourceInventoryAssertion struct {
Entries assert.Opt[[]ResourceRefAssertion]
}
ResourceInventoryAssertion is the assertion struct for ResourceInventory.
func (ResourceInventoryAssertion) IsAssertable ¶
func (_ ResourceInventoryAssertion) IsAssertable()
IsAssertable marks ResourceInventoryAssertion as an Assertable.
type ResourceRefAssertion ¶
ResourceRefAssertion is the assertion struct for ResourceRef.
func (ResourceRefAssertion) IsAssertable ¶
func (_ ResourceRefAssertion) IsAssertable()
IsAssertable marks ResourceRefAssertion as an Assertable.
type RollbackAssertion ¶
type RollbackAssertion struct {
Timeout assert.Opt[*v1.Duration]
DisableWait assert.Opt[bool]
DisableWaitForJobs assert.Opt[bool]
DisableHooks assert.Opt[bool]
Recreate assert.Opt[bool]
Force assert.Opt[bool]
CleanupOnFail assert.Opt[bool]
ServerSideApply assert.Opt[v2.ServerSideApplyMode]
}
RollbackAssertion is the assertion struct for Rollback.
func (RollbackAssertion) IsAssertable ¶
func (_ RollbackAssertion) IsAssertable()
IsAssertable marks RollbackAssertion as an Assertable.
type SnapshotAssertion ¶
type SnapshotAssertion struct {
APIVersion assert.Opt[string]
Digest assert.Opt[string]
Name assert.Opt[string]
Namespace assert.Opt[string]
Version assert.Opt[int]
Status assert.Opt[string]
Action assert.Opt[v2.ReleaseAction]
ChartName assert.Opt[string]
ChartVersion assert.Opt[string]
AppVersion assert.Opt[string]
ConfigDigest assert.Opt[string]
FirstDeployed assert.Opt[v1.Time]
LastDeployed assert.Opt[v1.Time]
Deleted assert.Opt[v1.Time]
TestHooks assert.Opt[*map[string]*v2.TestHookStatus]
OCIDigest assert.Opt[string]
}
SnapshotAssertion is the assertion struct for Snapshot.
func (SnapshotAssertion) IsAssertable ¶
func (_ SnapshotAssertion) IsAssertable()
IsAssertable marks SnapshotAssertion as an Assertable.
type TestAssertion ¶
type TestAssertion struct {
Enable assert.Opt[bool]
Timeout assert.Opt[*v1.Duration]
IgnoreFailures assert.Opt[bool]
Filters assert.Opt[*[]v2.Filter]
}
TestAssertion is the assertion struct for Test.
func (TestAssertion) IsAssertable ¶
func (_ TestAssertion) IsAssertable()
IsAssertable marks TestAssertion as an Assertable.
type UninstallAssertion ¶
type UninstallAssertion struct {
Timeout assert.Opt[*v1.Duration]
DisableHooks assert.Opt[bool]
KeepHistory assert.Opt[bool]
DisableWait assert.Opt[bool]
DeletionPropagation assert.Opt[*string]
}
UninstallAssertion is the assertion struct for Uninstall.
func (UninstallAssertion) IsAssertable ¶
func (_ UninstallAssertion) IsAssertable()
IsAssertable marks UninstallAssertion as an Assertable.
type UpgradeAssertion ¶
type UpgradeAssertion struct {
Timeout assert.Opt[*v1.Duration]
Strategy UpgradeStrategyAssertion
Remediation UpgradeRemediationAssertion
DisableTakeOwnership assert.Opt[bool]
DisableWait assert.Opt[bool]
DisableWaitForJobs assert.Opt[bool]
DisableHooks assert.Opt[bool]
DisableOpenAPIValidation assert.Opt[bool]
DisableSchemaValidation assert.Opt[bool]
Force assert.Opt[bool]
PreserveValues assert.Opt[bool]
CleanupOnFail assert.Opt[bool]
CRDs assert.Opt[v2.CRDsPolicy]
ServerSideApply assert.Opt[v2.ServerSideApplyMode]
}
UpgradeAssertion is the assertion struct for Upgrade.
func (UpgradeAssertion) IsAssertable ¶
func (_ UpgradeAssertion) IsAssertable()
IsAssertable marks UpgradeAssertion as an Assertable.
type UpgradeRemediationAssertion ¶
type UpgradeRemediationAssertion struct {
Retries assert.Opt[int]
IgnoreTestFailures assert.Opt[*bool]
RemediateLastFailure assert.Opt[*bool]
Strategy assert.Opt[*v2.RemediationStrategy]
}
UpgradeRemediationAssertion is the assertion struct for UpgradeRemediation.
func (UpgradeRemediationAssertion) IsAssertable ¶
func (_ UpgradeRemediationAssertion) IsAssertable()
IsAssertable marks UpgradeRemediationAssertion as an Assertable.
type UpgradeStrategyAssertion ¶
type UpgradeStrategyAssertion struct {
Name assert.Opt[string]
RetryInterval assert.Opt[*v1.Duration]
}
UpgradeStrategyAssertion is the assertion struct for UpgradeStrategy.
func (UpgradeStrategyAssertion) IsAssertable ¶
func (_ UpgradeStrategyAssertion) IsAssertable()
IsAssertable marks UpgradeStrategyAssertion as an Assertable.
type WaitStrategyAssertion ¶
type WaitStrategyAssertion struct {
Name assert.Opt[v2.WaitStrategyName]
}
WaitStrategyAssertion is the assertion struct for WaitStrategy.
func (WaitStrategyAssertion) IsAssertable ¶
func (_ WaitStrategyAssertion) IsAssertable()
IsAssertable marks WaitStrategyAssertion as an Assertable.