@@ -69,6 +69,7 @@ func describe() {
6969
7070		ginkgo .By ("checking the pod total EPC size annotation is correctly set" )
7171		gomega .Expect (pod .Annotations ["sgx.intel.com/epc" ]).To (gomega .Equal ("1Mi" ))
72+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test" ]).To (gomega .Equal ("1Mi" ))
7273	})
7374	ginkgo .It ("mutates created pods when the container contains the quote generation libraries" , func (ctx  context.Context ) {
7475		ginkgo .By ("submitting the pod" )
@@ -79,6 +80,7 @@ func describe() {
7980
8081		ginkgo .By ("checking the pod total EPC size annotation is correctly set" )
8182		gomega .Expect (pod .Annotations ["sgx.intel.com/epc" ]).To (gomega .Equal ("1Mi" ))
83+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test" ]).To (gomega .Equal ("1Mi" ))
8284	})
8385	ginkgo .It ("mutates created pods when the container uses aesmd from a side-car container to generate quotes" , func (ctx  context.Context ) {
8486		ginkgo .By ("submitting the pod" )
@@ -93,6 +95,8 @@ func describe() {
9395		gomega .Expect (pod .Spec .Containers [0 ].Env [0 ].Value ).To (gomega .Equal ("1" ))
9496		ginkgo .By ("checking the pod total EPC size annotation is correctly set" )
9597		gomega .Expect (pod .Annotations ["sgx.intel.com/epc" ]).To (gomega .Equal ("2Mi" ))
98+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test" ]).To (gomega .Equal ("1Mi" ))
99+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.aesmd" ]).To (gomega .Equal ("1Mi" ))
96100	})
97101	ginkgo .It ("mutates created pods where one container uses host/daemonset aesmd to generate quotes" , func (ctx  context.Context ) {
98102		ginkgo .By ("submitting the pod" )
@@ -106,6 +110,7 @@ func describe() {
106110		gomega .Expect (pod .Spec .Containers [0 ].Env [0 ].Value ).To (gomega .Equal ("1" ))
107111		ginkgo .By ("checking the pod total EPC size annotation is correctly set" )
108112		gomega .Expect (pod .Annotations ["sgx.intel.com/epc" ]).To (gomega .Equal ("1Mi" ))
113+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test" ]).To (gomega .Equal ("1Mi" ))
109114	})
110115	ginkgo .It ("mutates created pods where three containers use host/daemonset aesmd to generate quotes" , func (ctx  context.Context ) {
111116		ginkgo .By ("submitting the pod" )
@@ -125,6 +130,9 @@ func describe() {
125130		gomega .Expect (pod .Spec .Containers [2 ].Env [0 ].Value ).To (gomega .Equal ("1" ))
126131		ginkgo .By ("checking the pod total EPC size annotation is correctly set" )
127132		gomega .Expect (pod .Annotations ["sgx.intel.com/epc" ]).To (gomega .Equal ("3Mi" ))
133+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test1" ]).To (gomega .Equal ("1Mi" ))
134+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test2" ]).To (gomega .Equal ("1Mi" ))
135+ 		gomega .Expect (pod .Annotations ["epc-limit.nri.io/container.test3" ]).To (gomega .Equal ("1Mi" ))
128136	})
129137	ginkgo .It ("checks that Volumes and VolumeMounts are created only once" , func (ctx  context.Context ) {
130138		ginkgo .By ("submitting the pod" )
0 commit comments