forked from apple/foundationdb
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
2,819 additions
and
680 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
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,47 @@ | ||
// annotations.go | ||
// | ||
// This source file is part of the FoundationDB open source project | ||
// | ||
// Copyright 2021-2024 Apple Inc. and the FoundationDB project authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
package api | ||
|
||
const ( | ||
// CurrentConfigurationAnnotation is the annotation we use to store the | ||
// latest configuration. | ||
CurrentConfigurationAnnotation = "foundationdb.org/launcher-current-configuration" | ||
|
||
// EnvironmentAnnotation is the annotation we use to store the environment | ||
// variables. | ||
EnvironmentAnnotation = "foundationdb.org/launcher-environment" | ||
|
||
// OutdatedConfigMapAnnotation is the annotation we read to get notified of | ||
// outdated configuration. | ||
OutdatedConfigMapAnnotation = "foundationdb.org/outdated-config-map-seen" | ||
|
||
// DelayShutdownAnnotation defines how long the FDB Kubernetes monitor process should sleep before shutting itself down. | ||
// The FDB Kubernetes monitor will always shutdown all fdbserver processes, independent of this setting. | ||
// The value of this annotation must be a duration like "60s". | ||
DelayShutdownAnnotation = "foundationdb.org/delay-shutdown" | ||
|
||
// ClusterFileChangeDetectedAnnotation is the annotation that will be updated if the fdb.cluster file is updated. | ||
ClusterFileChangeDetectedAnnotation = "foundationdb.org/cluster-file-change" | ||
|
||
// IsolateProcessGroupAnnotation is the annotation that defines if the current Pod should be isolated. Isolated | ||
// process groups will shutdown the fdbserver instance but keep the Pod and other Kubernetes resources running | ||
// for debugging purpose. | ||
IsolateProcessGroupAnnotation = "foundationdb.org/isolate-process-group" | ||
) |
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
Oops, something went wrong.