Skip to content

Commit

Permalink
fix dir naming and test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulait committed Dec 9, 2024
1 parent a5b5753 commit 901b05c
Show file tree
Hide file tree
Showing 45 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- name: Check if CCM is deployed
try:
- assert:
file: assert-ccm-resources.yaml
file: ../assert-ccm-resources.yaml
- name: Create pods and services
try:
- apply:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: simple-loadbalancer
name: lb-simple
spec:
namespace: "simple-lb"
namespace: "lb-simple"
steps:
- name: Check if CCM is deployed
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: simple-lb
app: lb-simple
name: test
spec:
replicas: 2
selector:
matchLabels:
app: simple-lb
app: lb-simple
template:
metadata:
labels:
app: simple-lb
app: lb-simple
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -46,11 +46,11 @@ kind: Service
metadata:
name: svc-test
labels:
app: simple-lb
app: lb-simple
spec:
type: LoadBalancer
selector:
app: simple-lb
app: lb-simple
ports:
- name: http-1
protocol: TCP
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ spec:
fi
kubectl annotate svc svc-test -n $NAMESPACE service.beta.kubernetes.io/linode-loadbalancer-nodebalancer-id=$nbid
sleep 30
hostname=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].hostname)
ip=$(echo $hostname | awk -F'.' '{gsub("-", ".", $1); print $1}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
name: svc-test
status:
(loadBalancer.ingress[0].ip != null): true
- name: Validate nodebalancer has 3 nodes
- name: Validate nodebalancer has 2 nodes
try:
- script:
content: |
Expand Down Expand Up @@ -118,7 +118,7 @@ spec:
sleep 20
done
KUBECONFIG=$MGMT_KUBECONFIG kubectl patch machinedeployment ${CLUSTER_NAME}-md-0 --type='merge' -p "{\"spec\":{\"replicas\":$current_replicas}}"
#KUBECONFIG=$MGMT_KUBECONFIG kubectl patch machinedeployment ${CLUSTER_NAME}-md-0 --type='merge' -p "{\"spec\":{\"replicas\":$current_replicas}}"
check:
($error == null): true
(contains($stdout, 'all nodes up')): true
Expand Down

This file was deleted.

0 comments on commit 901b05c

Please sign in to comment.