#NEWLINE# def render_resource_limits( self ) : #NEWLINE# #INDENT# if ( limits . _resource_limits is not None ) : #NEWLINE# #INDENT# resources = self . template [ 'spec' ] . get ( 'resources' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# limits = resources . get ( 'limits' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# limits . update ( self . _resource_limits ) #NEWLINE# resources [ 'limits' ] = limits #NEWLINE# self . template [ 'spec' ] [ 'resources' ] = resources