Skip to content

Commit cd9fd41

Browse files
authored
Merge pull request #2202 from rnc/AMAZON
Remove Amazon AWS S3 code
2 parents f244990 + 84283c1 commit cd9fd41

File tree

1,538 files changed

+36
-393143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,538 files changed

+36
-393143
lines changed

.github/renovate.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
"matchCurrentValue": "/-SNAPSHOT$/",
1818
"enabled": false
1919
},
20-
{
21-
"description": "Set noisy package updates to only get PRs once a month",
22-
"matchPackageNames": [
23-
"github.com/aws/aws-sdk-go",
24-
"com.amazonaws:aws-java-sdk-codeartifact"
25-
],
26-
"schedule": ["before 4am on the first day of the month"]
27-
}
2820
],
2921
"enabledManagers": [
3022
]

README.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ This is currently using link:https://docs.openshift.com/pipelines/1.15/about/op-
2727
The following environment variables are configurable and may be set by the user prior to deploying this depending upon which features are to be enabled.
2828

2929
|=======================
30-
| AWS_ACCESS_KEY_ID | AWS Access Key used for S3 and CodeArtfact Access
31-
| AWS_PROFILE | AWS Region used for CodeArtifact deployment
32-
| AWS_SECRET_ACCESS_KEY | AWS Secret Access Key used for S3 and CodeArtfact Access
3330
| GIT_DEPLOY_IDENTITY | Username/organisation name for the Git service
3431
| GIT_DEPLOY_TOKEN | Authentication token
3532
| GIT_DEPLOY_URL | The URL for the Git service (GitHub/GitLab are supported) to archive the sources
@@ -41,7 +38,6 @@ The following environment variables are configurable and may be set by the user
4138
| JBS_GIT_CREDENTIALS | Support for private repositories (See below)
4239
| JBS_MAX_MEMORY | Maximum additional memory allowed
4340
| JBS_RECIPE_DATABASE | Recipe database to use (defaults to `https://github.com/redhat-appstudio/jvm-build-data`)
44-
| JBS_S3_SYNC_ENABLED | Whether to enable Amazon S3 sync for storage (default: `false`)
4541
| JBS_WORKER_NAMESPACE | Worker namespace (default: `test-jvm-namespace`) may be customised by setting this
4642
| MAVEN_PASSWORD | Password for the Maven repository
4743
| MAVEN_REPOSITORY | The URL for the external Maven repository to deploy to

cmd/controller/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ func main() {
6262

6363
util.ImageTag = os.Getenv("IMAGE_TAG")
6464
util.ImageRepo = os.Getenv("IMAGE_REPO")
65-
if os.Getenv("S3_SYNC_ENABLED") == "true" {
66-
logger.Info("Enabling S3 Sync")
67-
util.S3Enabled = true
68-
} else {
69-
logger.Info("S3 Sync Disabled")
70-
}
7165

7266
mgr, err := controller.NewManager(restConfig, mopts)
7367
if err != nil {

deploy/base-development.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,9 @@ if [ -z "$JBS_BUILD_IMAGE_SECRET" ]; then
3030
# Represents an empty dockerconfig.json
3131
export JBS_BUILD_IMAGE_SECRET="ewogICAgImF1dGhzIjogewogICAgfQp9Cg==" # notsecret
3232
fi
33-
if [ -z "$JBS_S3_SYNC_ENABLED" ]; then
34-
export JBS_S3_SYNC_ENABLED=false
35-
fi
3633
if [ -z "$JBS_MAX_MEMORY" ]; then
3734
export JBS_MAX_MEMORY=4096
3835
fi
39-
# Horrendous hack to work around
40-
# https://github.com/kubernetes-sigs/kustomize/issues/5124
41-
# given an env var is a string (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/)
42-
# and if 'true' or 'false' is seen that is coerced to a bool which causes an issue
43-
export JBS_S3_SYNC_ENABLED="\"$JBS_S3_SYNC_ENABLED\""
4436

4537
function cleanAllArtifacts() {
4638
# Following are created in CI code
@@ -71,9 +63,6 @@ DIR=`dirname $0`
7163

7264
echo -e "\033[0;32mRunning kustomize/kubectl...\033[0m"
7365
kustomize build $DIR/overlays/dev-template | envsubst '
74-
${AWS_ACCESS_KEY_ID}
75-
${AWS_PROFILE}
76-
${AWS_SECRET_ACCESS_KEY}
7766
${GIT_DEPLOY_IDENTITY}
7867
${GIT_DEPLOY_TOKEN}
7968
${GIT_DEPLOY_URL}
@@ -85,7 +74,6 @@ ${JBS_QUAY_IMAGE_TAG}
8574
${JBS_QUAY_ORG}
8675
${JBS_MAX_MEMORY}
8776
${JBS_RECIPE_DATABASE}
88-
${JBS_S3_SYNC_ENABLED}
8977
${JBS_WORKER_NAMESPACE}
9078
${MAVEN_PASSWORD}
9179
${MAVEN_REPOSITORY}

deploy/base/secrets/jbs-build-maven-repo-aws.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

deploy/base/secrets/jbs-build-s3.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

deploy/base/secrets/kustomization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ resources:
99
- jbs-build-git-repo.yaml
1010
- jbs-build-git.yaml
1111
- jbs-build-image.yaml
12-
- jbs-build-maven-repo-aws.yaml
1312
- jbs-build-maven-repo.yaml
14-
- jbs-build-s3.yaml

deploy/crds/base/jvmbuildservice.io_rebuiltartifacts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
schema:
2323
openAPIV3Schema:
2424
description: RebuiltArtifact An artifact that has been rebuilt and deployed
25-
to S3 or a Container registry
25+
to a Container registry
2626
properties:
2727
apiVersion:
2828
description: |-

deploy/operator/overlays/dev-template/kustomization.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@ images:
1313
newTag: ${JBS_QUAY_IMAGE_TAG}
1414

1515
patches:
16-
# Note - see base-development for quoting requirements for
17-
# JBS_S3_SYNC_ENABLED and the linked kubernete issue.
18-
- patch: |-
19-
- op: add
20-
path: /spec/template/spec/containers/0/env
21-
value:
22-
- name: S3_SYNC_ENABLED
23-
value: ${JBS_S3_SYNC_ENABLED}
24-
target:
25-
kind: Deployment
26-
name: hacbs-jvm-operator
2716
- patch: |-
2817
- op: replace
2918
path: /spec/template/spec/containers/0/imagePullPolicy

deploy/overlays/dev-template/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ apiVersion: jvmbuildservice.io/v1alpha1
33
kind: JBSConfig
44
metadata:
55
name: jvm-build-config
6-
annotations:
7-
jvmbuildservice.io/s3-bucket-name: "jvm-build-service-data"
86
spec:
97
registry:
108
owner: ${QUAY_USERNAME}

0 commit comments

Comments
 (0)