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

sync: rc-2024-03-12.1 to stage #1710

Merged
merged 30 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f2b3226
ROX-22541: Add scannerB4 components to egress proxy (#1673)
kurlov Feb 20, 2024
ca69737
fix(scannerv4): adjust proxy settings (#1674)
dhaus67 Feb 20, 2024
b6f68ff
Add a legend for the request rate fleet manager widget (#1675)
rukletsov Feb 21, 2024
f7e65c8
Bump dogfood collector memory to prevent OOMs (#1676)
ludydoo Feb 21, 2024
4e45df4
ROX-22358: reset grace period on restore (#1663)
parametalol Feb 22, 2024
47ba50e
Bump github.com/matryer/moq from 0.3.3 to 0.3.4 in /tools (#1658)
dependabot[bot] Feb 26, 2024
106155f
ROX-22557: Count expired centrals (#1677)
parametalol Feb 27, 2024
7c274f8
Bump github.com/getsentry/sentry-go from 0.26.0 to 0.27.0 (#1679)
dependabot[bot] Feb 27, 2024
7cc6261
Bump github.com/gorilla/handlers from 1.5.1 to 1.5.2 (#1678)
dependabot[bot] Feb 27, 2024
491460c
Bump github.com/segmentio/chamber/v2 from 2.13.6 to 2.14.0 in /tools …
dependabot[bot] Feb 27, 2024
9dccd9b
Bump github.com/operator-framework/api from 0.20.0 to 0.22.0 (#1654)
dependabot[bot] Feb 27, 2024
84cd2d5
Bump golang.org/x/oauth2 from 0.16.0 to 0.17.0 (#1652)
dependabot[bot] Feb 27, 2024
234e89c
fix: check if telemetry is enabled (#1686)
parametalol Mar 4, 2024
ad45b7c
Parameterize envoy resources (#1688)
porridge Mar 4, 2024
bb125ca
ROX-22859: Remove unused ACS Operator template (#1680)
kurlov Mar 5, 2024
ea4133e
ROX-22887: Use go 1.20 to build images in CI (#1690)
ebensh Mar 6, 2024
cbfbe2f
Bump github.com/openshift-online/ocm-sdk-go from 0.1.401 to 0.1.405 (…
dependabot[bot] Mar 7, 2024
6fc2eb3
Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 (#1682)
dependabot[bot] Mar 7, 2024
f9e7a82
Delete the duplicate line from the service template (#1691)
kovayur Mar 7, 2024
077ef7d
Bump k8s.io/api from 0.29.1 to 0.29.2 (#1684)
dependabot[bot] Mar 7, 2024
8b43afa
Bump github.com/auth0/go-jwt-middleware/v2 from 2.2.0 to 2.2.1 (#1683)
dependabot[bot] Mar 8, 2024
3c03092
Bump operator-framework/helm-operator from v1.33.0 to v1.34.0 in /dp-…
dependabot[bot] Mar 8, 2024
93d51c3
Rollback helm-operator to v1.33.0 (#1694)
kovayur Mar 8, 2024
04c4084
ROX-22551: Cleanup Fleet Manager after the addon CI/CD implementation…
kovayur Mar 8, 2024
6955276
Bump github.com/aws/aws-sdk-go from 1.50.10 to 1.50.34 (#1693)
dependabot[bot] Mar 11, 2024
7b67351
ROX-22926: Enable dogfood local scanner (#1695)
ludydoo Mar 11, 2024
df0b7ec
ROX-22926: Fix scannerComponent (#1697)
ludydoo Mar 11, 2024
d239061
ROX-22926: Fix scannerComponent (#1699)
ludydoo Mar 11, 2024
a8f61fc
Disable ESO webhook (#1698)
kovayur Mar 11, 2024
7f66fcc
ROX-22593: git hook fix (#1696)
ludydoo Mar 12, 2024
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ jobs:
fetch-depth: 0 # Critical for correct image detection in Makefile
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Go 1.20
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Build and push fleet-manager-tools image to quay.io
if: github.event_name == 'push'
env:
Expand Down
89 changes: 11 additions & 78 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -393,73 +393,6 @@
"line_number": 594
}
],
"pkg/client/iam/client_moq.go": [
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/client_moq.go",
"hashed_secret": "44e17306b837162269a410204daaa5ecee4ec22c",
"is_verified": false,
"line_number": 649
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/client_moq.go",
"hashed_secret": "4595e0fe3be13544e523e5f6c1145f15007f7b58",
"is_verified": false,
"line_number": 650
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/client_moq.go",
"hashed_secret": "539fbe365f6c0db26d473d85a736d318c2f565e5",
"is_verified": false,
"line_number": 991
}
],
"pkg/client/iam/gocloak_moq.go": [
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/gocloak_moq.go",
"hashed_secret": "44e17306b837162269a410204daaa5ecee4ec22c",
"is_verified": false,
"line_number": 9711
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/gocloak_moq.go",
"hashed_secret": "7f0b58c8f07c09a5ed45a784a8e1ea4d3e983d59",
"is_verified": false,
"line_number": 9712
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/gocloak_moq.go",
"hashed_secret": "9b8b876c2782fa992fab14095267bb8757b9fabc",
"is_verified": false,
"line_number": 13092
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/gocloak_moq.go",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 13095
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/gocloak_moq.go",
"hashed_secret": "eb1b883e199141e362a143c51178ab8f09c87751",
"is_verified": false,
"line_number": 13716
},
{
"type": "Secret Keyword",
"filename": "pkg/client/iam/gocloak_moq.go",
"hashed_secret": "1b46ecc8fb47b1b39a420f00f08dbd58e0313188",
"is_verified": false,
"line_number": 14023
}
],
"pkg/client/redhatsso/api/api/openapi.yaml": [
{
"type": "Secret Keyword",
Expand Down Expand Up @@ -493,70 +426,70 @@
"filename": "templates/service-template.yml",
"hashed_secret": "13032f402fed753c2248419ea4f69f99931f6dbc",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "30025f80f6e22cdafb85db387d50f90ea884576a",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "355f24fd038bcaf85617abdcaa64af51ed19bbcf",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "3d8a1dcd2c3c765ce35c9a9552d23273cc4ddace",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "4ac7b0522761eba972467942cd5cd7499dd2c361",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "7639ab2a6bcf2ea30a055a99468c9cd844d4c22a",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "b56360daf4793d2a74991a972b34d95bc00fb2da",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "c9a73ef9ee8ce9f38437227801c70bcc6740d1a1",
"is_verified": false,
"line_number": 524
"line_number": 512
},
{
"type": "Base64 High Entropy String",
"filename": "templates/service-template.yml",
"hashed_secret": "14736999d9940728c5294277831a702f7882dece",
"is_verified": false,
"line_number": 561
"line_number": 549
},
{
"type": "Secret Keyword",
"filename": "templates/service-template.yml",
"hashed_secret": "4e199b4a1c40b497a95fcd1cd896351733849949",
"is_verified": false,
"line_number": 708,
"line_number": 696,
"is_secret": false
}
],
Expand Down Expand Up @@ -586,5 +519,5 @@
}
]
},
"generated_at": "2024-02-05T19:02:34Z"
"generated_at": "2024-03-07T13:45:14Z"
}
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ ACSCS_NAMESPACE ?= acscs
ENABLE_OCM_MOCK ?= false
OCM_MOCK_MODE ?= emulate-server
JWKS_URL ?= "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/certs"
SSO_BASE_URL ?="https://identity.api.stage.openshift.com"
SSO_REALM ?="rhoas" # update your realm here

GO := go
GOFMT := gofmt
Expand Down Expand Up @@ -732,17 +730,12 @@ deploy/service: ENABLE_CENTRAL_EXTERNAL_CERTIFICATE ?= "false"
deploy/service: ENABLE_CENTRAL_LIFE_SPAN ?= "false"
deploy/service: CENTRAL_LIFE_SPAN ?= "48"
deploy/service: OCM_URL ?= "https://api.stage.openshift.com"
deploy/service: SSO_BASE_URL ?= "https://identity.api.stage.openshift.com"
deploy/service: SSO_REALM ?= "rhoas"
deploy/service: MAX_LIMIT_FOR_SSO_GET_CLIENTS ?= "100"
deploy/service: TOKEN_ISSUER_URL ?= "https://sso.redhat.com/auth/realms/redhat-external"
deploy/service: SERVICE_PUBLIC_HOST_URL ?= "https://api.openshift.com"
deploy/service: ENABLE_TERMS_ACCEPTANCE ?= "false"
deploy/service: ENABLE_DENY_LIST ?= "false"
deploy/service: ALLOW_EVALUATOR_INSTANCE ?= "true"
deploy/service: QUOTA_TYPE ?= "quota-management-list"
deploy/service: CENTRAL_OPERATOR_OLM_INDEX_IMAGE ?= "quay.io/osd-addons/managed-central:production-82b42db"
deploy/service: FLEETSHARD_OLM_INDEX_IMAGE ?= "quay.io/osd-addons/fleetshard-operator:production-82b42db"
deploy/service: OBSERVABILITY_CONFIG_REPO ?= "https://api.github.com/repos/bf2fc6cc711aee1a0c2a/observability-resources-mk/contents"
deploy/service: OBSERVABILITY_CONFIG_CHANNEL ?= "resources"
deploy/service: OBSERVABILITY_CONFIG_TAG ?= "main"
Expand All @@ -769,9 +762,6 @@ deploy/service: deploy/envoy deploy/route
-p OCM_URL="$(OCM_URL)" \
-p AMS_URL="${AMS_URL}" \
-p JWKS_URL="$(JWKS_URL)" \
-p SSO_BASE_URL="$(SSO_BASE_URL)" \
-p SSO_REALM="$(SSO_REALM)" \
-p MAX_LIMIT_FOR_SSO_GET_CLIENTS="${MAX_LIMIT_FOR_SSO_GET_CLIENTS}" \
-p TOKEN_ISSUER_URL="${TOKEN_ISSUER_URL}" \
-p SERVICE_PUBLIC_HOST_URL="https://$(shell oc get routes/fleet-manager -o jsonpath="{.spec.host}" -n $(NAMESPACE))" \
-p OBSERVATORIUM_RHSSO_GATEWAY="${OBSERVATORIUM_RHSSO_GATEWAY}" \
Expand All @@ -784,8 +774,6 @@ deploy/service: deploy/envoy deploy/route
-p ENABLE_TERMS_ACCEPTANCE="${ENABLE_TERMS_ACCEPTANCE}" \
-p ALLOW_EVALUATOR_INSTANCE="${ALLOW_EVALUATOR_INSTANCE}" \
-p QUOTA_TYPE="${QUOTA_TYPE}" \
-p FLEETSHARD_OLM_INDEX_IMAGE="${FLEETSHARD_OLM_INDEX_IMAGE}" \
-p CENTRAL_OPERATOR_OLM_INDEX_IMAGE="${CENTRAL_OPERATOR_OLM_INDEX_IMAGE}" \
-p DATAPLANE_CLUSTER_SCALING_TYPE="${DATAPLANE_CLUSTER_SCALING_TYPE}" \
-p CENTRAL_REQUEST_EXPIRATION_TIMEOUT="${CENTRAL_REQUEST_EXPIRATION_TIMEOUT}" \
| oc apply -f - -n $(NAMESPACE)
Expand Down
33 changes: 29 additions & 4 deletions dashboards/grafana-dashboard-acs-fleet-manager.configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ data:
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 413,
"iteration": 1664186027385,
"iteration": 1664186027399,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -190,7 +190,7 @@ data:
},
"gridPos": {
"h": 8,
"w": 24,
"w": 16,
"x": 0,
"y": 8
},
Expand Down Expand Up @@ -237,6 +237,31 @@ data:
"title": "Requests rate",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"y": 8
},
"id": 13,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "* The jagged pattern for outbound requests rate\nis expected. Every ~6h, fleet manager sends\na number of requests (one per each organization)\nto AMS to check whether organizations still\nhave entitlement.",
"mode": "markdown"
},
"pluginVersion": "9.3.8",
"title": "Requests rate: Legend",
"type": "text"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -608,7 +633,7 @@ data:
"type": "timeseries"
}
],
"schemaVersion": 36,
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
Expand Down Expand Up @@ -667,7 +692,7 @@ data:
]
},
"time": {
"from": "now-12h",
"from": "now-14d",
"to": "now"
},
"timepicker": {},
Expand Down
13 changes: 0 additions & 13 deletions docs/legacy/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ This lists the feature flags and their sub-configurations to enable/disable and
- If this is set to `ams`, quotas will be managed via OCM's accounts management service (AMS).

## IAM
- **sso-debug** [Optional] Enables IAM debug logging.
- **sso-base-url** [Required]: The base URL of the IAM instance.
- **redhat-sso-client-id-file** [Required]: The path to the file containing a RedHat SSO account client ID that has access to the ACS service accounts (default: `'secrets/redhatsso-service.clientId'`).
- **redhat-sso-client-secret-file** [Required]: The path to the file containing a RedHat SSO account client secret that has access to the ACS service accounts (default: `'secrets/redhatsso-service.clientSecret'`).
- **sso-insecure** [Optional]: Disables IAM TLS verification

## Metrics Server
- **enable-metrics-https**: Enables HTTPS for the metrics server.
Expand Down Expand Up @@ -117,16 +114,6 @@ This lists the feature flags and their sub-configurations to enable/disable and
- `providers-config-file` [Required]: The path to the file containing a list of supported cloud providers that the service can provision dataplane clusters to (default: `'config/provider-configuration.yaml'`, example: [provider-configuration.yaml](../config/provider-configuration.yaml)).
- `cluster-compute-machine-type` [Optional]: The compute machine type to be used for provisioning a new dataplane cluster (default: `m5.2xlarge`).
- `cluster-openshift-version` [Optional]: The OpenShift version to be installed on the dataplane cluster (default: `""`, empty string indicates that the latest stable version will be used).
- **central-operator-cs-namespace**: Central operator catalog source namespace.
- **central-operator-index-image**: Central operator index image name
- **central-operator-namespace**: Central operator namespace
- **central-operator-package**: Central operator package name
- **central-operator-sub-channel**: Central operator subscription channel
- **fleetshard-operator-cs-namespace**: fleetshard operator catalog source namespace
- **fleetshard-operator-index-image**: fleetshard operator index image name
- **fleetshard-operator-namespace**: fleetshard operator namespace
- **fleetshard-operator-package**: fleetshard operator package name
- **fleetshard-operator-sub-channel**: fleetshard operator subscription channel

## Sentry
- **enable-sentry**: Enables Sentry error reporting.
Expand Down
2 changes: 1 addition & 1 deletion dp-terraform/helm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN microdnf install gzip tar && \
chmod +x /usr/local/bin/yq && \
rm /tmp/yq_linux_amd64.tar.gz && \
cd rhacs-terraform/charts && for filename in *.tgz; do tar -xf "$filename" && rm -f "$filename"; done && \
yq -i 'del(.securityContext.runAsUser) | del(.webhook.securityContext.runAsUser) | del(.certController.securityContext.runAsUser)' external-secrets/values.yaml
yq -i 'del(.securityContext.runAsUser)' external-secrets/values.yaml

ARG FLEETSHARD_SYNC_IMAGE_TAG=main
RUN yq -i ".fleetshardSync.image.tag = strenv(FLEETSHARD_SYNC_IMAGE_TAG)" rhacs-terraform/values.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,32 @@ spec:
{{- if .Values.scanner.db.nodeSelector }}
nodeSelector: {{ toYaml .Values.scanner.db.nodeSelector | nindent 8 }}
{{- end }}

scannerV4:
{{- if .Values.scannerV4.scannerComponent }}
scannerComponent: {{ .Values.scannerV4.scannerComponent }}
{{- end }}
indexer:
{{- if .Values.scannerV4.indexer.resources }}
resources: {{ toYaml .Values.scannerV4.indexer.resources | nindent 8 }}
{{- end }}
{{- if .Values.scannerV4.indexer.tolerations }}
tolerations: {{ toYaml .Values.scannerV4.indexer.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.scannerV4.indexer.nodeSelector }}
nodeSelector: {{ toYaml .Values.scannerV4.indexer.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.scannerV4.indexer.scaling }}
scaling: {{ toYaml .Values.scannerV4.indexer.scaling | nindent 8 }}
{{- end }}

db:
{{- if .Values.scannerV4.db.resources }}
resources: {{ toYaml .Values.scannerV4.db.resources | nindent 8 }}
{{- end }}
{{- if .Values.scannerV4.db.tolerations }}
tolerations: {{ toYaml .Values.scannerV4.db.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.scannerV4.db.nodeSelector }}
nodeSelector: {{ toYaml .Values.scannerV4.db.nodeSelector | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ admissionControl:
collector:
resources:
requests:
memory: 200Mi
memory: 350Mi
cpu: 10m
limits:
memory: 200Mi
memory: 350Mi
collection: "CORE_BPF"
compliance:
resources:
Expand Down Expand Up @@ -51,6 +51,15 @@ scanner:
requests:
memory: 100Mi
cpu: 100m
scannerV4:
scannerComponent: null
indexer:
tolerations: []
nodeSelector: {}
scaling: null
db:
tolerations: []
nodeSelector: {}
sensor:
resources:
requests:
Expand Down
Loading
Loading