Skip to content

Commit 00c9101

Browse files
authored
sync: stage to production (#1650)
sync-branches: New code has just landed in stage, so let's bring production up to speed!
2 parents cea6a19 + fc9b033 commit 00c9101

Some content is hidden

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

46 files changed

+1138
-313
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
internal/dinosaur/pkg/api/admin/private/api/openapi.yaml linguist-generated

.github/workflows/deploy-data-plane.yaml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ on:
1818
description: 'Name of the environment defined in GitHub.'
1919
required: true
2020
type: string
21-
deploy_clusters:
22-
description: 'Names of clusters to deploy to, space separated.'
23-
required: true
24-
type: string
2521
probe_clusters:
2622
description: 'Name of clusters to deploy probe to, space separated.'
2723
required: true
@@ -34,45 +30,8 @@ on:
3430

3531
env:
3632
HELM_DRY_RUN: ${{ inputs.dry_run }}
37-
# Credentials are populated by explicit `configure-aws-credentials` jobs in
38-
# the workflow, so loading additional credentials in the terraform_cluster.sh
39-
# script is not necessary.
40-
AWS_AUTH_HELPER: none
4133

4234
jobs:
43-
terraform:
44-
name: Re-terraform ${{ inputs.acs_environment }} clusters
45-
runs-on: ubuntu-latest
46-
permissions:
47-
id-token: write
48-
contents: read
49-
environment: ${{ inputs.github_environment }}
50-
steps:
51-
- name: Set up Go 1.20
52-
uses: actions/setup-go@v3
53-
with:
54-
go-version: "1.20"
55-
- name: Checkout
56-
uses: actions/checkout@v3
57-
with:
58-
fetch-depth: 0 # Critical for correct image detection in deploy script
59-
- name: Configure AWS credentials
60-
uses: aws-actions/configure-aws-credentials@v1-node16
61-
with:
62-
aws-region: ${{ secrets.AWS_REGION }}
63-
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github
64-
- name: Run terraforming on ${{ inputs.deploy_clusters }}
65-
working-directory: ./dp-terraform/helm/rhacs-terraform
66-
run: |
67-
set -euo pipefail
68-
# shellcheck disable=SC2043
69-
for cluster in ${{ inputs.deploy_clusters }}
70-
do
71-
echo "Running script terraform_cluster.sh on ${cluster}"
72-
./terraform_cluster.sh ${{ inputs.acs_environment }} "${cluster}"
73-
echo "Script terraform_cluster.sh on ${cluster} succeeded"
74-
done
75-
7635
deploy-probe:
7736
name: Deploy blackbox monitoring probe service to ${{ inputs.acs_environment }}
7837
runs-on: ubuntu-latest

.github/workflows/deploy-dev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ jobs:
1717
with:
1818
acs_environment: dev
1919
github_environment: development
20-
deploy_clusters: ""
2120
probe_clusters: "acs-dev-dp-01"
2221
dry_run: true

.github/workflows/deploy-integration.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ jobs:
1212
with:
1313
acs_environment: integration
1414
github_environment: integration
15-
deploy_clusters: ""
1615
probe_clusters: "acs-int-us-01"

.github/workflows/deploy-production.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ jobs:
1212
with:
1313
acs_environment: prod
1414
github_environment: production
15-
deploy_clusters: "acs-prod-dp-01 acs-prod-eu-01"
1615
probe_clusters: "acs-prod-dp-01 acs-prod-eu-01"

.github/workflows/deploy-stage.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ jobs:
1212
with:
1313
acs_environment: stage
1414
github_environment: stage
15-
deploy_clusters: "acs-stage-dp-02 acs-stage-eu-02"
1615
probe_clusters: "acs-stage-dp-02 acs-stage-eu-02"

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"filename": "internal/dinosaur/pkg/api/public/api/openapi.yaml",
352352
"hashed_secret": "5b455797b93de5b6a19633ba22127c8a610f5c1b",
353353
"is_verified": false,
354-
"line_number": 1531
354+
"line_number": 1535
355355
}
356356
],
357357
"internal/dinosaur/pkg/services/dinosaurservice_moq.go": [

config/admin-authz-roles-dev.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@
1919
roles:
2020
- "acs-general-engineering"
2121
- "acs-fleet-manager-admin-full"
22+
- method: PUT
23+
roles:
24+
- "acs-general-engineering" # Will include all of ACS engineering. Available also within staging environment.
25+
- "acs-fleet-manager-admin-full" # Prod rover group, will only include selected members + SREs.
26+
- "acs-fleet-manager-admin-write" # Prod rover group, will only include selected members + SREs.

config/admin-authz-roles-prod.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@
1515
- method: POST
1616
roles:
1717
- "acs-fleet-manager-admin-full"
18+
- method: PUT
19+
roles:
20+
- "acs-fleet-manager-admin-full" # Prod rover group, will only include selected members + SREs.
21+
- "acs-fleet-manager-admin-write" # Prod rover group, will only include selected members + SREs.

dev/env/manifests/shared/03-configmap-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ data:
223223
- "acs-general-engineering" # Will include all of ACS engineering. Available also within staging environment.
224224
- "acs-fleet-manager-admin-full" # Prod rover group, will only include selected members + SREs.
225225
- "acs-fleet-manager-admin-write" # Prod rover group, will only include selected members + SREs.
226+
- method: PUT
227+
roles:
228+
- "acs-general-engineering" # Will include all of ACS engineering. Available also within staging environment.
229+
- "acs-fleet-manager-admin-full" # Prod rover group, will only include selected members + SREs.
230+
- "acs-fleet-manager-admin-write" # Prod rover group, will only include selected members + SREs.
226231
admin-authz-roles-prod.yaml: |-
227232
---
228233
- method: GET
@@ -241,6 +246,10 @@ data:
241246
roles:
242247
- "acs-fleet-manager-admin-full" # Prod rover group, will only include selected members + SREs.
243248
- "acs-fleet-manager-admin-write" # Prod rover group, will only include selected members + SREs.
249+
- method: PUT
250+
roles:
251+
- "acs-fleet-manager-admin-full" # Prod rover group, will only include selected members + SREs.
252+
- "acs-fleet-manager-admin-write" # Prod rover group, will only include selected members + SREs.
244253
kind: ConfigMap
245254
metadata:
246255
name: config

0 commit comments

Comments
 (0)