@@ -345,10 +345,10 @@ ImageStream backups involve a chain of components that work together to copy con
345
345
346
346
#### 1. OpenShift Velero Plugin - ImageStream Backup
347
347
348
- - ** Backup** : [ ` openshift-velero-plugin/velero-plugins/imagestream/backup.go ` ] ( https://github.com/openshift/openshift-velero-plugin/blob/master /velero-plugins/imagestream/backup.go )
348
+ - ** Backup** : [ ` openshift-velero-plugin/velero-plugins/imagestream/backup.go ` ] ( https://github.com/openshift/openshift-velero-plugin/blob/64292f953c3e2ecd623e9388b2a65c08bb9cfbe2 /velero-plugins/imagestream/backup.go )
349
349
- Calls ` GetUdistributionTransportForLocation() ` to create udistribution transport
350
350
- Passes transport to ` imagecopy.CopyLocalImageStreamImages() ` for image copying
351
- - ** Shared Code** : [ ` openshift-velero-plugin/velero-plugins/imagestream/shared.go ` ] ( https://github.com/openshift/openshift-velero-plugin/blob/master /velero-plugins/imagestream/shared.go )
351
+ - ** Shared Code** : [ ` openshift-velero-plugin/velero-plugins/imagestream/shared.go ` ] ( https://github.com/openshift/openshift-velero-plugin/blob/64292f953c3e2ecd623e9388b2a65c08bb9cfbe2 /velero-plugins/imagestream/shared.go )
352
352
- ` GetRegistryEnvsForLocation() ` retrieves ** S3 storage driver parameters** from BSL and converts to env var strings
353
353
- Storage driver parameters include: credentials, bucket, region, endpoint, etc.
354
354
- ` GetUdistributionTransportForLocation() ` calls ` udistribution.NewTransportFromNewConfig(config, envs) `
@@ -357,10 +357,10 @@ ImageStream backups involve a chain of components that work together to copy con
357
357
358
358
#### 2. udistribution Client Library
359
359
360
- - ** Transport Creation** : [ ` migtools/udistribution/pkg/image/udistribution/docker_transport.go ` ] ( https://github.com/migtools/udistribution/blob/main /pkg/image/udistribution/docker_transport.go )
360
+ - ** Transport Creation** : [ ` migtools/udistribution/pkg/image/udistribution/docker_transport.go ` ] ( https://github.com/migtools/udistribution/blob/b66b049de13c44fdd6eb8e8deddcf96f2ac83329 /pkg/image/udistribution/docker_transport.go )
361
361
- ` NewTransportFromNewConfig(config, envs) ` creates transport with client
362
362
- Calls ` client.NewClient(config, envs) ` to initialize
363
- - ** Client Initialization** : [ ` migtools/udistribution/pkg/client/client.go ` ] ( https://github.com/migtools/udistribution/blob/main /pkg/client/client.go )
363
+ - ** Client Initialization** : [ ` migtools/udistribution/pkg/client/client.go ` ] ( https://github.com/migtools/udistribution/blob/b66b049de13c44fdd6eb8e8deddcf96f2ac83329 /pkg/client/client.go )
364
364
- ` NewClient(config, envs) ` parses configuration using ` uconfiguration.ParseEnvironment(config, envs) `
365
365
- Creates ` handlers.App ` which initializes storage drivers
366
366
- ** Key point** : Environment variables in ` envs ` parameter are ** S3 storage driver parameters only**
@@ -370,15 +370,15 @@ ImageStream backups involve a chain of components that work together to copy con
370
370
371
371
#### 3. Docker Distribution S3 Driver
372
372
373
- - ** S3 Driver** : [ ` openshift/docker-distribution/registry/storage/driver/s3-aws/s3.go:559 ` ] ( https://github.com/openshift/docker-distribution/blob/release-4.19 /registry/storage/driver/s3-aws/s3.go#L559 )
373
+ - ** S3 Driver** : [ ` openshift/docker-distribution/registry/storage/driver/s3-aws/s3.go:559 ` ] ( https://github.com/openshift/docker-distribution/blob/ac5742e896d480763c85f9b65e3c331aa0613552 /registry/storage/driver/s3-aws/s3.go#L559 )
374
374
- Creates AWS SDK session via ` session.NewSessionWithOptions(sessionOptions) `
375
375
- AWS SDK v1 (` github.com/aws/aws-sdk-go v1.43.16 ` ) automatically reads environment variables during session initialization
376
376
- The S3 driver itself does NOT directly read ` AWS_CA_BUNDLE ` - this is handled by the AWS SDK
377
377
- ** Session Creation** : AWS SDK's built-in environment variable loading includes ` AWS_CA_BUNDLE `
378
378
379
379
#### 4. AWS SDK v1 Environment Configuration
380
380
381
- - ** Session Package** : [ ` aws-sdk-go/aws/session/env_config.go ` ] ( https://github.com/aws/aws-sdk-go/blob/main /aws/session/env_config.go )
381
+ - ** Session Package** : [ ` aws-sdk-go/aws/session/env_config.go ` ] ( https://github.com/aws/aws-sdk-go/blob/070853e88d22854d2355c2543d0958a5f76ad407 /aws/session/env_config.go )
382
382
- ` NewSessionWithOptions() ` automatically loads configuration from ** process environment variables** (via ` os.Getenv ` )
383
383
- Reads ` AWS_CA_BUNDLE ` environment variable during session initialization
384
384
- Loads custom CA certificates for TLS validation
0 commit comments