-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- StatusPolicyNone disables inventory status updates. - StatusPolicyAll fully enables inventory status updates. - This allows an opt-out feature for working around the problem that adding status can make the inventory larger than the max etcd object size, causing the applier to exit without applying or pruning anything. With StatusPolicyNone, the user can still safely prune objects to make their inventory smaller, and then re-enable the status with StatusPolicyAll. - Note: the default ConfigMap does not currently support status, so this only affects custom inventory impls.
- Loading branch information
Showing
6 changed files
with
96 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2022 The Kubernetes Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package inventory | ||
|
||
// StatusPolicy specifies whether the inventory client should apply status to | ||
// the inventory object. The status contains the actuation and reconcile stauts | ||
// of each object in the inventory. | ||
//go:generate stringer -type=StatusPolicy -linecomment | ||
type StatusPolicy int | ||
|
||
const ( | ||
// StatusPolicyNone disables inventory status updates. | ||
StatusPolicyNone StatusPolicy = iota // None | ||
|
||
// StatusPolicyAll fully enables inventory status updates. | ||
StatusPolicyAll // All | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters