Skip to content

Commit

Permalink
Merge branch 'flyteorg:master' into podsecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
vlibov authored Jun 25, 2024
2 parents bb81521 + d5744da commit ce03fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/user_guide/customizing_dependencies/imagespec.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
.. tags:: Containerization, Intermediate
```

:::{note}
This is an experimental feature, which is subject to change the API in the future.
:::

`ImageSpec` is a way to specify how to build a container image without a Dockerfile. The `ImageSpec` by default will be
converted to an [Envd](https://envd.tensorchord.ai/) config, and the [Envd builder](https://github.com/flyteorg/flytekit/blob/master/plugins/flytekit-envd/flytekitplugins/envd/image_builder.py#L12-L34) will build the image for you. However, you can also register your own builder to build
the image using other tools.
Expand Down
5 changes: 3 additions & 2 deletions flyteadmin/auth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ func GetAuthenticationCustomMetadataInterceptor(authCtx interfaces.Authenticatio
if authCtx.Options().GrpcAuthorizationHeader != DefaultAuthorizationHeader {
md, ok := metadata.FromIncomingContext(ctx)
if ok {
existingHeader := md.Get(authCtx.Options().GrpcAuthorizationHeader)
grpcAuthzHeader := authCtx.Options().GrpcAuthorizationHeader
existingHeader := md.Get(grpcAuthzHeader)
if len(existingHeader) > 0 {
logger.Debugf(ctx, "Found existing metadata %s", existingHeader[0])
logger.Debugf(ctx, "Found existing metadata header %s", grpcAuthzHeader)
newAuthorizationMetadata := metadata.Pairs(DefaultAuthorizationHeader, existingHeader[0])
joinedMetadata := metadata.Join(md, newAuthorizationMetadata)
newCtx := metadata.NewIncomingContext(ctx, joinedMetadata)
Expand Down

0 comments on commit ce03fb7

Please sign in to comment.