File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
tests/templates/kuttl/opa-authorization Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ All notable changes to this project will be documented in this file.
2525- test: Bump to Vector ` 0.46.1 ` ([ #743 ] ).
2626- test: Bump OPA ` 1.4.2 ` ([ #745 ] ).
2727- Use versioned common structs ([ #748 ] ).
28+ - BREAKING: Previously this operator would hardcode the UID and GID of the Pods being created to 1000/0, this has changed now ([ #752 ] )
29+ - The ` runAsUser ` and ` runAsGroup ` fields will not be set anymore by the operator
30+ - The defaults from the docker images itself will now apply, which will be different from 1000/0 going forward
31+ - This is marked as breaking because tools and policies might exist, which require these fields to be set
2832
2933### Fixed
3034
@@ -40,6 +44,7 @@ All notable changes to this project will be documented in this file.
4044[ #743 ] : https://github.com/stackabletech/trino-operator/pull/743
4145[ #745 ] : https://github.com/stackabletech/trino-operator/pull/745
4246[ #748 ] : https://github.com/stackabletech/trino-operator/pull/748
47+ [ #752 ] : https://github.com/stackabletech/trino-operator/pull/752
4348
4449## [ 25.3.0] - 2025-03-21
4550
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