-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCM-3852 | feat: Exposed KubeletConfig endpoints and models for day 2…
… operations of setting PIDs limits
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,4 +200,8 @@ resource Cluster { | |
locator Vpc { | ||
target Vpc | ||
} | ||
|
||
locator KubeletConfig { | ||
target KubeletConfig | ||
} | ||
} |
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,38 @@ | ||
/* | ||
Copyright (c) 2023 Red Hat, Inc. | ||
|
||
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. | ||
*/ | ||
|
||
// Manages global KubeletConfig configuration for worker nodes in a cluster. | ||
resource KubeletConfig { | ||
// Retrieves the KubeletConfig for a cluster | ||
method Get { | ||
out Body KubeletConfig | ||
} | ||
|
||
// Creates a new cluster KubeletConfig | ||
method Post { | ||
in Request KubeletConfig | ||
out Body KubeletConfig | ||
} | ||
|
||
// Updates the existing cluster KubeletConfig | ||
method Update { | ||
in out Body KubeletConfig | ||
} | ||
|
||
// Deletes the cluster KubeletConfig | ||
method Delete { | ||
} | ||
} |
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,23 @@ | ||
/* | ||
Copyright (c) 2023 Red Hat, Inc. | ||
|
||
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. | ||
*/ | ||
|
||
// OCM representation of KubeletConfig, exposing the fields of Kubernetes | ||
// KubeletConfig that can be managed by users | ||
class KubeletConfig { | ||
// Allows user to specify the podPidsLimit to be applied via KubeletConfig. | ||
// Useful if workloads have greater PIDs limit requirements than the OCP default. | ||
PodPidsLimit Integer | ||
} |