-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve labels and annotations definition (#1663)
Signed-off-by: rambohe-ch <[email protected]>
- Loading branch information
1 parent
de07563
commit efe75d5
Showing
25 changed files
with
95 additions
and
205 deletions.
There are no files selected for viewing
This file was deleted.
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
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 |
---|---|---|
@@ -1,51 +1,44 @@ | ||
/* | ||
Copyright 2023 The OpenYurt Authors. | ||
Copyright 2021 The OpenYurt 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 | ||
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. | ||
@CHANGELOG | ||
OpenYurt Authors: | ||
change some const value | ||
*/ | ||
|
||
package apps | ||
|
||
// YurtAppSet & YurtAppDaemon related labels and annotations | ||
const ( | ||
// ControllerRevisionHashLabelKey is used to record the controller revision of current resource. | ||
ControllerRevisionHashLabelKey = "apps.openyurt.io/controller-revision-hash" | ||
|
||
// PoolNameLabelKey is used to record the name of current pool. | ||
PoolNameLabelKey = "apps.openyurt.io/pool-name" | ||
|
||
// SpecifiedDeleteKey indicates this object should be deleted, and the value could be the deletion option. | ||
SpecifiedDeleteKey = "apps.openyurt.io/specified-delete" | ||
|
||
// AnnotationPatchKey indicates the patch for every sub pool | ||
AnnotationPatchKey = "apps.openyurt.io/patch" | ||
|
||
AnnotationRefNodePool = "apps.openyurt.io/ref-nodepool" | ||
) | ||
|
||
// NodePool related labels and annotations | ||
const ( | ||
NodePoolTypeLabelKey = "openyurt.io/node-pool-type" | ||
|
||
// LabelDesiredNodePool indicates which nodepool the node want to join | ||
LabelDesiredNodePool = "apps.openyurt.io/desired-nodepool" | ||
|
||
// LabelCurrentNodePool indicates which nodepool the node is currently | ||
// belonging to | ||
LabelCurrentNodePool = "apps.openyurt.io/nodepool" | ||
|
||
AnnotationPrevAttrs = "nodepool.openyurt.io/previous-attributes" | ||
|
||
AnnotationPrevAttrs = "nodepool.openyurt.io/previous-attributes" | ||
NodePoolLabel = "apps.openyurt.io/nodepool" | ||
NodePoolTypeLabel = "nodepool.openyurt.io/type" | ||
NodePoolHostNetworkLabel = "nodepool.openyurt.io/hostnetwork" | ||
|
||
NodePoolChangedEvent = "NodePoolChanged" | ||
NodePoolChangedEvent = "NodePoolChanged" | ||
) |
This file was deleted.
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
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
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
Oops, something went wrong.