Skip to content

Commit 2ab3ec6

Browse files
committed
Add note to changelog
1 parent 1990993 commit 2ab3ec6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
- The SDK now uses logr as the default logger to unify the logging output with the controller-runtime logs. Users can still use a logger of their own choice. See the [logging doc](https://github.com/operator-framework/operator-sdk/blob/master/doc/user/logging.md) on how the SDK initializes and uses logr.
1818
- Ansible Operator CR status better aligns with [conventions](https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#typical-status-properties). ([#639](https://github.com/operator-framework/operator-sdk/pull/639))
19+
- The SDK now generates the CRD with the status subresource enabled by default. See the [client doc](https://github.com/operator-framework/operator-sdk/blob/masster/doc/user/client.md#updating-status-subresource) on how to update the status ssubresource.
1920

2021
### Added
2122

pkg/ansible/controller/reconcile.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ func (r *AnsibleOperatorReconciler) Reconcile(request reconcile.Request) (reconc
201201
func (r *AnsibleOperatorReconciler) markRunning(u *unstructured.Unstructured, namespacedName types.NamespacedName) error {
202202
// Get the latest resource to prevent updating a stale status
203203
err := r.Client.Get(context.TODO(), namespacedName, u)
204-
if apierrors.IsNotFound(err) {
205-
return err
206-
}
207204
if err != nil {
208205
return err
209206
}

0 commit comments

Comments
 (0)