-
Notifications
You must be signed in to change notification settings - Fork 669
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 #1122 from damemi/issue-1121
Add json tags to internal api fields
- Loading branch information
Showing
6 changed files
with
126 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: manifests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
strategy: | ||
matrix: | ||
k8s-version: ["v1.26.0"] | ||
descheduler-version: ["v0.26.1"] | ||
descheduler-api: ["v1alpha1", "v1alpha2"] | ||
manifest: ["deployment"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.5.0 | ||
with: | ||
node_image: kindest/node:${{ matrix.k8s-version }} | ||
kubectl_version: ${{ matrix.k8s-version }} | ||
config: test/kind-config.yaml | ||
- name: Build image | ||
run: | | ||
VERSION="dev" make dev-image | ||
docker tag descheduler:dev registry.k8s.io/descheduler/descheduler:${{ matrix.descheduler-version }} | ||
- name: Kind load image | ||
run: | | ||
kind load docker-image registry.k8s.io/descheduler/descheduler:${{ matrix.descheduler-version }} --name chart-testing | ||
- name: Create k8s manifests | ||
run: | | ||
kubectl create -f kubernetes/base/rbac.yaml | ||
kubectl create -f test/manifests/${{ matrix.descheduler-api }}/configmap.yaml | ||
kubectl create -f kubernetes/${{ matrix.manifest }}/${{ matrix.manifest }}.yaml | ||
- name: Wait for ready condition | ||
run: | | ||
kubectl wait --for=condition=Available --timeout=60s ${{ matrix.manifest }} descheduler -n kube-system |
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,6 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
- role: worker | ||
- role: worker |
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,27 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: descheduler-policy-configmap | ||
namespace: kube-system | ||
data: | ||
policy.yaml: | | ||
apiVersion: "descheduler/v1alpha1" | ||
kind: "DeschedulerPolicy" | ||
strategies: | ||
"RemoveDuplicates": | ||
enabled: true | ||
"RemovePodsViolatingInterPodAntiAffinity": | ||
enabled: true | ||
"LowNodeUtilization": | ||
enabled: true | ||
params: | ||
nodeResourceUtilizationThresholds: | ||
thresholds: | ||
"cpu" : 20 | ||
"memory": 20 | ||
"pods": 20 | ||
targetThresholds: | ||
"cpu" : 50 | ||
"memory": 50 | ||
"pods": 50 |
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,29 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: descheduler-policy-configmap | ||
namespace: kube-system | ||
data: | ||
policy.yaml: | | ||
apiVersion: "descheduler/v1alpha2" | ||
kind: "DeschedulerPolicy" | ||
profiles: | ||
- name: ProfileName | ||
pluginConfig: | ||
- name: "DefaultEvictor" | ||
args: | ||
priorityThreshold: | ||
value: 10000 | ||
- name: "PodLifeTime" | ||
args: | ||
maxPodLifeTimeSeconds: 86400 | ||
namespaces: | ||
include: | ||
- "namespace1" | ||
- "namespace2" | ||
plugins: | ||
deschedule: | ||
enabled: | ||
- "PodLifeTime" | ||