Skip to content

Commit

Permalink
added group as a matchlabel and made adjustments to cnptest, ccnptest…
Browse files Browse the repository at this point in the history
… variables
  • Loading branch information
karina-ranadive committed Jan 9, 2025
1 parent 64f4c93 commit c4c737b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
endpointSelector:
matchLabels:
env: "a"
group: {{.Group}}
egress:
- toEndpoints:
- {}
Expand Down
2 changes: 1 addition & 1 deletion modules/python/clusterloader2/slo/config/cnp_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
endpointSelector:
matchLabels:
env: "a"
group: {{.Group}}
egress:
- toEndpoints:
- {}
8 changes: 8 additions & 0 deletions modules/python/clusterloader2/slo/config/load-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ steps:
params:
actionName: "Creating"
namespaces: {{$namespaces}}
Group: {{$groupName}}
cnpsPerNamespace: {{$CNPS_PER_NAMESPACE}}
{{end}}

Expand All @@ -106,6 +107,7 @@ steps:
path: /modules/ciliumclusternetworkpolicy.yaml
params:
actionName: "Creating"
Group: {{$groupName}}
ccnps: {{$CCNPS}}
{{end}}

Expand All @@ -119,6 +121,8 @@ steps:
{{if or $CCNP_TEST $CNP_TEST}}
bigDeploymentSize: 0
bigDeploymentsPerNamespace: 0
cnp_test: {{$CNP_TEST}}
ccnp_test: {{$CCNP_TEST}}
{{else}}
bigDeploymentSize: {{$BIG_GROUP_SIZE}}
bigDeploymentsPerNamespace: {{$bigDeploymentsPerNamespace}}
Expand All @@ -140,6 +144,8 @@ steps:
{{if or $CCNP_TEST $CNP_TEST}}
bigDeploymentSize: 0
bigDeploymentsPerNamespace: 0
cnp_test: {{$CNP_TEST}}
ccnp_test: {{$CCNP_TEST}}
{{else}}
bigDeploymentSize: {{$BIG_GROUP_SIZE}}
bigDeploymentsPerNamespace: {{$bigDeploymentsPerNamespace}}
Expand All @@ -161,6 +167,8 @@ steps:
{{if or $CCNP_TEST $CNP_TEST}}
bigDeploymentSize: 0
bigDeploymentsPerNamespace: 0
cnp_test: {{$CNP_TEST}}
ccnp_test: {{$CCNP_TEST}}
{{else}}
bigDeploymentSize: {{$BIG_GROUP_SIZE}}
bigDeploymentsPerNamespace: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Input params
{{$actionName := .actionName}}
{{$ccnps := .ccnps}}
{{$Group := .Group}}

steps:
- name: "{{$actionName}} k8s CCNPs"
Expand All @@ -12,4 +13,6 @@ steps:
tuningSet: Sequence
objectBundle:
- basename: ccnp
objectTemplatePath: ccnp_template.yaml
objectTemplatePath: ccnp_template.yaml
parameters:
Group: {{$Group}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{$actionName := .actionName}}
{{$namespaces := .namespaces}}
{{$cnpsPerNamespace := .cnpsPerNamespace}}
{{$Group := .Group}}

steps:
- name: "{{$actionName}} k8s CNPs"
Expand All @@ -16,4 +17,5 @@ steps:
objectBundle:
- basename: cnp
objectTemplatePath: cnp_template.yaml

parameters:
Group: {{$Group}}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
{{$smallDeploymentSize := .smallDeploymentSize}}
{{$smallDeploymentsPerNamespace := .smallDeploymentsPerNamespace}}

{{$cnpsPerNamespace := .cnpsPerNamespace}}
{{$ccnps := .ccnps}}
{{$cnp_test:= .cnp_test}}
{{$ccnp_test:= .ccnp_test}}
{{$dualstack:= .dualstack}}

steps:
- name: Starting measurement for '{{$actionName}}'
Expand Down Expand Up @@ -64,7 +61,6 @@ steps:
{{if or $cnp_test $ccnp_test}}
cnp_test: {{$cnp_test}}
ccnp_test: {{$ccnp_test}}
dualstack: {{$dualstack}}
{{else}}
SvcName: small-service
{{end}}
Expand Down

0 comments on commit c4c737b

Please sign in to comment.