-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4585 from pohly/dra-1.31-preparations
KEP-3063 and KEP-4381: DRA: "Structured Parameters" as base, "classic" DRA as extension
- Loading branch information
Showing
12 changed files
with
2,219 additions
and
2,345 deletions.
There are no files selected for viewing
2,596 changes: 434 additions & 2,162 deletions
2,596
keps/sig-node/3063-dynamic-resource-allocation/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
keps/sig-node/3063-dynamic-resource-allocation/components.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file not shown.
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,35 @@ | ||
# Copyright 2022 The Kubernetes 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. | ||
|
||
|
||
IMAGES += components.png kubelet.png | ||
|
||
all: $(IMAGES) | ||
clean: | ||
rm -f $(IMAGES) | ||
|
||
# We use the http://plantuml.com/plantuml server to generate | ||
# images. That way nothing needs to be installed besides Go. | ||
DOC_PLANTUML_GO = $(shell go env GOPATH)/bin/plantuml-go | ||
|
||
%.png: %.puml $(DOC_PLANTUML_GO) | ||
$(DOC_PLANTUML_GO) -format png $< | ||
|
||
%.svg: %.puml $(DOC_PLANTUML_GO) | ||
$(DOC_PLANTUML_GO) -format svg $< | ||
|
||
# Builds the binary in GOPATH/bin. Changing into / first avoids | ||
# modifying the project's go.mod file. | ||
$(DOC_PLANTUML_GO): | ||
cd / && go get github.com/acarlson99/plantuml-go |
1,847 changes: 1,672 additions & 175 deletions
1,847
keps/sig-node/4381-dra-structured-parameters/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
keps/sig-node/4381-dra-structured-parameters/components.puml
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,60 @@ | ||
@startuml | ||
!theme reddress-lightblue | ||
skinparam componentStyle rectangle | ||
left to right direction | ||
|
||
cloud "resource driver" as resourcedriver { | ||
component "CRD controller" as drivercrdcontroller | ||
component "kubelet plugin" as driverplugin | ||
} | ||
|
||
component Kubernetes { | ||
component apiserver { | ||
component namespaced { | ||
file ResourceClaimTemplate | ||
file Pod | ||
file ResourceClaim | ||
file DriverCRDParameters | ||
file ResourceClaimParameters | ||
} | ||
component "cluster-scoped" as clusterscoped { | ||
file ResourceClass | ||
file ResourceSlice | ||
} | ||
} | ||
component scheduler { | ||
component "resource plugin" as k8sresourceplugin | ||
} | ||
component "controller-manager" as controllermanager { | ||
component "resource claim controller" as k8sresourceclaimcontroller | ||
} | ||
component kubelet { | ||
component "plugin manager" as pluginmanager | ||
component "resource manager" as resourcemanager | ||
} | ||
} | ||
|
||
' Kubernetes ---> resourcedriver | ||
|
||
ResourceClaimTemplate <. Pod | ||
Pod <. ResourceClaim: owned by\n(if created from template) | ||
ResourceClaim .> ResourceClass | ||
ResourceClaim .> DriverCRDParameters | ||
ResourceClaimParameters .> DriverCRDParameters: generated from,\nowned by | ||
|
||
Pod -u-> k8sresourceclaimcontroller | ||
ResourceClaimTemplate -u-> k8sresourceclaimcontroller | ||
ResourceClaim <-u- k8sresourceclaimcontroller: create claim,\nclean up consumers,\ntrigger deallocation | ||
k8sresourceplugin <- ResourceClaimParameters | ||
|
||
Pod <--> kubelet | ||
Pod <--> scheduler | ||
ResourceClaim <--> k8sresourceplugin | ||
|
||
ResourceClaimParameters <- drivercrdcontroller: create, update | ||
DriverCRDParameters ---> drivercrdcontroller: read | ||
resourcemanager <-> driverplugin: calls gRPC methods,\nreceives stream of\nresource information | ||
ResourceSlice-> k8sresourceplugin: consumes | ||
resourcemanager --> ResourceSlice: publishes | ||
pluginmanager <-> driverplugin: registers | ||
@enduml |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.