Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-20346 modify fleetshard template for gitops #1396

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -462,78 +462,78 @@
"filename": "templates/service-template.yml",
"hashed_secret": "13032f402fed753c2248419ea4f69f99931f6dbc",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "30025f80f6e22cdafb85db387d50f90ea884576a",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "355f24fd038bcaf85617abdcaa64af51ed19bbcf",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "3d8a1dcd2c3c765ce35c9a9552d23273cc4ddace",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "4ac7b0522761eba972467942cd5cd7499dd2c361",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "7639ab2a6bcf2ea30a055a99468c9cd844d4c22a",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "b56360daf4793d2a74991a972b34d95bc00fb2da",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "c9a73ef9ee8ce9f38437227801c70bcc6740d1a1",
"is_verified": false,
"line_number": 564
"line_number": 574
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "14736999d9940728c5294277831a702f7882dece",
"is_verified": false,
"line_number": 601
"line_number": 611
},
{
"type": "Secret Keyword",
"filename": "templates/service-template.yml",
"hashed_secret": "4e199b4a1c40b497a95fcd1cd896351733849949",
"is_verified": false,
"line_number": 688,
"line_number": 698,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "templates/service-template.yml",
"hashed_secret": "9d51dabe59aa776bef2909d3689374ebb93ab2be",
"is_verified": false,
"line_number": 732
"line_number": 742
}
],
"test/support/certs.json": [
Expand Down Expand Up @@ -564,5 +564,5 @@
}
]
},
"generated_at": "2023-09-15T13:53:14Z"
"generated_at": "2023-10-23T12:42:41Z"
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ spec:
name: fleetshard-sync
key: "aws-secret-access-key"
{{- end }}
- name: RHACS_GITOPS_ENABLED
value: {{ .Values.fleetshardSync.gitops.enabled | quote }}
- name: RHACS_TARGETED_OPERATOR_UPGRADES
value: {{ .Values.fleetshardSync.targetedOperatorUpgrades.enabled | quote }}
volumeMounts:
- mountPath: /var/run/secrets/tokens
name: aws-token
Expand Down
2 changes: 2 additions & 0 deletions dp-terraform/helm/rhacs-terraform/terraform_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ invoke_helm "${SCRIPT_DIR}" rhacs-terraform \
--set fleetshardSync.managedDB.performanceInsights=true \
--set fleetshardSync.aws.region="${CLUSTER_REGION}" \
--set fleetshardSync.aws.roleARN="${FLEETSHARD_SYNC_AWS_ROLE_ARN}" \
--set fleetshardSync.gitops.enabled="${RHACS_GITOPS_ENABLED:-}" \
--set fleetshardSync.targetedOperatorUpgrades.enabled="${RHACS_TARGETED_OPERATOR_UPGRADES:-}" \
--set fleetshardSync.telemetry.storage.endpoint="${FLEETSHARD_SYNC_TELEMETRY_STORAGE_ENDPOINT:-}" \
--set fleetshardSync.telemetry.storage.key="${FLEETSHARD_SYNC_TELEMETRY_STORAGE_KEY:-}" \
--set fleetshardSync.resources.requests.cpu="${FLEETSHARD_SYNC_CPU_REQUEST}" \
Expand Down
5 changes: 4 additions & 1 deletion dp-terraform/helm/rhacs-terraform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ fleetshardSync:
username: ""
password: ""
email: "[email protected]"

gitops:
enabled: false
targetedOperatorUpgrades:
enabled: false
acsOperator:
enabled: false
channel: latest
Expand Down
14 changes: 14 additions & 0 deletions templates/service-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,16 @@ parameters:
description: List of user agents from internal clients
value: "fleet-manager-probe-service"

- name: RHACS_GITOPS_ENABLED
displayName: RHACS Gitops enabled
description: Whether to enable configuration of Centrals through gitops be enabled
value: "false"

- name: RHACS_TARGETED_OPERATOR_UPGRADES
displayName: RHACS Targeted Operator Upgrades
description: Whether to enable targeted operator upgrades
value: "false"

objects:
- kind: ConfigMap
apiVersion: v1
Expand Down Expand Up @@ -1195,6 +1205,10 @@ objects:
value: "${SCANNER_DB_CPU_LIMIT}"
- name: SCANNER_DB_MEMORY_LIMIT
value: "${SCANNER_DB_MEMORY_LIMIT}"
- name: RHACS_GITOPS_ENABLED
value: "${RHACS_GITOPS_ENABLED}"
- name: RHACS_TARGETED_OPERATOR_UPGRADES
value: "${RHACS_TARGETED_OPERATOR_UPGRADES}"
command:
- /usr/local/bin/fleet-manager
- serve
Expand Down
Loading