Makes use of the .status field in the instance when creating it for the first time.
Now, after the first reconciliation the controller will use different logic based on the presence of a status condition. In the current format it simply waits until all resources are ready.
This change is required to wait until everything is ready before we can provision the connection secret in the instance's namespace (future PR).
Checklist
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[x] PR contains the label area:operator
[x] Link this PR to related issues
[x] I have not made any changes in the charts/ directory.
For reviewers:
You can run make local-install install-samples && kubectl wait --for condition=Ready postgresqlstandalone/my-instance to provision the instance and wait for it.
Summary
.status
field in the instance when creating it for the first time.Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelogarea:operator
charts/
directory.