Skip to content

Commit 09fb541

Browse files
authored
bump chart to v7.6.1 (#9468)
change drain endpoint method to put
1 parent f66063f commit 09fb541

File tree

5 files changed

+48
-48
lines changed

5 files changed

+48
-48
lines changed

charts/kubernetes-dashboard/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
apiVersion: v2
1616
name: kubernetes-dashboard
17-
version: 7.6.0
17+
version: 7.6.1
1818
description: General-purpose web UI for Kubernetes clusters
1919
keywords:
2020
- kubernetes

charts/kubernetes-dashboard/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ api:
173173
role: api
174174
image:
175175
repository: docker.io/kubernetesui/dashboard-api
176-
tag: 1.8.0
176+
tag: 1.8.1
177177
scaling:
178178
replicas: 1
179179
revisionHistoryLimit: 10

modules/api/pkg/handler/apihandler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ func CreateHTTPAPIHandler(iManager integration.Manager) (*restful.Container, err
876876
Writes(pod.PodList{}).
877877
Returns(http.StatusOK, "OK", pod.PodList{}))
878878
apiV1Ws.Route(
879-
apiV1Ws.POST("/node/{name}/drain").To(apiHandler.handleNodeDrain).
879+
apiV1Ws.PUT("/node/{name}/drain").To(apiHandler.handleNodeDrain).
880880
// docs
881881
Doc("drains Node").
882882
Param(apiV1Ws.PathParameter("name", "name of the Node")).

modules/api/schema/swagger.json

+26-26
Original file line numberDiff line numberDiff line change
@@ -5241,7 +5241,7 @@
52415241
}
52425242
},
52435243
"/api/v1/node/{name}/drain": {
5244-
"post": {
5244+
"put": {
52455245
"consumes": [
52465246
"application/json"
52475247
],
@@ -9999,8 +9999,8 @@
99999999
},
1000010000
"configmap.ConfigMapDetail": {
1000110001
"required": [
10002-
"objectMeta",
10003-
"typeMeta"
10002+
"typeMeta",
10003+
"objectMeta"
1000410004
],
1000510005
"properties": {
1000610006
"data": {
@@ -10140,13 +10140,13 @@
1014010140
},
1014110141
"cronjob.CronJobDetail": {
1014210142
"required": [
10143-
"typeMeta",
10144-
"schedule",
10145-
"suspend",
1014610143
"active",
1014710144
"lastSchedule",
1014810145
"containerImages",
1014910146
"objectMeta",
10147+
"typeMeta",
10148+
"schedule",
10149+
"suspend",
1015010150
"concurrencyPolicy",
1015110151
"startingDeadlineSeconds",
1015210152
"errors"
@@ -10489,11 +10489,11 @@
1048910489
},
1049010490
"deployment.DeploymentDetail": {
1049110491
"required": [
10492-
"containerImages",
10493-
"initContainerImages",
1049410492
"objectMeta",
1049510493
"typeMeta",
1049610494
"pods",
10495+
"containerImages",
10496+
"initContainerImages",
1049710497
"selector",
1049810498
"statusInfo",
1049910499
"conditions",
@@ -11111,13 +11111,13 @@
1111111111
},
1111211112
"job.JobDetail": {
1111311113
"required": [
11114+
"parallelism",
1111411115
"jobStatus",
1111511116
"objectMeta",
1111611117
"typeMeta",
1111711118
"podInfo",
1111811119
"containerImages",
1111911120
"initContainerImages",
11120-
"parallelism",
1112111121
"completions",
1112211122
"errors"
1112311123
],
@@ -11611,10 +11611,10 @@
1161111611
},
1161211612
"node.NodeDetail": {
1161311613
"required": [
11614+
"allocatedResources",
1161411615
"objectMeta",
1161511616
"typeMeta",
1161611617
"ready",
11617-
"allocatedResources",
1161811618
"phase",
1161911619
"podCIDR",
1162011620
"providerID",
@@ -11810,14 +11810,14 @@
1181011810
"required": [
1181111811
"objectMeta",
1181211812
"typeMeta",
11813+
"accessModes",
11814+
"mountOptions",
1181311815
"capacity",
1181411816
"reclaimPolicy",
11815-
"claim",
11816-
"reason",
11817-
"accessModes",
1181811817
"storageClass",
11819-
"mountOptions",
1182011818
"status",
11819+
"claim",
11820+
"reason",
1182111821
"message",
1182211822
"persistentVolumeSource"
1182311823
],
@@ -11935,13 +11935,13 @@
1193511935
},
1193611936
"persistentvolumeclaim.PersistentVolumeClaimDetail": {
1193711937
"required": [
11938-
"capacity",
11939-
"accessModes",
1194011938
"storageClass",
1194111939
"objectMeta",
1194211940
"typeMeta",
1194311941
"status",
11944-
"volume"
11942+
"volume",
11943+
"capacity",
11944+
"accessModes"
1194511945
],
1194611946
"properties": {
1194711947
"accessModes": {
@@ -12404,11 +12404,11 @@
1240412404
},
1240512405
"replicaset.ReplicaSetDetail": {
1240612406
"required": [
12407-
"podInfo",
12408-
"containerImages",
1240912407
"initContainerImages",
1241012408
"objectMeta",
1241112409
"typeMeta",
12410+
"podInfo",
12411+
"containerImages",
1241212412
"selector",
1241312413
"horizontalPodAutoscalerList",
1241412414
"errors"
@@ -12518,11 +12518,11 @@
1251812518
},
1251912519
"replicationcontroller.ReplicationControllerDetail": {
1252012520
"required": [
12521-
"containerImages",
12522-
"initContainerImages",
1252312521
"objectMeta",
1252412522
"typeMeta",
1252512523
"podInfo",
12524+
"containerImages",
12525+
"initContainerImages",
1252612526
"labelSelector",
1252712527
"errors"
1252812528
],
@@ -12987,13 +12987,13 @@
1298712987
},
1298812988
"service.ServiceDetail": {
1298912989
"required": [
12990-
"externalEndpoints",
12991-
"selector",
12992-
"type",
1299312990
"clusterIP",
1299412991
"objectMeta",
1299512992
"typeMeta",
1299612993
"internalEndpoint",
12994+
"externalEndpoints",
12995+
"selector",
12996+
"type",
1299712997
"endpointList",
1299812998
"sessionAffinity",
1299912999
"errors"
@@ -13157,11 +13157,11 @@
1315713157
},
1315813158
"statefulset.StatefulSetDetail": {
1315913159
"required": [
13160-
"objectMeta",
1316113160
"typeMeta",
1316213161
"podInfo",
1316313162
"containerImages",
1316413163
"initContainerImages",
13164+
"objectMeta",
1316513165
"errors"
1316613166
],
1316713167
"properties": {
@@ -13313,12 +13313,12 @@
1331313313
},
1331413314
"types.CustomResourceDefinitionDetail": {
1331513315
"required": [
13316+
"scope",
1331613317
"names",
1331713318
"established",
1331813319
"objectMeta",
1331913320
"typeMeta",
1332013321
"group",
13321-
"scope",
1332213322
"conditions",
1332313323
"objects",
1332413324
"subresources",

modules/web/schema/schema.graphql

+19-19
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,7 @@ type v1_IngressRule {
26532653
Currently the port of an Ingress is implicitly :80 for http and
26542654
:443 for https.
26552655
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
2656-
2656+
26572657
host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.
26582658
"""
26592659
host: String
@@ -3919,7 +3919,7 @@ type v1_GRPCAction {
39193919
port: Int!
39203920
"""
39213921
Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
3922-
3922+
39233923
If this is not specified, the default behavior is defined by gRPC.
39243924
"""
39253925
service: String!
@@ -3961,9 +3961,9 @@ type v1_TCPSocketAction {
39613961
type v1_ResourceRequirements {
39623962
"""
39633963
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.
3964-
3964+
39653965
This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
3966-
3966+
39673967
This field is immutable. It can only be set for containers.
39683968
"""
39693969
claims: [v1_ResourceClaim]
@@ -4101,7 +4101,7 @@ type v1_SeccompProfile {
41014101
localhostProfile: String
41024102
"""
41034103
type indicates which kind of seccomp profile will be applied. Valid options are:
4104-
4104+
41054105
Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
41064106
"""
41074107
type: String!
@@ -4151,7 +4151,7 @@ type v1_ContainerStatus {
41514151
name: String!
41524152
"""
41534153
Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).
4154-
4154+
41554155
The value is typically used to determine whether a container is ready to accept traffic.
41564156
"""
41574157
ready: Boolean!
@@ -4492,9 +4492,9 @@ type v1_ObjectMeta {
44924492
finalizers: [String]
44934493
"""
44944494
GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
4495-
4495+
44964496
If this field is specified and the generated name exists, the server will return a 409.
4497-
4497+
44984498
Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
44994499
"""
45004500
generateName: String
@@ -4516,7 +4516,7 @@ type v1_ObjectMeta {
45164516
name: String
45174517
"""
45184518
Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
4519-
4519+
45204520
Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
45214521
"""
45224522
namespace: String
@@ -4526,7 +4526,7 @@ type v1_ObjectMeta {
45264526
ownerReferences: [v1_OwnerReference]
45274527
"""
45284528
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
4529-
4529+
45304530
Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
45314531
"""
45324532
resourceVersion: String
@@ -4536,7 +4536,7 @@ type v1_ObjectMeta {
45364536
selfLink: String
45374537
"""
45384538
UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
4539-
4539+
45404540
Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
45414541
"""
45424542
uid: String
@@ -4556,9 +4556,9 @@ type v1_ManagedFieldsEntry {
45564556
fieldsType: String
45574557
"""
45584558
FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
4559-
4559+
45604560
Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.
4561-
4561+
45624562
The exact format is defined in sigs.k8s.io/structured-merge-diff
45634563
"""
45644564
fieldsV1: JSON
@@ -5036,7 +5036,7 @@ type v1_PodSecurityContext {
50365036
appArmorProfile: v1_AppArmorProfile
50375037
"""
50385038
A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:
5039-
5039+
50405040
1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw
50415041
"""
50425042
fsGroup: BigInt
@@ -5210,14 +5210,14 @@ type endpoint_Endpoint {
52105210
type v1_EndpointPort {
52115211
"""
52125212
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
5213-
5213+
52145214
* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).
5215-
5215+
52165216
* Kubernetes-defined prefixed names:
52175217
* 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
52185218
* 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
52195219
* 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
5220-
5220+
52215221
* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.
52225222
"""
52235223
appProtocol: String
@@ -5573,7 +5573,7 @@ type Mutation {
55735573
"""Aggregations to be performed for each metric (default: sum)"""
55745574
aggregations: String
55755575
input: node_NodeDrainSpec_Input!
5576-
): JSON @httpOperation(subgraph: "api", path: "/api/v1/node/{args.name}/drain", operationSpecificHeaders: "{\"Content-Type\":\"application/json\",\"Accept\":\"application/json\"}", httpMethod: POST, queryParamArgMap: "{\"filterBy\":\"filterBy\",\"sortBy\":\"sortBy\",\"itemsPerPage\":\"itemsPerPage\",\"page\":\"page\",\"metricNames\":\"metricNames\",\"aggregations\":\"aggregations\"}")
5576+
): JSON @httpOperation(subgraph: "api", path: "/api/v1/node/{args.name}/drain", operationSpecificHeaders: "{\"Content-Type\":\"application/json\",\"Accept\":\"application/json\"}", httpMethod: PUT, queryParamArgMap: "{\"filterBy\":\"filterBy\",\"sortBy\":\"sortBy\",\"itemsPerPage\":\"itemsPerPage\",\"page\":\"page\",\"metricNames\":\"metricNames\",\"aggregations\":\"aggregations\"}")
55775577
"""scales ReplicationController to a number of replicas"""
55785578
handleUpdateReplicasCount(
55795579
"""namespace of the ReplicationController"""
@@ -5845,4 +5845,4 @@ type StringWrapper {
58455845

58465846
type StateWrapper {
58475847
state: ContainerState!
5848-
}
5848+
}

0 commit comments

Comments
 (0)