Skip to content

Commit

Permalink
Merge pull request #385 from vshn/fix/readiness_checks
Browse files Browse the repository at this point in the history
Explicitly specify readiness checks
  • Loading branch information
Kidswiss authored Jun 17, 2024
2 parents 75f9ac1 + 70f2066 commit 1f6b1d0
Show file tree
Hide file tree
Showing 17 changed files with 110 additions and 6 deletions.
8 changes: 7 additions & 1 deletion component/component/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,13 @@ local defaultReadinessCheck() = {
status: 'True',
type: 'Ready',
},

type: 'MatchCondition',
},
{
matchCondition: {
status: 'True',
type: 'Ready',
},
type: 'MatchCondition',
},
],
Expand Down
2 changes: 1 addition & 1 deletion component/component/exoscale_kafka.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ local composition =
comp.ToCompositeFieldPath('status.atProvider.version', 'status.version'),
comp.FromCompositeFieldPath('spec.parameters.service.zone', 'metadata.annotations[appcat.vshn.io/cloudzone]'),
],
},
} + common.DefaultReadinessCheck(),
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion component/component/exoscale_mysql.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ local composition =
comp.FromCompositeFieldPath('spec.parameters.backup.timeOfDay', 'spec.forProvider.backup.timeOfDay'),
comp.FromCompositeFieldPath('spec.parameters.service.zone', 'metadata.annotations[appcat.vshn.io/cloudzone]'),
],
},
} + common.DefaultReadinessCheck(),
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion component/component/exoscale_opensearch.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ local composition =
comp.FromCompositeFieldPath('spec.parameters.backup.timeOfDay', 'spec.forProvider.backup.timeOfDay'),
comp.FromCompositeFieldPath('spec.parameters.service.zone', 'metadata.annotations[appcat.vshn.io/cloudzone]'),
],
},
} + common.DefaultReadinessCheck(),
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion component/component/exoscale_postgres.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ local composition =
comp.FromCompositeFieldPath('spec.parameters.backup.timeOfDay', 'spec.forProvider.backup.timeOfDay'),
comp.FromCompositeFieldPath('spec.parameters.service.zone', 'metadata.annotations[appcat.vshn.io/cloudzone]'),
],
},
} + common.DefaultReadinessCheck(),
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion component/component/exoscale_redis.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ local composition =
comp.FromCompositeFieldPath('spec.parameters.maintenance.timeOfDay', 'spec.forProvider.maintenance.timeOfDay'),
comp.FromCompositeFieldPath('spec.parameters.service.zone', 'metadata.annotations[appcat.vshn.io/cloudzone]'),
],
},
} + common.DefaultReadinessCheck(),
],
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ spec:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- base:
apiVersion: cloudscale.crossplane.io/v1
kind: Bucket
Expand Down Expand Up @@ -142,4 +146,8 @@ spec:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: syn-crossplane
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: crossplane-system
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: crossplane-system
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: crossplane-system
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: crossplane-system
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: crossplane-system
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: syn-crossplane
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: syn-crossplane
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: syn-crossplane
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: syn-crossplane
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,13 @@ spec:
- fromFieldPath: spec.parameters.service.zone
toFieldPath: metadata.annotations[appcat.vshn.io/cloudzone]
type: FromCompositeFieldPath
readinessChecks:
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
- matchCondition:
status: 'True'
type: Ready
type: MatchCondition
writeConnectionSecretsToNamespace: syn-crossplane

0 comments on commit 1f6b1d0

Please sign in to comment.