File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
tests/templates/kuttl/opa-authorization Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ pub struct Ctx {
104104pub const OPERATOR_NAME : & str = "trino.stackable.tech" ;
105105pub const CONTROLLER_NAME : & str = "trinocluster" ;
106106pub const FULL_CONTROLLER_NAME : & str = concatcp ! ( CONTROLLER_NAME , '.' , OPERATOR_NAME ) ;
107- pub const TRINO_UID : i64 = 1000 ;
108107
109108pub const STACKABLE_LOG_DIR : & str = "/stackable/log" ;
110109pub const STACKABLE_LOG_CONFIG_DIR : & str = "/stackable/log_config" ;
@@ -1141,13 +1140,7 @@ fn build_rolegroup_statefulset(
11411140 )
11421141 . context ( AddVolumeSnafu ) ?
11431142 . service_account_name ( sa_name)
1144- . security_context (
1145- PodSecurityContextBuilder :: new ( )
1146- . run_as_user ( TRINO_UID )
1147- . run_as_group ( 0 )
1148- . fs_group ( 1000 )
1149- . build ( ) ,
1150- ) ;
1143+ . security_context ( PodSecurityContextBuilder :: new ( ) . fs_group ( 1000 ) . build ( ) ) ;
11511144
11521145 let mut pod_template = pod_builder. build_template ( ) ;
11531146 pod_template. merge_from ( role. config . pod_overrides . clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import argparse
33import pytest
44import trino
55
6- from datetime import datetime
6+ from datetime import datetime , UTC
77from trino .exceptions import TrinoUserError
88
99import urllib3
@@ -502,7 +502,7 @@ class TestOpa:
502502 print ("" )
503503
504504 def log (user , query ):
505- timestamp = datetime .utcnow ( ).isoformat (sep = " " , timespec = "milliseconds" )
505+ timestamp = datetime .now ( UTC ).isoformat (sep = " " , timespec = "milliseconds" )
506506 print (f"[{ timestamp } ] - { user :20s} -> { query } " )
507507
508508 def run_query (connection , query ):
You can’t perform that action at this time.
0 commit comments