-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added CNP and CCNP template files - made changes to slo.py to include necessary variables - additions to load config and reconcile objects to include ccnp and cnp variables - added nginx deployment based on conditionals - created ccnp-cnp feature pipeline yaml - added necessary variables in existing slo steps
- Loading branch information
1 parent
463b8da
commit 43d8920
Showing
11 changed files
with
267 additions
and
13 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
modules/python/clusterloader2/slo/config/ccnp_template.yaml
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,14 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumClusterwideNetworkPolicy | ||
metadata: | ||
name: {{.basename}} | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
app: nginx | ||
egress: | ||
- toEndpoints: | ||
- {} | ||
ingress: | ||
- fromEndpoints: | ||
- {} |
12 changes: 12 additions & 0 deletions
12
modules/python/clusterloader2/slo/config/cnp_template.yaml
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,12 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: {{.basename}} | ||
namespace: slo-1 | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
app: nginx | ||
egress: | ||
- toEndpoints: | ||
- {} |
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
15 changes: 15 additions & 0 deletions
15
modules/python/clusterloader2/slo/config/modules/ciliumclusternetworkpolicy.yaml
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,15 @@ | ||
## CCNP module provides a module for creating / deleting CCNPs. | ||
|
||
## Input params | ||
{{$actionName := .actionName}} | ||
{{$ccnps := .ccnps}} | ||
|
||
steps: | ||
- name: "{{$actionName}} k8s CCNPs" | ||
phases: | ||
- namespaceRange: null | ||
replicasPerNamespace: {{$ccnps}} | ||
tuningSet: Sequence | ||
objectBundle: | ||
- basename: ccnp | ||
objectTemplatePath: ccnp_template.yaml |
20 changes: 20 additions & 0 deletions
20
modules/python/clusterloader2/slo/config/modules/ciliumnetworkpolicy.yaml
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,20 @@ | ||
## CNP module provides a module for creating / deleting CNPs. | ||
|
||
## Input params | ||
{{$actionName := .actionName}} | ||
{{$namespaces := .namespaces}} | ||
{{$cnpsPerNamespace := .cnpsPerNamespace}} | ||
{{$nameOfNs := .nameOfNs}} | ||
|
||
steps: | ||
- name: "{{$actionName}} k8s CNPs" | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: {{$namespaces}} | ||
replicasPerNamespace: {{$cnpsPerNamespace}} | ||
tuningSet: Sequence | ||
objectBundle: | ||
- basename: cnp | ||
objectTemplatePath: cnp_template.yaml | ||
|
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
Oops, something went wrong.