PR-80
GitHub PR
This Merge Request is associated with APlease Use caution before running the pipeline.
Created by: daniel-palmer-gu
Description
Allows setting Gitlab object store endpoint when using IAM profile
Testing
Negative Test IAM Profile (not setting endpoint)
custom-values.yaml:
addons:
gitlab:
enabled: true
objectStorage:
type: "s3"
region: "us-gov-west-1"
bucketPrefix: "my-prefix"
iamProfile: "my-profile"
Command: helm template . -f custom-values.yaml -s templates/gitlab/secret-objectstore.yaml
Output:
---
# Source: bigbang/templates/gitlab/secret-objectstore.yaml
apiVersion: v1
kind: Secret
metadata:
name: gitlab-object-storage
namespace: gitlab
type: kubernetes.io/opaque
stringData:
rails: |-
provider: AWS
region: us-gov-west-1
use_iam_profile: true
registry: |-
s3:
bucket: my-prefix-gitlab-registry
region: us-gov-west-1
v4auth: true
backups: |-
[default]
bucket_location = us-gov-west-1
multipart_chunk_size_mb = 128
Negative Test AccessKey/AccessSecret (not setting endpoint)
custom-values.yaml:
addons:
gitlab:
enabled: true
objectStorage:
type: "s3"
region: "us-gov-west-1"
bucketPrefix: "my-prefix"
accessKey: "my-key"
accessSecret: "my-secret"
Command: helm template . -f custom-values.yaml -s templates/gitlab/secret-objectstore.yaml
Output:
---
# Source: bigbang/templates/gitlab/secret-objectstore.yaml
apiVersion: v1
kind: Secret
metadata:
name: gitlab-object-storage
namespace: gitlab
type: kubernetes.io/opaque
stringData:
rails: |-
provider: AWS
region: us-gov-west-1
aws_access_key_id: my-key
aws_secret_access_key: my-secret
registry: |-
s3:
bucket: my-prefix-gitlab-registry
accesskey: my-key
secretkey: my-secret
region: us-gov-west-1
v4auth: true
backups: |-
[default]
access_key = my-key
secret_key = my-secret
host_bucket = %(bucket)s.
bucket_location = us-gov-west-1
multipart_chunk_size_mb = 128
Positive Test IAM Profile (setting endpoint)
custom-values.yaml:
addons:
gitlab:
enabled: true
objectStorage:
type: "s3"
region: "us-gov-west-1"
bucketPrefix: "my-prefix"
iamProfile: "my-profile"
endpoint: "https://s3.us-gov-west-1.amazonaws.com"
Command: helm template . -f custom-values.yaml -s templates/gitlab/secret-objectstore.yaml
Output:
---
# Source: bigbang/templates/gitlab/secret-objectstore.yaml
apiVersion: v1
kind: Secret
metadata:
name: gitlab-object-storage
namespace: gitlab
type: kubernetes.io/opaque
stringData:
rails: |-
provider: AWS
region: us-gov-west-1
use_iam_profile: true
endpoint: "https://s3.us-gov-west-1.amazonaws.com"
registry: |-
s3:
bucket: my-prefix-gitlab-registry
regionendpoint: "https://s3.us-gov-west-1.amazonaws.com"
region: us-gov-west-1
v4auth: true
backups: |-
[default]
bucket_location = us-gov-west-1
multipart_chunk_size_mb = 128
Positive Test AccessKey/AccessSecret (setting endpoint)
custom-values.yaml:
addons:
gitlab:
enabled: true
objectStorage:
type: "s3"
region: "us-gov-west-1"
bucketPrefix: "my-prefix"
accessKey: "my-key"
accessSecret: "my-secret"
endpoint: "https://s3.us-gov-west-1.amazonaws.com"
Command: helm template . -f custom-values.yaml -s templates/gitlab/secret-objectstore.yaml
Output:
---
# Source: bigbang/templates/gitlab/secret-objectstore.yaml
apiVersion: v1
kind: Secret
metadata:
name: gitlab-object-storage
namespace: gitlab
type: kubernetes.io/opaque
stringData:
rails: |-
provider: AWS
region: us-gov-west-1
aws_access_key_id: my-key
aws_secret_access_key: my-secret
endpoint: "https://s3.us-gov-west-1.amazonaws.com"
registry: |-
s3:
bucket: my-prefix-gitlab-registry
accesskey: my-key
secretkey: my-secret
regionendpoint: "https://s3.us-gov-west-1.amazonaws.com"
region: us-gov-west-1
v4auth: true
backups: |-
[default]
access_key = my-key
secret_key = my-secret
host_bucket = %(bucket)s.s3.us-gov-west-1.amazonaws.com
bucket_location = us-gov-west-1
multipart_chunk_size_mb = 128
Closes #2476 (closed)
Merge request reports
Activity
P1-Bot commented:
Thank You!
Your contribution to the DSO Repo1 has been mirrored to !5646 (merged)
Current features
- Comments will be mirrored to the associated GitLab Merge Request.
- Quote Replies will mirror to Gitlab as a Thread
- Updates to code will be pushed to the associated GitLab Merge Request.
- Closing the PR will close the associated GitLab Merge Request.
Features not available yet
- Comments on code will not be mirrored
mentioned in issue #2476 (closed)
This should close #2476 (closed)
assigned to @daniel.palmer
added statusreview label
added community-contribution label
changed milestone to %2.45.0
changed milestone to %2.46.0
added kindfeature priority4 statusdoing teamBig Bang Anchors labels and removed statusreview label
requested review from @andrewshoell
added statusreview label and removed statusdoing label
mentioned in commit c50c0b61
mentioned in merge request big-bang/customers/template!120 (merged)