diff --git a/.betterer.results b/.betterer.results
index 7d210ad4c1c..44be1e9a8f3 100644
--- a/.betterer.results
+++ b/.betterer.results
@@ -3403,14 +3403,11 @@ exports[`better eslint`] = {
[0, 0, 0, "Unexpected any. Specify a different type.", "5"]
],
"public/app/features/dashboard-scene/saving/provisioned/DashboardPreviewBanner.tsx:5381": [
- [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"],
- [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "1"],
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "0"],
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "1"],
[0, 0, 0, "No untranslated strings. Wrap text with ", "2"],
[0, 0, 0, "No untranslated strings. Wrap text with ", "3"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "4"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "5"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "6"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "7"]
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "4"]
],
"public/app/features/dashboard-scene/saving/provisioned/SaveProvisionedDashboard.tsx:5381": [
[0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"],
@@ -5958,9 +5955,6 @@ exports[`better eslint`] = {
"public/app/features/provisioning/api/types.ts:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
],
- "public/app/features/query-library/api/query.ts:5381": [
- [0, 0, 0, "\'@grafana/runtime/src/services/backendSrv\' import is restricted from being used by a pattern. Import from the public export instead.", "0"]
- ],
"public/app/features/query/components/QueryEditorRow.tsx:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"],
[0, 0, 0, "Do not use any type assertions.", "1"],
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index c4ebfa065bd..e9f86c0090f 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -498,6 +498,7 @@ playwright.config.ts @grafana/plugins-platform-frontend
/public/app/features/explore/ @grafana/observability-traces-and-profiling
/public/app/features/expressions/ @grafana/observability-metrics
/public/app/features/folders/ @grafana/grafana-frontend-platform
+/public/app/features/iam/ @grafana/grafana-frontend-platform
/public/app/features/inspector/ @grafana/dashboards-squad
/public/app/features/invites/ @grafana/grafana-frontend-platform
/public/app/features/library-panels/ @grafana/dashboards-squad
diff --git a/Dockerfile b/Dockerfile
index 7f05689eef2..e3472f9ab19 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,19 @@
+# syntax=docker/dockerfile:1
+
+# to maintain formatting of multiline commands in vscode, add the following to settings.json:
+# "docker.languageserver.formatter.ignoreMultilineInstructions": true
ARG BASE_IMAGE=alpine:3.20
ARG JS_IMAGE=node:22-alpine
ARG JS_PLATFORM=linux/amd64
ARG GO_IMAGE=golang:1.23.5-alpine
+# Default to building locally
ARG GO_SRC=go-builder
ARG JS_SRC=js-builder
-FROM --platform=${JS_PLATFORM} ${JS_IMAGE} as js-builder
+# Javascript build stage
+FROM --platform=${JS_PLATFORM} ${JS_IMAGE} AS js-builder
ENV NODE_OPTIONS=--max_old_space_size=8000
@@ -32,7 +38,8 @@ COPY emails emails
ENV NODE_ENV=production
RUN yarn build
-FROM ${GO_IMAGE} as go-builder
+# Golang build stage
+FROM ${GO_IMAGE} AS go-builder
ARG COMMIT_SHA=""
ARG BUILD_BRANCH=""
@@ -97,7 +104,8 @@ ENV BUILD_BRANCH=${BUILD_BRANCH}
RUN make build-go GO_BUILD_TAGS=${GO_BUILD_TAGS} WIRE_TAGS=${WIRE_TAGS}
-FROM ${BASE_IMAGE} as tgz-builder
+# From-tarball build stage
+FROM ${BASE_IMAGE} AS tgz-builder
WORKDIR /tmp/grafana
@@ -109,8 +117,8 @@ COPY ${GRAFANA_TGZ} /tmp/grafana.tar.gz
RUN tar x -z -f /tmp/grafana.tar.gz --strip-components=1
# helpers for COPY --from
-FROM ${GO_SRC} as go-src
-FROM ${JS_SRC} as js-src
+FROM ${GO_SRC} AS go-src
+FROM ${JS_SRC} AS js-src
# Final stage
FROM ${BASE_IMAGE}
@@ -145,19 +153,19 @@ RUN if grep -i -q alpine /etc/issue; then \
fi
# glibc support for alpine x86_64 only
+# docker run --rm --env STDOUT=1 sgerrand/glibc-builder 2.40 /usr/glibc-compat > glibc-bin-2.40.tar.gz
+ARG GLIBC_VERSION=2.40
+
RUN if grep -i -q alpine /etc/issue && [ `arch` = "x86_64" ]; then \
- wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
- wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-2.35-r0.apk \
- -O /tmp/glibc-2.35-r0.apk && \
- wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-bin-2.35-r0.apk \
- -O /tmp/glibc-bin-2.35-r0.apk && \
- apk add --force-overwrite --no-cache /tmp/glibc-2.35-r0.apk /tmp/glibc-bin-2.35-r0.apk && \
- rm -f /lib64/ld-linux-x86-64.so.2 && \
- ln -s /usr/glibc-compat/lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 && \
- rm -f /tmp/glibc-2.35-r0.apk && \
- rm -f /tmp/glibc-bin-2.35-r0.apk && \
- rm -f /lib/ld-linux-x86-64.so.2 && \
- rm -f /etc/ld.so.cache; \
+ wget -qO- "https://dl.grafana.com/glibc/glibc-bin-$GLIBC_VERSION.tar.gz" | tar zxf - -C / \
+ usr/glibc-compat/lib/ld-linux-x86-64.so.2 \
+ usr/glibc-compat/lib/libc.so.6 \
+ usr/glibc-compat/lib/libdl.so.2 \
+ usr/glibc-compat/lib/libm.so.6 \
+ usr/glibc-compat/lib/libpthread.so.0 \
+ usr/glibc-compat/lib/librt.so.1 && \
+ mkdir /lib64 && \
+ ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64; \
fi
COPY --from=go-src /tmp/grafana/conf ./conf
diff --git a/docs/sources/dashboards/create-reports/_index.md b/docs/sources/dashboards/create-reports/_index.md
index b29c4fe6f72..6ab42e6986b 100644
--- a/docs/sources/dashboards/create-reports/_index.md
+++ b/docs/sources/dashboards/create-reports/_index.md
@@ -19,66 +19,41 @@ title: Create and manage reports
description: Generate and share PDF reports from your Grafana dashboards
weight: 600
refs:
- repeat-panels-or-rows:
+ change-ui-theme:
- pattern: /docs/grafana/
- destination: /docs/grafana//panels-visualizations/configure-panel-options/#configure-repeating-panels
+ destination: /docs/grafana//administration/organization-preferences/#change-grafana-ui-theme
- pattern: /docs/grafana-cloud/
- destination: /docs/grafana-cloud/visualizations/panels-visualizations/configure-panel-options/#configure-repeating-panels
- http-apis:
- - pattern: /docs/grafana/
- destination: /docs/grafana//developers/http_api/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//developers/http_api/
- image-rendering:
- - pattern: /docs/grafana/
- destination: /docs/grafana//setup-grafana/image-rendering/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//setup-grafana/image-rendering/
- rbac:
- - pattern: /docs/grafana/
- destination: /docs/grafana//administration/roles-and-permissions/access-control/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//administration/roles-and-permissions/access-control/
- permission:
- - pattern: /docs/grafana/
- destination: /docs/grafana//administration/roles-and-permissions/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//administration/roles-and-permissions/
- role-based-access-control:
- - pattern: /docs/grafana/
- destination: /docs/grafana//administration/roles-and-permissions/access-control/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//administration/roles-and-permissions/access-control/
- configuration:
- - pattern: /docs/grafana/
- destination: /docs/grafana//setup-grafana/configure-grafana/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//setup-grafana/configure-grafana/
- image-rendering:
- - pattern: /docs/grafana/
- destination: /docs/grafana//setup-grafana/image-rendering/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//setup-grafana/image-rendering/
- templates-and-variables:
- - pattern: /docs/grafana/
- destination: /docs/grafana//dashboards/variables/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana-cloud/visualizations/dashboards/variables/
+ destination: /docs/grafana//administration/organization-preferences/#change-grafana-ui-theme
grafana-enterprise:
- pattern: /docs/grafana/
destination: /docs/grafana//introduction/grafana-enterprise/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana//introduction/grafana-enterprise/
- configuration:
+ image-rendering:
+ - pattern: /docs/grafana/
+ destination: /docs/grafana//setup-grafana/image-rendering/
+ - pattern: /docs/grafana-cloud/
+ destination: /docs/grafana//setup-grafana/image-rendering/
+ max-size-configuration:
+ - pattern: /docs/grafana/
+ destination: /docs/grafana//setup-grafana/configure-grafana/enterprise-configuration/#max_attachment_size_mb
+ - pattern: /docs/grafana-cloud/
+ destination: /docs/grafana//setup-grafana/configure-grafana/enterprise-configuration/#max_attachment_size_mb
+ log-filters:
- pattern: /docs/grafana/
destination: /docs/grafana//setup-grafana/configure-grafana/#filters
- pattern: /docs/grafana-cloud/
destination: /docs/grafana//setup-grafana/configure-grafana/#filters
- time-range-controls:
+ permission:
- pattern: /docs/grafana/
- destination: /docs/grafana//dashboards/use-dashboards/#set-dashboard-time-range
+ destination: /docs/grafana//administration/roles-and-permissions/
- pattern: /docs/grafana-cloud/
- destination: /docs/grafana-cloud/visualizations/dashboards/use-dashboards/#set-dashboard-time-range
+ destination: /docs/grafana//administration/roles-and-permissions/
+ rbac:
+ - pattern: /docs/grafana/
+ destination: /docs/grafana//administration/roles-and-permissions/access-control/
+ - pattern: /docs/grafana-cloud/
+ destination: /docs/grafana//administration/roles-and-permissions/access-control/
send-report:
- pattern: /docs/grafana/
destination: /docs/grafana//developers/http_api/reporting/#send-a-report
@@ -94,62 +69,61 @@ refs:
destination: /docs/grafana//setup-grafana/configure-grafana/#temp_data_lifetime
- pattern: /docs/grafana-cloud/
destination: /docs/grafana//setup-grafana/configure-grafana/#temp_data_lifetime
- rendering-configuration:
+ templates-and-variables:
- pattern: /docs/grafana/
- destination: /docs/grafana//dashboards/create-reports/report-settings/#rendering-configuration
+ destination: /docs/grafana//dashboards/variables/
- pattern: /docs/grafana-cloud/
- destination: /docs/grafana//dashboards/create-reports/report-settings/#rendering-configuration
- reporting-configuration:
+ destination: /docs/grafana-cloud/visualizations/dashboards/variables/
+ time-range-controls:
- pattern: /docs/grafana/
- destination: /docs/grafana//setup-grafana/configure-grafana/enterprise-configuration/#reporting
+ destination: /docs/grafana//dashboards/use-dashboards/#set-dashboard-time-range
- pattern: /docs/grafana-cloud/
- destination: /docs/grafana//setup-grafana/configure-grafana/enterprise-configuration/#reporting
-
+ destination: /docs/grafana-cloud/visualizations/dashboards/use-dashboards/#set-dashboard-time-range
---
# Create and manage reports
-**Reporting** allows you to automatically generate PDFs from any of your dashboards and have Grafana email them to interested parties on a schedule. This is available in Grafana Cloud and in Grafana Enterprise.
-
-{{< admonition type="note" >}}
-If you have [Role-based access control](ref:role-based-access-control) enabled, for some actions you would need to have relevant permissions.
-Refer to specific guides to understand what permissions are required.
-{{< /admonition >}}
-
-Any changes you make to a dashboard used in a report are reflected the next time the report is sent. For example, if you change the time range in the dashboard, then the time range in the report also changes, unless you've configured a custom time range.
+**Reporting** allows you to send automated and scheduled emails from any of your dashboards.
+You can configure several elements of these reports and generate PDFs, CSV files, and embedded images.
+Any changes you make to a dashboard used in a report are reflected the next time the report is sent.
## Requirements
-- SMTP must be configured for reports to be sent. Refer to [SMTP](ref:smtp) in [Configuration](ref:configuration) for more information.
-- The Image Renderer plugin must be installed or the remote rendering service must be set up. Refer to [Image rendering](ref:image-rendering) for more information.
+For Grafana Enterprise, the Reporting feature has the following requirements:
+
+- SMTP must be configured for reports to be sent. Refer to [SMTP configuration documentation](ref:smtp) for more information.
+- The [Grafana image renderer plugin](/grafana/plugins/grafana-image-renderer) (v3.10+) must be installed or the remote rendering service must be set up. Refer to [Image rendering](ref:image-rendering) for more information.
### Rendering configuration
-When generating reports, each panel renders separately before being collected in a PDF. You can configure the per-panel rendering timeout and number of concurrently rendered panels.
+By default, attachments (PDFs, CSV files, and embedded images) larger than 10 MB are not sent, which keeps email servers from rejecting the email.
+You can increase or decrease this limit by configuring the [`max_attachment_size_mb`](ref:max-size-configuration) setting in your `ini` file.
-To make a panel more legible, you can set a scale factor for the rendered images. However, a higher scale factor increases the file size of the generated PDF.
-
-You can also specify custom fonts that support different Unicode scripts. The DejaVu font is the default used for PDF rendering.
-
-These options are available in the [reporting configuration](ref:reporting-configuration) of the `ini` file for Enterprise Grafana.
+When a report file is generated, it's temporarily written to the corresponding folder (`csv`, `pdf`, `png`) in the Grafana `data` folder.
+A background job runs every 10 minutes and removes temporary files.
+You can set how long a file should be stored before being removed by configuring the [`temp_data_lifetime`](ref:temp-data-lifetime) setting in your `ini` file.
## Access control
-When [RBAC](ref:rbac) is enabled, you need to have the relevant [Permissions](ref:permission) to create and manage reports.
+Only organization administrators can create reports by default.
+You can customize who can create reports with [role-based access control (RBAC)](ref:rbac).
+
+When [RBAC](ref:rbac) is enabled, you need to have the relevant [permissions](ref:permission) to create and manage reports.
+Refer to specific guides to understand what permissions are required.
## Create a report
-Only organization administrators can create reports by default. You can customize who can create reports with [Role-based access control](ref:role-based-access-control).
+The report creation process is multi-step, but you don't need to complete these steps in order and you can skip steps by clicking a step name at the top of the page.
-The report creation process is multi-step, but you don't need to complete these steps in order and you can skip steps by clicking a step name at the top of the page:
+You can also save the report as a draft at any step in the process:

To create a report, follow these steps:
-1. Click **Dashboards > Reporting** in the main menu.
+1. In the main menu, click **Dashboards > Reporting**.
1. Click **+ Create a new report**.
-1. Complete the report steps, as needed; you don't need to complete these steps in order and you can skip steps by clicking a step name at the top of the page:
+1. Complete the report steps, as needed:
- [Select dashboard](#1-select-dashboard)
- [Format report](#2-format-report)
- [Schedule](#3-schedule)
@@ -162,16 +136,17 @@ To create a report, follow these steps:
### 1. Select dashboard
-At this step, select the dashboard or dashboards on which the report is based, as well as the variables and time range for those dashboards. The options are:
+At this step, select the dashboard or dashboards on which the report is based, as well as the variables and time ranges for those dashboards.
+The options are:
| Option | Description |
| ------ | ----------- |
-| Source dashboard | Select the dashboard from which you want to generate the report. |
-| [Template variables (optional)](#template-variables) | Select the variable values for the selected dashboard. This option is only displayed if the dashboard has variables. |
-| [Time range (optional)](#time-range) | By default, reports use the saved time range of the dashboard. Optionally, you can change the time range of the report. |
-| Add another dashboard | Add more dashboards to the report. Additional dashboards will be rendered as new pages in the same PDF file, or additional images if you chose to embed images in your report email. You can't add the same dashboard to a report multiple times. |
+| Source dashboard (required) | Select the dashboard from which you want to generate the report. |
+| [Template variables](#template-variables) | Select the variable values for the selected dashboard. This option is only displayed if the dashboard has variables. |
+| [Time range](#time-range) | If you leave the field empty, reports use the saved time range of the dashboard. Optionally, you can change the time range of the report. |
+| Add another dashboard | Add more dashboards to the report. |
@@ -179,30 +154,39 @@ At this step, select the dashboard or dashboards on which the report is based, a
This option is only displayed if the dashboard has variables.
-You can configure report-specific template variables for the dashboard on the report page. The variables that you select will override the variables from the dashboard, and they are used when rendering a PDF file of the report. For detailed information about using template variables, refer to the [Templates and variables](ref:templates-and-variables) section.
+You can configure report-specific template variables for the dashboard on the report page.
+The variables that you select override the variables from the dashboard.
+For detailed information about using template variables, refer to [Variables](ref:templates-and-variables).
-The query variables saved with a report might become out of date if the results of that query change. For example, if your template variable queries for a list of hostnames and a new hostname is added, then it will not be included in the report. If that occurs, the selected variables must be manually updated in the report. If you select the **All** value for the template variable or if you keep the dashboard's original variable selection, then the report stays up-to-date as new values are added.
+The query variables saved with a report might become out-of-date if the results of that query change.
+For example, if your template variable queries for a list of hostnames and a new hostname is added, then it won't be included in the report.
+If that occurs, the selected variables must be manually updated in the report.
+If you select the **All** value for the template variable or if you keep the dashboard's original variable selection, then the report stays up-to-date as new values are added.
#### Time range
-By default, reports use the saved time range of the dashboard. Optionally, you can change the time range of the report by:
-
-- Saving a modified time range to the dashboard. Changing the dashboard time range without saving it doesn't change the time zone of the report.
-- Setting a time range via the **Time range** field in the report form. If specified, the custom time range overrides the time range from the report's dashboard.
+If you leave the **Time range** field empty, reports use the saved time range of the dashboard.
+Optionally, you can change the time range of the report by setting it in the **Time range** field.
+If specified, the custom time range overrides the time range from the report's dashboard.
The page header of the report displays the time range for the dashboard's data queries.
##### Report time zones
-Reports use the time zone of the dashboard from which they’re generated. You can control the time zone for your reports by setting the dashboard to a specific time zone. Note that this affects the display of the dashboard for all users.
+Reports use the time zone of the dashboard from which they're generated.
+You can control the time zone for your reports by setting the dashboard to a specific time zone.
+Note that this affects the display of the dashboard for all users.
-If a dashboard has the **Browser Time** setting, the reports generated from that dashboard use the time zone of the Grafana server. As a result, this time zone might not match the time zone of users creating or receiving the report.
+If a dashboard has the **Browser Time** setting, the reports generated from that dashboard use the time zone of the Grafana server.
+As a result, this time zone might not match the time zone of users creating or receiving the report.
+If you want to use a specific time zone, save the dashboard with a fixed time zone instead of **Browser Time**
-If the time zone is set differently between your Grafana server and its remote image renderer, then the time ranges in the report might be different between the page header and the time axes in the panels. To avoid this, set the time zone to UTC for dashboards when using a remote renderer. Each dashboard's time zone setting is visible in the [time range controls](ref:time-range-controls).
+Each dashboard's time zone setting is visible in the [time range controls](ref:time-range-controls).
### 2. Format report
-At this step, set the report formatting options. You can select multiple options:
+At this step, select one or more report formatting options.
+You can select multiple options, but you must select _at least one_:
- [Attach the report as a PDF](#attach-the-report-as-a-pdf)
- [Include table data as PDF appendix](#table-data-in-pdf) (Public preview only)
@@ -212,13 +196,18 @@ At this step, set the report formatting options. You can select multiple options
#### Attach the report as a PDF
-If you selected the PDF format option, under the **Style the PDF** section, set the following options:
+If you selected the PDF format option under the **Style the PDF** section, you can configure the following options:
-- **Show template variables** - Click the checkbox to select this option.
+- **Configure multiple PDFs** - Click the **Combine all dashboard PDFs in one file** checkbox if you want to generate one PDF file for all the dashboards included in the report. This option is only displayed if your report includes multiple dashboards.
+- **Configure report header** - Click the **Show template variables** checkbox to show dashboard variables.
- **Orientation** - Set the report orientation in **Portrait** or **Landscape**. Refer to the [Layout and orientation table](#layout-and-orientation) to see examples.
- **Layout** - Select one of the following:
- - **Simple** - Renders each panel as full-width across the PDF. Refer to the [Layout and orientation table](#layout-and-orientation) to see examples.
- - **Grid** - Renders the PDF with the same panel arrangement and width as the source dashboard. Refer to the [Layout and orientation table](#layout-and-orientation) to see examples.
+
+ - **Simple** - Renders each panel as full-width across the PDF.
+ - **Grid** - Renders the PDF with the same panel arrangement and width as the source dashboard.
+
+ Refer to the [Layout and orientation table](#layout-and-orientation) to see examples.
+
- **Zoom** - Zoom in to enlarge text in your PDF, or zoom out to see more data (like table columns) per panel.
Click **Preview PDF** in the top-right corner of the screen to view a rendered PDF with the options you selected.
@@ -238,50 +227,40 @@ Click **Preview PDF** in the top-right corner of the screen to view a rendered P
#### Embed a dashboard as an image in the email
-You can send a report email with an image of the dashboard embedded in the email instead of attached as a PDF. In this case, the email recipients can see the dashboard at a glance instead of having to open the PDF.
+You can send a report email with an image of the dashboard embedded in the email.
+This lets the email recipients see the dashboard at a glance.
#### Attach a CSV file of the table panel data
-{{< admonition type="note" >}}
-To use this feature in Grafana Enterprise, you must have [Grafana image renderer plugin](/grafana/plugins/grafana-image-renderer) v3.0.
-{{< /admonition >}}
+You can attach a CSV file to the report email for each table panel on the selected dashboard.
-You can attach a CSV file to the report email for each table panel on the selected dashboard, along with the PDF report. By default, CSV files larger than 10Mb are not sent, which keeps email servers from rejecting the email. You can increase or decrease this limit in the [reporting configuration](ref:rendering-configuration).
-
-This feature relies on the same plugin that supports the [image rendering](ref:image-rendering) features.
-
-When the CSV file is generated, it is temporarily written to the `csv` folder in the Grafana `data` folder.
-
-A background job runs every 10 minutes and removes temporary CSV files. You can configure how long a CSV file should be stored before being removed by configuring the [temp-data-lifetime](ref:temp-data-lifetime) setting. This setting also affects how long a renderer PNG file should be stored.
-
-Click **Download CSV** in the top-right corner of the screen to see the file.
+Click **Download CSV** in the top-right corner of the screen to download a zipped file of the CSV files for your selected dashboard.
#### Table data in PDF
-{{% admonition type="note" %}}
-Available in public preview (`pdfTables` feature toggle) in [Grafana Enterprise](ref:grafana-enterprise) v10.3+ with the [Grafana image renderer plugin](/grafana/plugins/grafana-image-renderer) v3.0+, as well as [Grafana Cloud](/docs/grafana-cloud/).
-{{% /admonition %}}
+{{< admonition type="note" >}}
+Available in public preview (`pdfTables` feature toggle) in [Grafana Enterprise](ref:grafana-enterprise) v10.3+ with the [Grafana image renderer plugin](/grafana/plugins/grafana-image-renderer) v3.0+, as well as in [Grafana Cloud](/docs/grafana-cloud/).
+{{< /admonition >}}
When there's more data in your table visualizations than can be shown in the dashboard PDF, you can select one of these two options to access all table visualization data as PDF in your reports:
-- **Include table data as PDF appendix** - Adds an appendix to the main dashboard PDF.
+- **Include table data as PDF appendix** - Adds an appendix to the dashboard PDF.
- **Attach a separate PDF of table data** - Generates a separate PDF file.
-This feature relies on the same plugin that supports the [image rendering](ref:image-rendering) features.
-
### 3. Schedule
-At this step, set scheduling information. Options vary depending on the frequency you select.
+At this step, set scheduling information.
+Options vary depending on the frequency you select.
| Option | Description |
| ------ | ----------- |
-| Frequency | Scheduled reports can be sent once, or repeated on an hourly, daily, weekly, or monthly basis, or sent at custom intervals. You can also disable scheduling by selecting **Never**, for example to send the report using the API. |
+| Frequency | You can schedule reports to be sent once, or repeated on an hourly, daily, weekly, or monthly basis, or sent at custom intervals. You can also disable scheduling by selecting **Never**. For example, you might want to [send the report using the API](#send-a-report-using-the-api). |
| Time | Choose one of the following:
**Send now** sends the report immediately after you save it. To stop sending the report at some point in the future, add an end date.
**Send later** schedules a report for a later date. When you select this option, the required **Start date**, **Start time**, and **Time zone** options are displayed.
|
-| End date | If you leave the end date empty, the report is sent out indefinitely. |
+| End date | If you leave this field empty, the report is sent out indefinitely. |
| Send only from Monday to Friday | For reports that have an hourly or daily frequency, you can choose to send them only from Monday to Friday. |
-| Send on the last day of the month | When you schedule a report with a monthly frequency, and set the start date between the 29th and the 31st of the month, the report is only sent during the months that have those dates. If you want the report to be sent every month, select this option instead. This way, the report is sent on the last day of every month regardless of how many days there are in any given month. |
+| Send on the last day of the month | When you schedule a report with a monthly frequency, and set the start date between the 29th and the 31st of the month, the report is only sent during the months that have those dates. If you want the report to be sent every month, select the **Send on the last day of the month** option. This way, the report is sent on the last day of every month regardless of how many days there are in the month. |
@@ -289,23 +268,29 @@ At this step, set scheduling information. Options vary depending on the frequenc
At this step, enter information related to sharing the report:
+
+
| Option | Description |
| ------ | ----------- |
-| Report name | Name of the report as you want it to appear in the **Reports** list. The report name also populates the email subject line. |
-| Recipients | Enter the email addresses of the people or teams that you want to receive the report, separated by commas or semicolons. |
+| Report name (required) | The name of the report as you want it to appear in the **Reports** list. The report name also populates the email subject line. |
+| Recipients (required) | Enter the email addresses of the people or teams that you want to receive the report, separated by commas or semicolons. |
| Reply-to email address | The address that appears in the **Reply to** field of the email. |
-| Message | Message body in the email with the report. |
-| Include a dashboard link | Include a link to the dashboard from within the report email. |
+| Message | The body of the message in the email with the report. |
+| Include a dashboard link | Include a links to the dashboards in the report email. |
-Click **Send test email** in the top-right corner of the screen to verify that the configuration works as expected and to verify that emails are working. You can choose to send this email to the recipients configured for the report, or to a different set of email addresses only used for testing. The last saved version of the report will be sent to selected emails.
+
+
+Click **Send test email** in the top-right corner of the screen to verify that the configuration works as expected and to verify that emails are working.
+You can choose to send this email to the recipients configured for the report, or to a different set of email addresses only used for testing.
### 5. Confirm
-At this step, the confirmation page displays all your the settings. Review them and confirm that they're correct or click the provided **Edit** links for each section to make updates.
+At this step, the confirmation page displays all the report settings.
+Review them and confirm that they're correct or click the provided **Edit** links for each section to make updates.
Then, click **Send now** or **Schedule send**.
@@ -313,7 +298,7 @@ You can also save the report as a draft or discard it. Discarding the report is
## Send a report using the API
-You can send reports programmatically with the [send report](ref:send-report) endpoint in the [HTTP APIs](ref:http-apis).
+You can send reports programmatically with the [send report](ref:send-report) endpoint using the HTTP API.
## Manage reports
@@ -321,7 +306,7 @@ On the **Reports** page, you can view and manage your existing reports or create

-### Edit
+### Edit reports
To edit a report, follow these steps:
@@ -331,9 +316,10 @@ To edit a report, follow these steps:
1. When you've finished making changes, click **Confirm** at the top of the screen to go to the last step.
1. Click **Update report**.
-### Pause or resume a report
+### Pause or resume reports {#pause-a-report}
-You can pause and resume sending reports from the report list view. To do this, follow these steps:
+You can pause and resume sending reports from the report list view.
+To do this, follow these steps:
1. In the main menu, click **Dashboards > Reporting**.
1. On the row of the report you want to update, do one of the following:
@@ -341,11 +327,22 @@ You can pause and resume sending reports from the report list view. To do this,
- Click the pause icon - The report won't be sent according to its schedule until it's resumed.
- Click the resume icon - The report resumes on its previous schedule.
+### Delete reports
+
+To delete a report, follow these steps:
+
+1. In the main menu, click **Dashboards > Reporting**.
+1. On the row of the report you want to update, click the trash can icon.
+1. Click **Delete** to confirm.
+
+Deleting a report is irreversible.
+
## Troubleshoot Reporting
-To troubleshoot and get more log information, enable debug logging in the configuration file. Refer to [Configuration](ref:configuration) for more information.
+To troubleshoot and get more log information, enable debug logging in the configuration file.
+Refer to the [log filters configuration documentation](ref:log-filters) for more information.
```bash
[log]
-filters = report:debug
+filters = rendering:debug,report.api:debug,report.render:debug,report.scheduler:debug,report.sender:debug,report.service:debug
```
diff --git a/docs/sources/dashboards/create-reports/report-settings/index.md b/docs/sources/dashboards/create-reports/report-settings/index.md
index c442a4346a8..e0c606a8f65 100644
--- a/docs/sources/dashboards/create-reports/report-settings/index.md
+++ b/docs/sources/dashboards/create-reports/report-settings/index.md
@@ -11,22 +11,12 @@ menuTitle: Settings
title: Reporting settings
description: Manage organizational Reporting settings
weight: 700
-refs:
- grafana-enterprise:
- - pattern: /docs/grafana/
- destination: /docs/grafana//introduction/grafana-enterprise/
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//introduction/grafana-enterprise/
- configuration:
- - pattern: /docs/grafana/
- destination: /docs/grafana//setup-grafana/configure-grafana/#filters
- - pattern: /docs/grafana-cloud/
- destination: /docs/grafana//setup-grafana/configure-grafana/#filters
---
# Reporting settings
-You can configure organization-wide report settings and branding options in **Dashboards > Reporting > Settings**. Settings are applied to all the reports for the current organization.
+You can configure organization-wide report settings and branding options in **Dashboards > Reporting > Settings**.
+Settings are applied to all the reports for the current organization.
## Attachment settings
@@ -34,13 +24,22 @@ The options in this section control the branding and theming of the report attac
### PDF
-- **Company logo** - Company logo displayed in the report PDF. It can be configured by specifying a URL, or by uploading a file. The maximum file size is 16 MB. Defaults to the Grafana logo.
+- **Company logo** - Company logo displayed in the report PDF.
+ Configure it by specifying a URL or uploading a file.
+ The maximum file size is 16 MB.
+ Defaults to the Grafana logo.
-- **Theme** - Theme of the PDF attached to the report. Defaults to **Light**. The selected theme is also applied to the PDFs generated when you click **Preview PDF** during report creation or select the **Export as PDF** option on a dashboard. If **Current** is selected, the PDF in the report will be in the instance theme of the Admin, but the preview and exported PDFs will be in the user's instance theme.
+- **Theme** - Theme of the PDF attached to the report.
+ The selected theme is also applied to the PDFs generated when you click **Preview PDF** during report creation or select the **Export as PDF** option on a dashboard.
+
+ If **Current** is selected, the PDF in the report is in the instance theme of the report creator, but the preview and exported PDFs are in the user's instance theme.
+ Defaults to **Light**.
### Embedded Image
-- **Theme** - Theme of the dashboard image embedded in the email. Defaults to **Dark**.
+- **Theme** - Theme of the dashboard image embedded in the email.
+ If **Current** is selected, the image in the report is in the instance theme of the report creator. If the report creator doesn't have a theme set, then the team, organization, or server theme is used. For more information refer to [Change Grafana UI theme](ref:change-ui-theme).
+ Defaults to **Dark**.
@@ -48,9 +47,10 @@ The options in this section control the branding and theming of the report attac
-- **Company logo** - Company logo displayed in the report email. It can be configured by specifying a URL, or by uploading a file. The maximum file size is 16 MB. Defaults to the Grafana logo.
+- **Company logo** - Company logo displayed in the report email. Configure it by specifying a URL or uploading a file. The maximum file size is 16 MB. Defaults to the Grafana logo.
- **Email footer** - Toggle to enable the report email footer. Select **Sent by** or **None**.
- **Footer link text** - Text of the link in the report email footer. Defaults to `Grafana`.
- **Footer link URL** - Link of the report email footer.
-Currently, the API does not allow for the simultaneous upload of files with identical names for both the email logo and report logo. You can still upload the same file for each logo separately in two distinct steps.
+Currently, the API does not allow for the simultaneous upload of files with identical names for both the email logo and report logo.
+You can still upload the same file for each logo separately in two distinct steps.
diff --git a/docs/sources/dashboards/share-dashboards-panels/_index.md b/docs/sources/dashboards/share-dashboards-panels/_index.md
index b9d84b58ab6..5885b9b8e86 100644
--- a/docs/sources/dashboards/share-dashboards-panels/_index.md
+++ b/docs/sources/dashboards/share-dashboards-panels/_index.md
@@ -44,9 +44,9 @@ refs:
destination: /docs/grafana/grafana-cloud/visualizations/dashboards/share-dashboards-panels/shared-dashboards/
configure-report:
- pattern: /docs/grafana/
- destination: /docs/grafana//dashboards/create-reports/#create-or-update-a-report
+ destination: /docs/grafana//dashboards/create-reports/#create-a-report
- pattern: /docs/grafana-cloud/
- destination: /docs/grafana-cloud/visualizations/dashboards/create-reports/#create-or-update-a-report
+ destination: /docs/grafana-cloud/visualizations/dashboards/create-reports/#create-a-report
image-rendering-config:
- pattern: /docs/grafana/
destination: /docs/grafana//setup-grafana/image-rendering/#configuration
diff --git a/docs/sources/setup-grafana/configure-grafana/enterprise-configuration/index.md b/docs/sources/setup-grafana/configure-grafana/enterprise-configuration/index.md
index c75522253e2..a7ef4fa0733 100644
--- a/docs/sources/setup-grafana/configure-grafana/enterprise-configuration/index.md
+++ b/docs/sources/setup-grafana/configure-grafana/enterprise-configuration/index.md
@@ -144,7 +144,7 @@ Enable or disable the reporting feature. When disabled, no reports are generated
### rendering_timeout
-Timeout for the following reporting rendering requests: generating PDFs, generating embedded dashboard images for report emails, and generating attached CSV files. Default is 10 seconds.
+Timeout for the following reporting rendering requests: generating PDFs, generating embedded dashboard images for report emails, and generating attached CSV files. Default is 10 seconds (`10s`).
### concurrent_render_limit
diff --git a/go.mod b/go.mod
index a495b6e5b3b..fa7f43a9949 100644
--- a/go.mod
+++ b/go.mod
@@ -70,7 +70,7 @@ require (
github.com/googleapis/gax-go/v2 v2.14.1 // @grafana/grafana-backend-group
github.com/gorilla/mux v1.8.1 // @grafana/grafana-backend-group
github.com/gorilla/websocket v1.5.3 // @grafana/grafana-app-platform-squad
- github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a // @grafana/alerting-backend
+ github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65 // @grafana/alerting-backend
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901 // @grafana/identity-access-team
github.com/grafana/authlib/types v0.0.0-20250120145936-5f0e28e7a87c // @grafana/identity-access-team
github.com/grafana/dashboard-linter v0.0.0-20241106223805-1e7999311752 // @grafana/grafana-app-platform-squad
diff --git a/go.sum b/go.sum
index 47d3f876124..28f05284685 100644
--- a/go.sum
+++ b/go.sum
@@ -1500,8 +1500,8 @@ github.com/gorilla/sessions v1.2.1 h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7Fsg
github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM=
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
-github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a h1:44E+I3EPdh/W02Uyfyig86EJKPjvzcF3y0A+FEi1fBk=
-github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a/go.mod h1:QsnoKX/iYZxA4Cv+H+wC7uxutBD8qi8ZW5UJvD2TYmU=
+github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65 h1:dmsycYQzl5JexuV8UxQpT3B79maSvhiIahid4/tezAM=
+github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65/go.mod h1:QsnoKX/iYZxA4Cv+H+wC7uxutBD8qi8ZW5UJvD2TYmU=
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901 h1:nqV1YrtX+ZG+EYB5dcmFMWhg2Y038OMaAHAADbOC9RA=
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901/go.mod h1:/gYfphsNu9v1qYWXxpv1NSvMEMSwvdf8qb8YlgwIRl8=
github.com/grafana/authlib/types v0.0.0-20250120145936-5f0e28e7a87c h1:b0sPDtt33uFdmvUJjSCld3kwE2E49dUvevuUDSJsEuo=
diff --git a/package.json b/package.json
index fd551f5fe24..25ef488c57d 100644
--- a/package.json
+++ b/package.json
@@ -82,7 +82,7 @@
"@grafana/plugin-e2e": "1.17.1",
"@grafana/tsconfig": "^2.0.0",
"@manypkg/get-packages": "^2.2.0",
- "@playwright/test": "1.50.0",
+ "@playwright/test": "1.50.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@react-types/button": "3.10.2",
"@react-types/menu": "3.9.14",
@@ -91,7 +91,7 @@
"@rsdoctor/webpack-plugin": "^0.4.6",
"@rtk-query/codegen-openapi": "^2.0.0",
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1",
- "@stylistic/eslint-plugin-ts": "^2.9.0",
+ "@stylistic/eslint-plugin-ts": "^3.0.0",
"@swc/core": "1.10.12",
"@swc/helpers": "0.5.15",
"@testing-library/dom": "10.4.0",
@@ -146,7 +146,7 @@
"@types/slate": "0.47.11",
"@types/slate-plain-serializer": "0.7.5",
"@types/slate-react": "0.22.9",
- "@types/swagger-ui-react": "4.19.0",
+ "@types/swagger-ui-react": "5.18.0",
"@types/systemjs": "6.15.1",
"@types/tinycolor2": "1.4.6",
"@types/uuid": "10.0.0",
diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts
index f983b75f5fe..2792ff8a74a 100644
--- a/packages/grafana-data/src/types/featureToggles.gen.ts
+++ b/packages/grafana-data/src/types/featureToggles.gen.ts
@@ -255,4 +255,6 @@ export interface FeatureToggles {
elasticsearchImprovedParsing?: boolean;
datasourceConnectionsTab?: boolean;
fetchRulesUsingPost?: boolean;
+ alertingAlertmanagerExtraDedupStage?: boolean;
+ alertingAlertmanagerExtraDedupStageStopPipeline?: boolean;
}
diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go
index 340946621be..f1cd1fe8cf8 100644
--- a/pkg/services/featuremgmt/registry.go
+++ b/pkg/services/featuremgmt/registry.go
@@ -1772,6 +1772,24 @@ var (
HideFromAdminPage: true,
HideFromDocs: true,
},
+ {
+ Name: "alertingAlertmanagerExtraDedupStage",
+ Description: "enables extra deduplication stage in alertmanager that checks that timestamps of the pipeline and the current state are matching",
+ Stage: FeatureStageExperimental,
+ Owner: grafanaAlertingSquad,
+ HideFromAdminPage: true,
+ HideFromDocs: true,
+ RequiresRestart: true,
+ },
+ {
+ Name: "alertingAlertmanagerExtraDedupStageStopPipeline",
+ Description: "works together with alertingAlertmanagerExtraDedupStage, if enabled, it will stop the pipeline if the timestamps are not matching. Otherwise, it will emit a warning",
+ Stage: FeatureStageExperimental,
+ Owner: grafanaAlertingSquad,
+ HideFromAdminPage: true,
+ HideFromDocs: true,
+ RequiresRestart: true,
+ },
}
)
diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv
index 965d4b1fbe5..4d9fae9c95c 100644
--- a/pkg/services/featuremgmt/toggles_gen.csv
+++ b/pkg/services/featuremgmt/toggles_gen.csv
@@ -236,3 +236,5 @@ grafanaAdvisor,experimental,@grafana/plugins-platform-backend,false,false,false
elasticsearchImprovedParsing,experimental,@grafana/aws-datasources,false,false,false
datasourceConnectionsTab,experimental,@grafana/plugins-platform-backend,false,false,true
fetchRulesUsingPost,experimental,@grafana/alerting-squad,false,false,false
+alertingAlertmanagerExtraDedupStage,experimental,@grafana/alerting-squad,false,true,false
+alertingAlertmanagerExtraDedupStageStopPipeline,experimental,@grafana/alerting-squad,false,true,false
diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go
index 64e4b7b2fc3..e149127edf7 100644
--- a/pkg/services/featuremgmt/toggles_gen.go
+++ b/pkg/services/featuremgmt/toggles_gen.go
@@ -954,4 +954,12 @@ const (
// FlagFetchRulesUsingPost
// Use a POST request to list rules by passing down the namespaces user has access to
FlagFetchRulesUsingPost = "fetchRulesUsingPost"
+
+ // FlagAlertingAlertmanagerExtraDedupStage
+ // enables extra deduplication stage in alertmanager that checks that timestamps of the pipeline and the current state are matching
+ FlagAlertingAlertmanagerExtraDedupStage = "alertingAlertmanagerExtraDedupStage"
+
+ // FlagAlertingAlertmanagerExtraDedupStageStopPipeline
+ // works together with alertingAlertmanagerExtraDedupStage, if enabled, it will stop the pipeline if the timestamps are not matching. Otherwise, it will emit a warning
+ FlagAlertingAlertmanagerExtraDedupStageStopPipeline = "alertingAlertmanagerExtraDedupStageStopPipeline"
)
diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json
index 5c3dcb7040e..580121c5120 100644
--- a/pkg/services/featuremgmt/toggles_gen.json
+++ b/pkg/services/featuremgmt/toggles_gen.json
@@ -143,6 +143,36 @@
"codeowner": "@grafana/alerting-squad"
}
},
+ {
+ "metadata": {
+ "name": "alertingAlertmanagerExtraDedupStage",
+ "resourceVersion": "1738251165994",
+ "creationTimestamp": "2025-01-30T15:32:45Z"
+ },
+ "spec": {
+ "description": "enables extra deduplication stage in alertmanager that checks that timestamps of the pipeline and the current state are matching",
+ "stage": "experimental",
+ "codeowner": "@grafana/alerting-squad",
+ "requiresRestart": true,
+ "hideFromAdminPage": true,
+ "hideFromDocs": true
+ }
+ },
+ {
+ "metadata": {
+ "name": "alertingAlertmanagerExtraDedupStageStopPipeline",
+ "resourceVersion": "1738251165994",
+ "creationTimestamp": "2025-01-30T15:32:45Z"
+ },
+ "spec": {
+ "description": "works together with alertingAlertmanagerExtraDedupStage, if enabled, it will stop the pipeline if the timestamps are not matching. Otherwise, it will emit a warning",
+ "stage": "experimental",
+ "codeowner": "@grafana/alerting-squad",
+ "requiresRestart": true,
+ "hideFromAdminPage": true,
+ "hideFromDocs": true
+ }
+ },
{
"metadata": {
"name": "alertingApiServer",
diff --git a/pkg/services/ngalert/ngalert.go b/pkg/services/ngalert/ngalert.go
index 2270620dc76..c7fe68d1d68 100644
--- a/pkg/services/ngalert/ngalert.go
+++ b/pkg/services/ngalert/ngalert.go
@@ -148,6 +148,8 @@ type AlertNG struct {
Api *api.API
httpClientProvider httpclient.Provider
InstanceStore state.InstanceStore
+ // StartupInstanceReader is used to fetch the state of alerts on startup.
+ StartupInstanceReader state.InstanceReader
// Alerting notification services
MultiOrgAlertmanager *notifier.MultiOrgAlertmanager
@@ -404,7 +406,7 @@ func (ng *AlertNG) init() error {
return err
}
- ng.InstanceStore = initInstanceStore(ng.store.SQLStore, ng.Log.New("ngalert.state.instancestore"), ng.FeatureToggles)
+ ng.InstanceStore, ng.StartupInstanceReader = initInstanceStore(ng.store.SQLStore, ng.Log, ng.FeatureToggles)
stateManagerCfg := state.ManagerCfg{
Metrics: ng.Metrics.GetStateMetrics(),
@@ -519,17 +521,30 @@ func (ng *AlertNG) init() error {
return DeclareFixedRoles(ng.AccesscontrolService, ng.FeatureToggles)
}
-func initInstanceStore(sqlStore db.DB, logger log.Logger, featureToggles featuremgmt.FeatureToggles) state.InstanceStore {
+// initInstanceStore initializes the instance store based on the feature toggles.
+// It returns two vales: the instance store that should be used for writing alert instances,
+// and an alert instance reader that can be used to read alert instances on startup.
+func initInstanceStore(sqlStore db.DB, logger log.Logger, featureToggles featuremgmt.FeatureToggles) (state.InstanceStore, state.InstanceReader) {
var instanceStore state.InstanceStore
+ // We init both stores here, but only one will be used based on the feature toggles.
+ // Two stores are needed for the multi-instance reader to work correctly.
+ // It's used to read the state of alerts on startup, and allows switching the feature
+ // flags seamlessly without losing the state of alerts.
+ protoInstanceStore := store.ProtoInstanceDBStore{
+ SQLStore: sqlStore,
+ Logger: logger,
+ FeatureToggles: featureToggles,
+ }
+ simpleInstanceStore := store.InstanceDBStore{
+ SQLStore: sqlStore,
+ Logger: logger,
+ FeatureToggles: featureToggles,
+ }
+
if featureToggles.IsEnabledGlobally(featuremgmt.FlagAlertingSaveStateCompressed) {
logger.Info("Using protobuf-based alert instance store")
- instanceStore = store.ProtoInstanceDBStore{
- SQLStore: sqlStore,
- Logger: logger,
- FeatureToggles: featureToggles,
- }
-
+ instanceStore = protoInstanceStore
// If FlagAlertingSaveStateCompressed is enabled, ProtoInstanceDBStore is used,
// which functions differently from InstanceDBStore. FlagAlertingSaveStatePeriodic is
// not applicable to ProtoInstanceDBStore, so a warning is logged if it is set.
@@ -538,14 +553,10 @@ func initInstanceStore(sqlStore db.DB, logger log.Logger, featureToggles feature
}
} else {
logger.Info("Using simple database alert instance store")
- instanceStore = store.InstanceDBStore{
- SQLStore: sqlStore,
- Logger: logger,
- FeatureToggles: featureToggles,
- }
+ instanceStore = simpleInstanceStore
}
- return instanceStore
+ return instanceStore, state.NewMultiInstanceReader(logger, protoInstanceStore, simpleInstanceStore)
}
func initStatePersister(uaCfg setting.UnifiedAlertingSettings, cfg state.ManagerCfg, featureToggles featuremgmt.FeatureToggles) state.StatePersister {
@@ -605,7 +616,7 @@ func (ng *AlertNG) Run(ctx context.Context) error {
// Also note that this runs synchronously to ensure state is loaded
// before rule evaluation begins, hence we use ctx and not subCtx.
//
- ng.stateManager.Warm(ctx, ng.store, ng.InstanceStore)
+ ng.stateManager.Warm(ctx, ng.store, ng.StartupInstanceReader)
children.Go(func() error {
return ng.schedule.Run(subCtx)
diff --git a/pkg/services/ngalert/ngalert_test.go b/pkg/services/ngalert/ngalert_test.go
index 2012ff930fc..b1930a4c3e6 100644
--- a/pkg/services/ngalert/ngalert_test.go
+++ b/pkg/services/ngalert/ngalert_test.go
@@ -234,8 +234,11 @@ func TestInitInstanceStore(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- instanceStore := initInstanceStore(sqlStore, logger, tt.ft)
+ instanceStore, instanceReader := initInstanceStore(sqlStore, logger, tt.ft)
assert.IsType(t, tt.expectedInstanceStoreType, instanceStore)
+ assert.IsType(t, &state.MultiInstanceReader{}, instanceReader)
+ assert.IsType(t, store.ProtoInstanceDBStore{}, instanceReader.(*state.MultiInstanceReader).ProtoDBReader)
+ assert.IsType(t, store.InstanceDBStore{}, instanceReader.(*state.MultiInstanceReader).DBReader)
})
}
}
diff --git a/pkg/services/ngalert/notifier/alertmanager.go b/pkg/services/ngalert/notifier/alertmanager.go
index f80a2ae2a95..63c05aaefdf 100644
--- a/pkg/services/ngalert/notifier/alertmanager.go
+++ b/pkg/services/ngalert/notifier/alertmanager.go
@@ -10,6 +10,7 @@ import (
"time"
alertingNotify "github.com/grafana/alerting/notify"
+ "github.com/grafana/alerting/notify/stages"
"github.com/grafana/alerting/receivers"
alertingTemplates "github.com/grafana/alerting/templates"
"github.com/prometheus/alertmanager/config"
@@ -17,6 +18,7 @@ import (
amv2 "github.com/prometheus/alertmanager/api/v2/models"
"github.com/grafana/grafana/pkg/infra/log"
+ "github.com/grafana/grafana/pkg/services/featuremgmt"
apimodels "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions"
"github.com/grafana/grafana/pkg/services/ngalert/metrics"
ngmodels "github.com/grafana/grafana/pkg/services/ngalert/models"
@@ -91,7 +93,7 @@ func (m maintenanceOptions) MaintenanceFunc(state alertingNotify.State) (int64,
func NewAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store AlertingStore, stateStore stateStore,
peer alertingNotify.ClusterPeer, decryptFn alertingNotify.GetDecryptedValueFn, ns notifications.Service,
- m *metrics.Alertmanager, withAutogen bool,
+ m *metrics.Alertmanager, featureToggles featuremgmt.FeatureToggles,
) (*alertmanager, error) {
nflog, err := stateStore.GetNotificationLog(ctx)
if err != nil {
@@ -121,6 +123,16 @@ func NewAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store A
return stateStore.SaveNotificationLog(context.Background(), state)
},
}
+ l := log.New("ngalert.notifier.alertmanager", "org", orgID)
+ action := stages.Disabled
+ if featureToggles.IsEnabledGlobally(featuremgmt.FlagAlertingAlertmanagerExtraDedupStage) {
+ if featureToggles.IsEnabledGlobally(featuremgmt.FlagAlertingAlertmanagerExtraDedupStageStopPipeline) {
+ action = stages.StopPipeline
+ } else {
+ action = stages.LogOnly
+ }
+ l.Info("Initializing Alertmanager", "extra_dedup_stage", action)
+ }
amcfg := &alertingNotify.GrafanaAlertmanagerConfig{
ExternalURL: cfg.AppURL,
@@ -132,9 +144,9 @@ func NewAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store A
MaxSilences: cfg.UnifiedAlerting.AlertmanagerMaxSilencesCount,
MaxSilenceSizeBytes: cfg.UnifiedAlerting.AlertmanagerMaxSilenceSizeBytes,
},
+ PipelineAndStateTimestampsMismatchAction: action,
}
- l := log.New("ngalert.notifier.alertmanager", "org", orgID)
gam, err := alertingNotify.NewGrafanaAlertmanager("orgID", orgID, amcfg, peer, l, alertingNotify.NewGrafanaAlertmanagerMetrics(m.Registerer, l))
if err != nil {
return nil, err
@@ -152,7 +164,7 @@ func NewAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store A
logger: l,
// TODO: Preferably, logic around autogen would be outside of the specific alertmanager implementation so that remote alertmanager will get it for free.
- withAutogen: withAutogen,
+ withAutogen: featureToggles.IsEnabled(ctx, featuremgmt.FlagAlertingSimplifiedRouting),
}
return am, nil
diff --git a/pkg/services/ngalert/notifier/alertmanager_test.go b/pkg/services/ngalert/notifier/alertmanager_test.go
index 4f372d0fdda..7033e5f0b8a 100644
--- a/pkg/services/ngalert/notifier/alertmanager_test.go
+++ b/pkg/services/ngalert/notifier/alertmanager_test.go
@@ -11,6 +11,7 @@ import (
"github.com/grafana/grafana/pkg/infra/db"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/services/dashboards"
+ "github.com/grafana/grafana/pkg/services/featuremgmt"
"github.com/grafana/grafana/pkg/services/ngalert/metrics"
"github.com/grafana/grafana/pkg/services/ngalert/store"
"github.com/grafana/grafana/pkg/services/ngalert/tests/fakes"
@@ -52,7 +53,7 @@ func setupAMTest(t *testing.T) *alertmanager {
orgID := 1
stateStore := NewFileStore(int64(orgID), kvStore)
- am, err := NewAlertmanager(context.Background(), 1, cfg, s, stateStore, &NilPeer{}, decryptFn, nil, m, false)
+ am, err := NewAlertmanager(context.Background(), 1, cfg, s, stateStore, &NilPeer{}, decryptFn, nil, m, featuremgmt.WithFeatures())
require.NoError(t, err)
return am
}
diff --git a/pkg/services/ngalert/notifier/multiorg_alertmanager.go b/pkg/services/ngalert/notifier/multiorg_alertmanager.go
index 71140200558..9c7f2cd3fa5 100644
--- a/pkg/services/ngalert/notifier/multiorg_alertmanager.go
+++ b/pkg/services/ngalert/notifier/multiorg_alertmanager.go
@@ -160,7 +160,7 @@ func NewMultiOrgAlertmanager(
moa.factory = func(ctx context.Context, orgID int64) (Alertmanager, error) {
m := metrics.NewAlertmanagerMetrics(moa.metrics.GetOrCreateOrgRegistry(orgID), l)
stateStore := NewFileStore(orgID, kvStore)
- return NewAlertmanager(ctx, orgID, moa.settings, moa.configStore, stateStore, moa.peer, moa.decryptFn, moa.ns, m, featureManager.IsEnabled(ctx, featuremgmt.FlagAlertingSimplifiedRouting))
+ return NewAlertmanager(ctx, orgID, moa.settings, moa.configStore, stateStore, moa.peer, moa.decryptFn, moa.ns, m, featureManager)
}
for _, opt := range opts {
diff --git a/pkg/services/ngalert/state/multi_instance_reader.go b/pkg/services/ngalert/state/multi_instance_reader.go
new file mode 100644
index 00000000000..bf71bd85aab
--- /dev/null
+++ b/pkg/services/ngalert/state/multi_instance_reader.go
@@ -0,0 +1,133 @@
+package state
+
+import (
+ "context"
+ "fmt"
+ "maps"
+ "slices"
+ "time"
+
+ "github.com/grafana/grafana/pkg/infra/log"
+ "github.com/grafana/grafana/pkg/services/ngalert/models"
+)
+
+// MultiInstanceReader merges results from two InstanceReaders.
+//
+// For each rule, it picks the state that has the newer LastEvalTime.
+type MultiInstanceReader struct {
+ ProtoDBReader InstanceReader
+ DBReader InstanceReader
+ logger log.Logger
+}
+
+func NewMultiInstanceReader(logger log.Logger, r1, r2 InstanceReader) *MultiInstanceReader {
+ return &MultiInstanceReader{
+ ProtoDBReader: r1,
+ DBReader: r2,
+ logger: logger,
+ }
+}
+
+// FetchOrgIds merges org IDs from both readers.
+func (m *MultiInstanceReader) FetchOrgIds(ctx context.Context) ([]int64, error) {
+ orgsOne, err := m.ProtoDBReader.FetchOrgIds(ctx)
+ if err != nil {
+ return nil, fmt.Errorf("failed to fetch org IDs from ProtoDBReader: %w", err)
+ }
+
+ orgsTwo, err := m.DBReader.FetchOrgIds(ctx)
+ if err != nil {
+ return nil, fmt.Errorf("failed to fetch org IDs from DBReader: %w", err)
+ }
+
+ orgsSet := make(map[int64]struct{})
+
+ for _, orgID := range orgsOne {
+ orgsSet[orgID] = struct{}{}
+ }
+ for _, orgID := range orgsTwo {
+ orgsSet[orgID] = struct{}{}
+ }
+
+ return slices.Collect(maps.Keys(orgsSet)), nil
+}
+
+// ListAlertInstances fetches alert instances for a query from both readers,
+// groups them by rule UID, and returns the newest instances for each rule as a
+// single slice.
+func (m *MultiInstanceReader) ListAlertInstances(ctx context.Context, cmd *models.ListAlertInstancesQuery) ([]*models.AlertInstance, error) {
+ instancesOne, err := m.ProtoDBReader.ListAlertInstances(ctx, cmd)
+ if err != nil {
+ return nil, fmt.Errorf("failed to list alert instances from ProtoDBReader: %w", err)
+ }
+
+ instancesTwo, err := m.DBReader.ListAlertInstances(ctx, cmd)
+ if err != nil {
+ return nil, fmt.Errorf("failed to list alert instances from DBReader: %w", err)
+ }
+
+ byRuleOne := groupByRuleUID(instancesOne)
+ byRuleTwo := groupByRuleUID(instancesTwo)
+
+ ruleSet := make(map[string]struct{})
+ for uid := range byRuleOne {
+ ruleSet[uid] = struct{}{}
+ }
+ for uid := range byRuleTwo {
+ ruleSet[uid] = struct{}{}
+ }
+
+ merged := make([]*models.AlertInstance, 0)
+ for ruleUID := range ruleSet {
+ sliceA := byRuleOne[ruleUID]
+ sliceB := byRuleTwo[ruleUID]
+ newer := getNewestAlertInstances(m.logger, sliceA, sliceB)
+ merged = append(merged, newer...)
+ }
+
+ return merged, nil
+}
+
+func groupByRuleUID(instances []*models.AlertInstance) map[string][]*models.AlertInstance {
+ result := make(map[string][]*models.AlertInstance)
+ for _, inst := range instances {
+ if inst == nil {
+ continue
+ }
+ result[inst.RuleUID] = append(result[inst.RuleUID], inst)
+ }
+ return result
+}
+
+// getNewestAlertInstances returns the newest alert instances slice
+// by comparing the maximum LastEvalTime in each of them. If one is empty, returns the other.
+func getNewestAlertInstances(logger log.Logger, firstInstances, secondInstances []*models.AlertInstance) []*models.AlertInstance {
+ if len(firstInstances) == 0 {
+ return secondInstances
+ }
+ if len(secondInstances) == 0 {
+ return firstInstances
+ }
+
+ maxFirst := maxLastEvalTime(firstInstances)
+ maxSecond := maxLastEvalTime(secondInstances)
+
+ if maxSecond.After(maxFirst) {
+ logger.Debug("Newer alert instances found", "first_last_eval_time", maxFirst, "second_last_eval_time", maxSecond, "rule_uid", firstInstances[0].RuleUID)
+ return secondInstances
+ }
+ return firstInstances
+}
+
+// maxLastEvalTime finds the maximum LastEvalTime among a slice of alert instances.
+func maxLastEvalTime(instances []*models.AlertInstance) time.Time {
+ var max time.Time
+
+ for _, i := range instances {
+ if i != nil && i.LastEvalTime.After(max) {
+ max = i.LastEvalTime
+ }
+ }
+
+ return max
+}
diff --git a/pkg/services/ngalert/state/multi_instance_reader_test.go b/pkg/services/ngalert/state/multi_instance_reader_test.go
new file mode 100644
index 00000000000..5e20b594162
--- /dev/null
+++ b/pkg/services/ngalert/state/multi_instance_reader_test.go
@@ -0,0 +1,208 @@
+package state
+
+import (
+ "context"
+ "errors"
+ "testing"
+ "time"
+
+ "github.com/stretchr/testify/mock"
+ "github.com/stretchr/testify/require"
+
+ "github.com/grafana/grafana/pkg/infra/log/logtest"
+ "github.com/grafana/grafana/pkg/services/ngalert/models"
+)
+
+type mockInstanceReader struct {
+ mock.Mock
+}
+
+func (m *mockInstanceReader) FetchOrgIds(ctx context.Context) ([]int64, error) {
+ args := m.Called(ctx)
+ return args.Get(0).([]int64), args.Error(1)
+}
+
+func (m *mockInstanceReader) ListAlertInstances(ctx context.Context, cmd *models.ListAlertInstancesQuery) ([]*models.AlertInstance, error) {
+ args := m.Called(ctx, cmd)
+ return args.Get(0).([]*models.AlertInstance), args.Error(1)
+}
+
+func TestMultiInstanceReader_FetchOrgIds(t *testing.T) {
+ tests := []struct {
+ name string
+ mockAOrgIDs []int64
+ mockBOrgIDs []int64
+ mockAError error
+ mockBError error
+ expectedOrgIDs []int64
+ expectError bool
+ }{
+ {
+ name: "both readers empty, no errors",
+ mockAOrgIDs: []int64{},
+ mockBOrgIDs: []int64{},
+ expectedOrgIDs: []int64{},
+ },
+ {
+ name: "simple union, no errors",
+ mockAOrgIDs: []int64{1, 2},
+ mockBOrgIDs: []int64{2, 3},
+ expectedOrgIDs: []int64{1, 2, 3},
+ },
+ {
+ name: "error in readerA",
+ mockAError: errors.New("some error"),
+ expectError: true,
+ },
+ {
+ name: "error in readerB",
+ mockBError: errors.New("another error"),
+ expectError: true,
+ },
+ }
+
+ for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
+ ctx := context.Background()
+
+ readerA := &mockInstanceReader{}
+ if tc.mockAError != nil {
+ readerA.On("FetchOrgIds", mock.Anything).Return([]int64(nil), tc.mockAError).Once()
+ } else {
+ readerA.On("FetchOrgIds", mock.Anything).Return(tc.mockAOrgIDs, nil).Once()
+ }
+
+ readerB := &mockInstanceReader{}
+ if tc.mockBError != nil {
+ readerB.On("FetchOrgIds", mock.Anything).Return([]int64(nil), tc.mockBError).Once()
+ } else {
+ readerB.On("FetchOrgIds", mock.Anything).Return(tc.mockBOrgIDs, nil).Once()
+ }
+
+ multi := NewMultiInstanceReader(&logtest.Fake{}, readerA, readerB)
+ orgIDs, err := multi.FetchOrgIds(ctx)
+
+ if tc.expectError {
+ require.Error(t, err)
+ return
+ }
+ require.NoError(t, err)
+ require.ElementsMatch(t, tc.expectedOrgIDs, orgIDs)
+
+ readerA.AssertExpectations(t)
+ readerB.AssertExpectations(t)
+ })
+ }
+}
+
+func TestMultiInstanceReader_ListAlertInstances(t *testing.T) {
+ t1 := time.Unix(100, 0)
+ t2 := time.Unix(200, 0)
+ t3 := time.Unix(300, 0)
+
+ ruleA := "rule-1"
+ ruleB := "rule-2"
+
+ instAOld := &models.AlertInstance{AlertInstanceKey: models.AlertInstanceKey{RuleUID: ruleA}, LastEvalTime: t1}
+ instANew := &models.AlertInstance{AlertInstanceKey: models.AlertInstanceKey{RuleUID: ruleA}, LastEvalTime: t3}
+ instBMid := &models.AlertInstance{AlertInstanceKey: models.AlertInstanceKey{RuleUID: ruleB}, LastEvalTime: t2}
+ instASameTime := &models.AlertInstance{AlertInstanceKey: models.AlertInstanceKey{RuleUID: ruleA}, LastEvalTime: t1}
+
+ tests := []struct {
+ name string
+ readerAInstances []*models.AlertInstance
+ readerBInstances []*models.AlertInstance
+ readerAError error
+ readerBError error
+ expectedInstances []*models.AlertInstance
+ expectError bool
+ }{
+ {
+ name: "both readers return empty lists",
+ readerAInstances: []*models.AlertInstance{},
+ readerBInstances: []*models.AlertInstance{},
+ expectedInstances: []*models.AlertInstance{},
+ },
+ {
+ name: "when readerB is empty, use instances from readerA",
+ readerAInstances: []*models.AlertInstance{instAOld},
+ readerBInstances: []*models.AlertInstance{},
+ expectedInstances: []*models.AlertInstance{instAOld},
+ },
+ {
+ name: "when readerA is empty, use instances from readerB",
+ readerAInstances: []*models.AlertInstance{},
+ readerBInstances: []*models.AlertInstance{instANew},
+ expectedInstances: []*models.AlertInstance{instANew},
+ },
+ {
+ name: "when same rule exists in both readers, picks instances from reader with newer evaluation time",
+ readerAInstances: []*models.AlertInstance{instAOld},
+ readerBInstances: []*models.AlertInstance{instANew},
+ expectedInstances: []*models.AlertInstance{instANew},
+ },
+ {
+ name: "combines instances across rules using newest evaluation time per rule",
+ readerAInstances: []*models.AlertInstance{instAOld, instBMid},
+ readerBInstances: []*models.AlertInstance{instANew},
+ expectedInstances: []*models.AlertInstance{instANew, instBMid},
+ },
+ {
+ name: "error from readerA",
+ readerAError: errors.New("some error"),
+ expectError: true,
+ },
+ {
+ name: "error from readerB",
+ readerBError: errors.New("another error"),
+ expectError: true,
+ },
+ {
+ name: "nil instances are filtered out from results",
+ readerAInstances: []*models.AlertInstance{nil, instAOld},
+ readerBInstances: []*models.AlertInstance{nil},
+ expectedInstances: []*models.AlertInstance{instAOld},
+ },
+ {
+ name: "when instances have equal evaluation times, picks instances from readerA",
+ readerAInstances: []*models.AlertInstance{instAOld},
+ readerBInstances: []*models.AlertInstance{instASameTime},
+ expectedInstances: []*models.AlertInstance{instAOld},
+ },
+ }
+
+ for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
+ ctx := context.Background()
+
+ mockA := &mockInstanceReader{}
+ if tc.readerAError != nil {
+ mockA.On("ListAlertInstances", mock.Anything, mock.Anything).Return([]*models.AlertInstance(nil), tc.readerAError).Once()
+ } else {
+ mockA.On("ListAlertInstances", mock.Anything, mock.Anything).Return(tc.readerAInstances, nil).Once()
+ }
+
+ mockB := &mockInstanceReader{}
+ if tc.readerBError != nil {
+ mockB.On("ListAlertInstances", mock.Anything, mock.Anything).Return([]*models.AlertInstance(nil), tc.readerBError).Once()
+ } else {
+ mockB.On("ListAlertInstances", mock.Anything, mock.Anything).Return(tc.readerBInstances, nil).Once()
+ }
+
+ multi := NewMultiInstanceReader(&logtest.Fake{}, mockA, mockB)
+ cmd := &models.ListAlertInstancesQuery{RuleOrgID: 1234}
+ got, err := multi.ListAlertInstances(ctx, cmd)
+
+ if tc.expectError {
+ require.Error(t, err)
+ return
+ }
+ require.NoError(t, err)
+
+ require.ElementsMatch(t, tc.expectedInstances, got)
+
+ mockA.AssertExpectations(t)
+ mockB.AssertExpectations(t)
+ })
+ }
+}
diff --git a/pkg/services/ngalert/state/persist.go b/pkg/services/ngalert/state/persist.go
index b4157c8cb69..841a7dacdd9 100644
--- a/pkg/services/ngalert/state/persist.go
+++ b/pkg/services/ngalert/state/persist.go
@@ -10,13 +10,7 @@ import (
// InstanceStore represents the ability to fetch and write alert instances.
type InstanceStore interface {
InstanceReader
-
- SaveAlertInstance(ctx context.Context, instance models.AlertInstance) error
- DeleteAlertInstances(ctx context.Context, keys ...models.AlertInstanceKey) error
- // SaveAlertInstancesForRule overwrites the state for the given rule.
- SaveAlertInstancesForRule(ctx context.Context, key models.AlertRuleKeyWithGroup, instances []models.AlertInstance) error
- DeleteAlertInstancesByRule(ctx context.Context, key models.AlertRuleKeyWithGroup) error
- FullSync(ctx context.Context, instances []models.AlertInstance, batchSize int) error
+ InstanceWriter
}
// InstanceReader provides methods to fetch alert instances.
@@ -25,6 +19,16 @@ type InstanceReader interface {
ListAlertInstances(ctx context.Context, cmd *models.ListAlertInstancesQuery) ([]*models.AlertInstance, error)
}
+// InstanceWriter provides methods to write alert instances.
+type InstanceWriter interface {
+ SaveAlertInstance(ctx context.Context, instance models.AlertInstance) error
+ DeleteAlertInstances(ctx context.Context, keys ...models.AlertInstanceKey) error
+ // SaveAlertInstancesForRule overwrites the state for the given rule.
+ SaveAlertInstancesForRule(ctx context.Context, key models.AlertRuleKeyWithGroup, instances []models.AlertInstance) error
+ DeleteAlertInstancesByRule(ctx context.Context, key models.AlertRuleKeyWithGroup) error
+ FullSync(ctx context.Context, instances []models.AlertInstance, batchSize int) error
+}
+
// RuleReader represents the ability to fetch alert rules.
type RuleReader interface {
ListAlertRules(ctx context.Context, query *models.ListAlertRulesQuery) (models.RulesGroup, error)
diff --git a/pkg/storage/unified/apistore/go.mod b/pkg/storage/unified/apistore/go.mod
index 48c6c358f39..1d4c20ae747 100644
--- a/pkg/storage/unified/apistore/go.mod
+++ b/pkg/storage/unified/apistore/go.mod
@@ -170,7 +170,7 @@ require (
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
github.com/gorilla/mux v1.8.1 // indirect
- github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a // indirect
+ github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65 // indirect
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901 // indirect
github.com/grafana/dataplane/sdata v0.0.9 // indirect
github.com/grafana/dskit v0.0.0-20241105154643-a6b453a88040 // indirect
diff --git a/pkg/storage/unified/apistore/go.sum b/pkg/storage/unified/apistore/go.sum
index 1416f8d41f7..66c9b0db362 100644
--- a/pkg/storage/unified/apistore/go.sum
+++ b/pkg/storage/unified/apistore/go.sum
@@ -547,8 +547,8 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
-github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a h1:44E+I3EPdh/W02Uyfyig86EJKPjvzcF3y0A+FEi1fBk=
-github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a/go.mod h1:QsnoKX/iYZxA4Cv+H+wC7uxutBD8qi8ZW5UJvD2TYmU=
+github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65 h1:dmsycYQzl5JexuV8UxQpT3B79maSvhiIahid4/tezAM=
+github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65/go.mod h1:QsnoKX/iYZxA4Cv+H+wC7uxutBD8qi8ZW5UJvD2TYmU=
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901 h1:nqV1YrtX+ZG+EYB5dcmFMWhg2Y038OMaAHAADbOC9RA=
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901/go.mod h1:/gYfphsNu9v1qYWXxpv1NSvMEMSwvdf8qb8YlgwIRl8=
github.com/grafana/authlib/types v0.0.0-20250120145936-5f0e28e7a87c h1:b0sPDtt33uFdmvUJjSCld3kwE2E49dUvevuUDSJsEuo=
diff --git a/pkg/storage/unified/resource/go.mod b/pkg/storage/unified/resource/go.mod
index 86b8c1c480e..65a305d7eed 100644
--- a/pkg/storage/unified/resource/go.mod
+++ b/pkg/storage/unified/resource/go.mod
@@ -116,7 +116,7 @@ require (
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
github.com/gorilla/mux v1.8.1 // indirect
- github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a // indirect
+ github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65 // indirect
github.com/grafana/dataplane/sdata v0.0.9 // indirect
github.com/grafana/grafana-app-sdk/logging v0.30.0 // indirect
github.com/grafana/grafana-aws-sdk v0.31.5 // indirect
diff --git a/pkg/storage/unified/resource/go.sum b/pkg/storage/unified/resource/go.sum
index 5499abaa0a2..23d2a580ebe 100644
--- a/pkg/storage/unified/resource/go.sum
+++ b/pkg/storage/unified/resource/go.sum
@@ -411,8 +411,8 @@ github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z
github.com/gorilla/mux v1.7.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
-github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a h1:44E+I3EPdh/W02Uyfyig86EJKPjvzcF3y0A+FEi1fBk=
-github.com/grafana/alerting v0.0.0-20250129195454-3e5b80036b7a/go.mod h1:QsnoKX/iYZxA4Cv+H+wC7uxutBD8qi8ZW5UJvD2TYmU=
+github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65 h1:dmsycYQzl5JexuV8UxQpT3B79maSvhiIahid4/tezAM=
+github.com/grafana/alerting v0.0.0-20250130152446-d49e2e0b7d65/go.mod h1:QsnoKX/iYZxA4Cv+H+wC7uxutBD8qi8ZW5UJvD2TYmU=
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901 h1:nqV1YrtX+ZG+EYB5dcmFMWhg2Y038OMaAHAADbOC9RA=
github.com/grafana/authlib v0.0.0-20250123104008-e99947858901/go.mod h1:/gYfphsNu9v1qYWXxpv1NSvMEMSwvdf8qb8YlgwIRl8=
github.com/grafana/authlib/types v0.0.0-20250120145936-5f0e28e7a87c h1:b0sPDtt33uFdmvUJjSCld3kwE2E49dUvevuUDSJsEuo=
diff --git a/pkg/tests/apis/openapi_snapshots/iam.grafana.app-v0alpha1.json b/pkg/tests/apis/openapi_snapshots/iam.grafana.app-v0alpha1.json
new file mode 100644
index 00000000000..a7377164309
--- /dev/null
+++ b/pkg/tests/apis/openapi_snapshots/iam.grafana.app-v0alpha1.json
@@ -0,0 +1,3766 @@
+{
+ "openapi": "3.0.0",
+ "info": {
+ "title": "iam.grafana.app/v0alpha1"
+ },
+ "paths": {
+ "/apis/iam.grafana.app/v0alpha1/": {
+ "get": {
+ "tags": [
+ "API Discovery"
+ ],
+ "description": "Describe the available kubernetes resources",
+ "operationId": "getAPIResources",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/display/{name}": {
+ "get": {
+ "tags": [
+ "DisplayList"
+ ],
+ "description": "connect GET requests to DisplayList",
+ "operationId": "getDisplayList",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "*/*": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.DisplayList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "connect",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "DisplayList"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the DisplayList",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/serviceaccounts": {
+ "get": {
+ "tags": [
+ "ServiceAccount"
+ ],
+ "description": "list objects of kind ServiceAccount",
+ "operationId": "listServiceAccount",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "ServiceAccount"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/serviceaccounts/{name}": {
+ "get": {
+ "tags": [
+ "ServiceAccount"
+ ],
+ "description": "read the specified ServiceAccount",
+ "operationId": "getServiceAccount",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccount"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccount"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccount"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "get",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "ServiceAccount"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the ServiceAccount",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/serviceaccounts/{name}/tokens": {
+ "get": {
+ "tags": [
+ "ServiceAccount"
+ ],
+ "description": "connect GET requests to tokens of ServiceAccount",
+ "operationId": "getServiceAccountTokens",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "*/*": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserTeamList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "connect",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "UserTeamList"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the UserTeamList",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/ssosettings": {
+ "get": {
+ "tags": [
+ "SSOSetting"
+ ],
+ "description": "list objects of kind SSOSetting",
+ "operationId": "listSSOSetting",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "SSOSetting"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/ssosettings/{name}": {
+ "get": {
+ "tags": [
+ "SSOSetting"
+ ],
+ "description": "read the specified SSOSetting",
+ "operationId": "getSSOSetting",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "get",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "SSOSetting"
+ }
+ },
+ "put": {
+ "tags": [
+ "SSOSetting"
+ ],
+ "description": "replace the specified SSOSetting",
+ "operationId": "replaceSSOSetting",
+ "parameters": [
+ {
+ "name": "dryRun",
+ "in": "query",
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldManager",
+ "in": "query",
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldValidation",
+ "in": "query",
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "*/*": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ }
+ }
+ },
+ "201": {
+ "description": "Created",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "put",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "SSOSetting"
+ }
+ },
+ "delete": {
+ "tags": [
+ "SSOSetting"
+ ],
+ "description": "delete a SSOSetting",
+ "operationId": "deleteSSOSetting",
+ "parameters": [
+ {
+ "name": "dryRun",
+ "in": "query",
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "gracePeriodSeconds",
+ "in": "query",
+ "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "ignoreStoreReadErrorWithClusterBreakingPotential",
+ "in": "query",
+ "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "orphanDependents",
+ "in": "query",
+ "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "propagationPolicy",
+ "in": "query",
+ "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "*/*": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status"
+ }
+ }
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "delete",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "SSOSetting"
+ }
+ },
+ "patch": {
+ "tags": [
+ "SSOSetting"
+ ],
+ "description": "partially update the specified SSOSetting",
+ "operationId": "updateSSOSetting",
+ "parameters": [
+ {
+ "name": "dryRun",
+ "in": "query",
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldManager",
+ "in": "query",
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldValidation",
+ "in": "query",
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "force",
+ "in": "query",
+ "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/apply-patch+yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Patch"
+ }
+ },
+ "application/json-patch+json": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Patch"
+ }
+ },
+ "application/merge-patch+json": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Patch"
+ }
+ },
+ "application/strategic-merge-patch+json": {
+ "schema": {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Patch"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ }
+ }
+ },
+ "201": {
+ "description": "Created",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "patch",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "SSOSetting"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the SSOSetting",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/teambindings": {
+ "get": {
+ "tags": [
+ "TeamBinding"
+ ],
+ "description": "list objects of kind TeamBinding",
+ "operationId": "listTeamBinding",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "TeamBinding"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/teambindings/{name}": {
+ "get": {
+ "tags": [
+ "TeamBinding"
+ ],
+ "description": "read the specified TeamBinding",
+ "operationId": "getTeamBinding",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBinding"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBinding"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBinding"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "get",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "TeamBinding"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the TeamBinding",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/teams": {
+ "get": {
+ "tags": [
+ "Team"
+ ],
+ "description": "list objects of kind Team",
+ "operationId": "listTeam",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "Team"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/teams/{name}": {
+ "get": {
+ "tags": [
+ "Team"
+ ],
+ "description": "read the specified Team",
+ "operationId": "getTeam",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Team"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Team"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Team"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "get",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "Team"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the Team",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/teams/{name}/members": {
+ "get": {
+ "tags": [
+ "Team"
+ ],
+ "description": "connect GET requests to members of Team",
+ "operationId": "getTeamMembers",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "*/*": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamMemberList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "connect",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "TeamMemberList"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the TeamMemberList",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/users": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "description": "list objects of kind User",
+ "operationId": "listUser",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "User"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/users/{name}": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "description": "read the specified User",
+ "operationId": "getUser",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.User"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.User"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.User"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "get",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "User"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the User",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/namespaces/{namespace}/users/{name}/teams": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "description": "connect GET requests to teams of User",
+ "operationId": "getUserTeams",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "*/*": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserTeamList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "connect",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "UserTeamList"
+ }
+ },
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name of the UserTeamList",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "namespace",
+ "in": "path",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/serviceaccounts": {
+ "get": {
+ "tags": [
+ "ServiceAccount"
+ ],
+ "description": "list objects of kind ServiceAccount",
+ "operationId": "listServiceAccountForAllNamespaces",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "ServiceAccount"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/ssosettings": {
+ "get": {
+ "tags": [
+ "SSOSetting"
+ ],
+ "description": "list objects of kind SSOSetting",
+ "operationId": "listSSOSettingForAllNamespaces",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "SSOSetting"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/teambindings": {
+ "get": {
+ "tags": [
+ "TeamBinding"
+ ],
+ "description": "list objects of kind TeamBinding",
+ "operationId": "listTeamBindingForAllNamespaces",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "TeamBinding"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/teams": {
+ "get": {
+ "tags": [
+ "Team"
+ ],
+ "description": "list objects of kind Team",
+ "operationId": "listTeamForAllNamespaces",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "Team"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ },
+ "/apis/iam.grafana.app/v0alpha1/users": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "description": "list objects of kind User",
+ "operationId": "listUserForAllNamespaces",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/json;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/vnd.kubernetes.protobuf;stream=watch": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ },
+ "application/yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList"
+ }
+ }
+ }
+ }
+ },
+ "x-kubernetes-action": "list",
+ "x-kubernetes-group-version-kind": {
+ "group": "iam.grafana.app",
+ "version": "v0alpha1",
+ "kind": "User"
+ }
+ },
+ "parameters": [
+ {
+ "name": "allowWatchBookmarks",
+ "in": "query",
+ "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "continue",
+ "in": "query",
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "fieldSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "labelSelector",
+ "in": "query",
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "pretty",
+ "in": "query",
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersion",
+ "in": "query",
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "resourceVersionMatch",
+ "in": "query",
+ "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
+ "schema": {
+ "type": "string",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "sendInitialEvents",
+ "in": "query",
+ "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "timeoutSeconds",
+ "in": "query",
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
+ "schema": {
+ "type": "integer",
+ "uniqueItems": true
+ }
+ },
+ {
+ "name": "watch",
+ "in": "query",
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
+ "schema": {
+ "type": "boolean",
+ "uniqueItems": true
+ }
+ }
+ ]
+ }
+ },
+ "components": {
+ "schemas": {
+ "com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.Unstructured": {
+ "type": "object",
+ "additionalProperties": true,
+ "x-kubernetes-preserve-unknown-fields": true
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Display": {
+ "type": "object",
+ "required": [
+ "identity",
+ "displayName"
+ ],
+ "properties": {
+ "avatarURL": {
+ "description": "AvatarURL is the url where we can get the avatar for identity",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Display name for identity.",
+ "type": "string",
+ "default": ""
+ },
+ "identity": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.IdentityRef"
+ }
+ ]
+ },
+ "internalId": {
+ "description": "InternalID is the legacy numreric id for identity, this is deprecated and should be phased out",
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.DisplayList": {
+ "type": "object",
+ "required": [
+ "keys",
+ "display"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "display": {
+ "description": "Matching items (the caller may need to remap from keys to results)",
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Display"
+ }
+ ]
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "invalidKeys": {
+ "description": "Input keys that were not useable",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "set"
+ },
+ "keys": {
+ "description": "Request keys used to lookup the display value",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "set"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "DisplayList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "DisplayList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.IdentityRef": {
+ "type": "object",
+ "required": [
+ "type",
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "Name is the unique identifier for identity, guaranteed jo be a unique value for the type within a namespace.",
+ "type": "string",
+ "default": ""
+ },
+ "type": {
+ "description": "Type of identity e.g. \"user\". For a full list see https://github.com/grafana/authlib/blob/2f8d13a83ca3e82da08b53726de1697ee5b5b4cc/claims/type.go#L15-L24",
+ "type": "string",
+ "default": ""
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ }
+ ]
+ },
+ "spec": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingSpec"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "SSOSetting",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "SSOSetting",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSetting"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "SSOSettingList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "SSOSettingList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.SSOSettingSpec": {
+ "description": "SSOSettingSpec defines model for SSOSettingSpec.",
+ "type": "object",
+ "required": [
+ "source",
+ "settings"
+ ],
+ "properties": {
+ "settings": {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.Unstructured"
+ },
+ "source": {
+ "description": "Possible enum values:\n - `\"db\"`\n - `\"system\"` system is from config file, env or argument",
+ "type": "string",
+ "default": "",
+ "enum": [
+ "db",
+ "system"
+ ]
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccount": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ }
+ ]
+ },
+ "spec": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountSpec"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "ServiceAccount",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "ServiceAccount",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccount"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "ServiceAccountList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "ServiceAccountList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.ServiceAccountSpec": {
+ "type": "object",
+ "properties": {
+ "disabled": {
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Team": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ }
+ ]
+ },
+ "spec": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamSpec"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "Team",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "Team",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBinding": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ }
+ ]
+ },
+ "spec": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingSpec"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamBinding",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamBinding",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBinding"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamBindingList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamBindingList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamBindingSpec": {
+ "type": "object",
+ "properties": {
+ "subjects": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamSubject"
+ }
+ ]
+ }
+ },
+ "team": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamRef"
+ }
+ ]
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.Team"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamMember": {
+ "type": "object",
+ "required": [
+ "identity",
+ "displayName"
+ ],
+ "properties": {
+ "avatarURL": {
+ "description": "AvatarURL is the url where we can get the avatar for identity",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Display name for identity.",
+ "type": "string",
+ "default": ""
+ },
+ "external": {
+ "description": "External is set if member ship was synced from external IDP.",
+ "type": "boolean"
+ },
+ "identity": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.IdentityRef"
+ }
+ ]
+ },
+ "internalId": {
+ "description": "InternalID is the legacy numreric id for identity, this is deprecated and should be phased out",
+ "type": "integer",
+ "format": "int64"
+ },
+ "permission": {
+ "description": "Permission member has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
+ "type": "string",
+ "enum": [
+ "admin",
+ "member"
+ ]
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamMemberList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamMember"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamMemberList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "TeamMemberList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamRef": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name is the unique identifier for a team.",
+ "type": "string"
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamSpec": {
+ "type": "object",
+ "properties": {
+ "email": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamSubject": {
+ "type": "object",
+ "required": [
+ "identity"
+ ],
+ "properties": {
+ "identity": {
+ "description": "Identity is a reference to the identity of this subject.",
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.IdentityRef"
+ }
+ ]
+ },
+ "permission": {
+ "description": "Permission subject has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
+ "type": "string",
+ "enum": [
+ "admin",
+ "member"
+ ]
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.User": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ }
+ ]
+ },
+ "spec": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserSpec"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "User",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "User",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.User"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "UserList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "UserList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserSpec": {
+ "type": "object",
+ "properties": {
+ "disabled": {
+ "type": "boolean"
+ },
+ "email": {
+ "type": "string"
+ },
+ "emailVerified": {
+ "type": "boolean"
+ },
+ "login": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserTeam": {
+ "type": "object",
+ "properties": {
+ "permission": {
+ "description": "Possible enum values:\n - `\"admin\"`\n - `\"member\"`",
+ "type": "string",
+ "enum": [
+ "admin",
+ "member"
+ ]
+ },
+ "teamRef": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.TeamRef"
+ }
+ ]
+ },
+ "title": {
+ "type": "string"
+ }
+ }
+ },
+ "com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserTeamList": {
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apis.iam.v0alpha1.UserTeam"
+ }
+ ]
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ }
+ },
+ "x-kubernetes-group-version-kind": [
+ {
+ "group": "iam.grafana.app",
+ "kind": "UserTeamList",
+ "version": "__internal"
+ },
+ {
+ "group": "iam.grafana.app",
+ "kind": "UserTeamList",
+ "version": "v0alpha1"
+ }
+ ]
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": {
+ "description": "APIResource specifies the name of a resource and whether it is namespaced.",
+ "type": "object",
+ "required": [
+ "name",
+ "singularName",
+ "namespaced",
+ "kind",
+ "verbs"
+ ],
+ "properties": {
+ "categories": {
+ "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "group": {
+ "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".",
+ "type": "string"
+ },
+ "kind": {
+ "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
+ "type": "string",
+ "default": ""
+ },
+ "name": {
+ "description": "name is the plural name of the resource.",
+ "type": "string",
+ "default": ""
+ },
+ "namespaced": {
+ "description": "namespaced indicates if a resource is namespaced or not.",
+ "type": "boolean",
+ "default": false
+ },
+ "shortNames": {
+ "description": "shortNames is a list of suggested short names of the resource.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "singularName": {
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.",
+ "type": "string",
+ "default": ""
+ },
+ "storageVersionHash": {
+ "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.",
+ "type": "string"
+ },
+ "verbs": {
+ "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ }
+ },
+ "version": {
+ "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList": {
+ "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.",
+ "type": "object",
+ "required": [
+ "groupVersion",
+ "resources"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "groupVersion": {
+ "description": "groupVersion is the group and version this APIResourceList is for.",
+ "type": "string",
+ "default": ""
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "resources": {
+ "description": "resources contains the name of the resources and if they are namespaced.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource"
+ }
+ ]
+ },
+ "x-kubernetes-list-type": "atomic"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": {
+ "description": "DeleteOptions may be provided when deleting an API object.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "dryRun": {
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "gracePeriodSeconds": {
+ "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "ignoreStoreReadErrorWithClusterBreakingPotential": {
+ "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
+ "type": "boolean"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "orphanDependents": {
+ "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
+ "type": "boolean"
+ },
+ "preconditions": {
+ "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions"
+ }
+ ]
+ },
+ "propagationPolicy": {
+ "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": {
+ "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
+ "type": "object"
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": {
+ "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
+ "type": "object",
+ "properties": {
+ "continue": {
+ "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.",
+ "type": "string"
+ },
+ "remainingItemCount": {
+ "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "resourceVersion": {
+ "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
+ "type": "string"
+ },
+ "selfLink": {
+ "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": {
+ "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.",
+ "type": "string"
+ },
+ "fieldsType": {
+ "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"",
+ "type": "string"
+ },
+ "fieldsV1": {
+ "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1"
+ }
+ ]
+ },
+ "manager": {
+ "description": "Manager is an identifier of the workflow managing these fields.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.",
+ "type": "string"
+ },
+ "subresource": {
+ "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.",
+ "type": "string"
+ },
+ "time": {
+ "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
+ }
+ ]
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": {
+ "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
+ "type": "object",
+ "properties": {
+ "annotations": {
+ "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "default": ""
+ }
+ },
+ "creationTimestamp": {
+ "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
+ }
+ ]
+ },
+ "deletionGracePeriodSeconds": {
+ "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "deletionTimestamp": {
+ "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
+ }
+ ]
+ },
+ "finalizers": {
+ "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "set",
+ "x-kubernetes-patch-strategy": "merge"
+ },
+ "generateName": {
+ "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency",
+ "type": "string"
+ },
+ "generation": {
+ "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "labels": {
+ "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "default": ""
+ }
+ },
+ "managedFields": {
+ "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry"
+ }
+ ]
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "name": {
+ "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names",
+ "type": "string"
+ },
+ "namespace": {
+ "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces",
+ "type": "string"
+ },
+ "ownerReferences": {
+ "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference"
+ }
+ ]
+ },
+ "x-kubernetes-list-map-keys": [
+ "uid"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "uid",
+ "x-kubernetes-patch-strategy": "merge"
+ },
+ "resourceVersion": {
+ "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
+ "type": "string"
+ },
+ "selfLink": {
+ "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.",
+ "type": "string"
+ },
+ "uid": {
+ "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": {
+ "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.",
+ "type": "object",
+ "required": [
+ "apiVersion",
+ "kind",
+ "name",
+ "uid"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "API version of the referent.",
+ "type": "string",
+ "default": ""
+ },
+ "blockOwnerDeletion": {
+ "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.",
+ "type": "boolean"
+ },
+ "controller": {
+ "description": "If true, this reference points to the managing controller.",
+ "type": "boolean"
+ },
+ "kind": {
+ "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string",
+ "default": ""
+ },
+ "name": {
+ "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names",
+ "type": "string",
+ "default": ""
+ },
+ "uid": {
+ "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
+ "type": "string",
+ "default": ""
+ }
+ },
+ "x-kubernetes-map-type": "atomic"
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.Patch": {
+ "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.",
+ "type": "object"
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": {
+ "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.",
+ "type": "object",
+ "properties": {
+ "resourceVersion": {
+ "description": "Specifies the target ResourceVersion",
+ "type": "string"
+ },
+ "uid": {
+ "description": "Specifies the target UID.",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.Status": {
+ "description": "Status is a return value for calls that don't return other objects.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "code": {
+ "description": "Suggested HTTP return code for this status, 0 if not set.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "details": {
+ "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails"
+ }
+ ],
+ "x-kubernetes-list-type": "atomic"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "message": {
+ "description": "A human-readable description of the status of this operation.",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ ]
+ },
+ "reason": {
+ "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.",
+ "type": "string"
+ },
+ "status": {
+ "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause": {
+ "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.",
+ "type": "object",
+ "properties": {
+ "field": {
+ "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"",
+ "type": "string"
+ },
+ "message": {
+ "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.",
+ "type": "string"
+ },
+ "reason": {
+ "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails": {
+ "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.",
+ "type": "object",
+ "properties": {
+ "causes": {
+ "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause"
+ }
+ ]
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "group": {
+ "description": "The group attribute of the resource associated with the status StatusReason.",
+ "type": "string"
+ },
+ "kind": {
+ "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).",
+ "type": "string"
+ },
+ "retryAfterSeconds": {
+ "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "uid": {
+ "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.apimachinery.pkg.apis.meta.v1.Time": {
+ "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/pkg/tests/apis/openapi_test.go b/pkg/tests/apis/openapi_test.go
index 3270e571a81..43ca0b0a273 100644
--- a/pkg/tests/apis/openapi_test.go
+++ b/pkg/tests/apis/openapi_test.go
@@ -70,6 +70,9 @@ func TestIntegrationOpenAPIs(t *testing.T) {
}, {
Group: "provisioning.grafana.app",
Version: "v0alpha1",
+ }, {
+ Group: "iam.grafana.app",
+ Version: "v0alpha1",
}}
for _, gv := range groups {
VerifyOpenAPISnapshots(t, dir, gv, h)
diff --git a/public/app/core/reducers/root.ts b/public/app/core/reducers/root.ts
index bb310e94c19..4c7df560bf9 100644
--- a/public/app/core/reducers/root.ts
+++ b/public/app/core/reducers/root.ts
@@ -28,6 +28,7 @@ import usersReducers from 'app/features/users/state/reducers';
import templatingReducers from 'app/features/variables/state/keyedVariablesReducer';
import { alertingApi } from '../../features/alerting/unified/api/alertingApi';
+import { iamApi } from '../../features/iam/api/api';
import { userPreferencesAPI } from '../../features/preferences/api';
import { provisioningAPI } from '../../features/provisioning/api';
import { queryLibraryApi } from '../../features/query-library/api/factory';
@@ -61,6 +62,7 @@ const rootReducers = {
[browseDashboardsAPI.reducerPath]: browseDashboardsAPI.reducer,
[cloudMigrationAPI.reducerPath]: cloudMigrationAPI.reducer,
[queryLibraryApi.reducerPath]: queryLibraryApi.reducer,
+ [iamApi.reducerPath]: iamApi.reducer,
[userPreferencesAPI.reducerPath]: userPreferencesAPI.reducer,
[provisioningAPI.reducerPath]: provisioningAPI.reducer,
};
diff --git a/public/app/features/explore/QueryLibrary/QueryTemplatesList.test.tsx b/public/app/features/explore/QueryLibrary/QueryTemplatesList.test.tsx
index 21d29d1f808..15ec78719e5 100644
--- a/public/app/features/explore/QueryLibrary/QueryTemplatesList.test.tsx
+++ b/public/app/features/explore/QueryLibrary/QueryTemplatesList.test.tsx
@@ -1,7 +1,7 @@
import { render, waitFor, screen } from '@testing-library/react';
+import { AnnoKeyCreatedBy } from '../../apiserver/types';
import { ListQueryTemplateApiResponse } from '../../query-library/api/endpoints.gen';
-import { CREATED_BY_KEY } from '../../query-library/api/types';
import { QueryTemplatesList } from './QueryTemplatesList';
import { QueryActionButtonProps } from './types';
@@ -117,7 +117,7 @@ const testItems = [
name: 'TEST_QUERY',
creationTimestamp: '2025-01-01T11:11:11.00Z',
annotations: {
- [CREATED_BY_KEY]: 'viewer:JohnDoe',
+ [AnnoKeyCreatedBy]: 'viewer:JohnDoe',
},
},
spec: {
diff --git a/public/app/features/explore/QueryLibrary/QueryTemplatesList.tsx b/public/app/features/explore/QueryLibrary/QueryTemplatesList.tsx
index 076e1664cb4..946e3de9eea 100644
--- a/public/app/features/explore/QueryLibrary/QueryTemplatesList.tsx
+++ b/public/app/features/explore/QueryLibrary/QueryTemplatesList.tsx
@@ -10,7 +10,6 @@ import { useListQueryTemplateQuery } from 'app/features/query-library';
import { QueryTemplate } from 'app/features/query-library/types';
import { convertDataQueryResponseToQueryTemplates } from '../../query-library/api/mappers';
-import { UserDataQueryResponse } from '../../query-library/api/types';
import { QueryLibraryProps } from './QueryLibrary';
import { queryLibraryTrackFilterDatasource } from './QueryLibraryAnalyticsEvents';
@@ -33,9 +32,9 @@ export function QueryTemplatesList(props: QueryTemplatesListProps) {
const styles = useStyles2(getStyles);
const loadUsersResult = useLoadUsersWithError(data);
- const userNames = loadUsersResult.value ? loadUsersResult.value.display.map((user) => user.displayName) : [];
+ const userNames = loadUsersResult.data ? loadUsersResult.data.display.map((user) => user.displayName) : [];
- const loadQueryMetadataResult = useLoadQueryMetadataWithError(data, loadUsersResult.value);
+ const loadQueryMetadataResult = useLoadQueryMetadataWithError(data, loadUsersResult.data);
// Filtering right now is done just on the frontend until there is better backend support for this.
const filteredRows = useMemo(
@@ -61,7 +60,7 @@ export function QueryTemplatesList(props: QueryTemplatesListProps) {
);
}
- if (isLoading || loadUsersResult.loading || loadQueryMetadataResult.loading) {
+ if (isLoading || loadUsersResult.isLoading || loadQueryMetadataResult.loading) {
return ;
}
@@ -109,7 +108,7 @@ export function QueryTemplatesList(props: QueryTemplatesListProps) {
User name(s): {
setUserFilters(items);
@@ -166,7 +165,7 @@ function useLoadUsersWithError(data: QueryTemplate[] | undefined) {
*/
function useLoadQueryMetadataWithError(
queryTemplates: QueryTemplate[] | undefined,
- userDataList: UserDataQueryResponse | undefined
+ userDataList: ReturnType['data']
) {
const result = useLoadQueryMetadata(queryTemplates, userDataList);
diff --git a/public/app/features/explore/QueryLibrary/utils/dataFetching.ts b/public/app/features/explore/QueryLibrary/utils/dataFetching.ts
index 67078936d93..03eea720d62 100644
--- a/public/app/features/explore/QueryLibrary/utils/dataFetching.ts
+++ b/public/app/features/explore/QueryLibrary/utils/dataFetching.ts
@@ -1,3 +1,4 @@
+import { skipToken } from '@reduxjs/toolkit/query';
import { compact, uniq } from 'lodash';
import { useAsync } from 'react-use';
import { AsyncState } from 'react-use/lib/useAsync';
@@ -6,20 +7,20 @@ import { getDataSourceSrv } from '@grafana/runtime';
import { DataQuery, DataSourceRef } from '@grafana/schema';
import { createQueryText } from '../../../../core/utils/richHistory';
+import { useGetDisplayListQuery } from '../../../iam';
import { getDatasourceSrv } from '../../../plugins/datasource_srv';
-import { UserDataQueryResponse } from '../../../query-library/api/types';
-import { getUserInfo } from '../../../query-library/api/user';
import { QueryTemplate } from '../../../query-library/types';
export function useLoadUsers(userUIDs: string[] | undefined) {
- return useAsync(async () => {
- if (!userUIDs) {
- return undefined;
- }
- const userQtList = uniq(compact(userUIDs));
- const usersParam = userQtList.map((userUid) => `key=${encodeURIComponent(userUid)}`).join('&');
- return await getUserInfo(`?${usersParam}`);
- }, [userUIDs]);
+ const userQtList = uniq(compact(userUIDs));
+ const usersParam = userQtList.map((userUid) => `key=${encodeURIComponent(userUid)}`).join('&');
+ return useGetDisplayListQuery(
+ userUIDs
+ ? {
+ name: `name?${usersParam}`,
+ }
+ : skipToken
+ );
}
// Explicitly type the result so TS knows to discriminate between the error result and good result by the error prop
@@ -54,7 +55,7 @@ type MetadataValue =
*/
export function useLoadQueryMetadata(
queryTemplates: QueryTemplate[] | undefined,
- userDataList: UserDataQueryResponse | undefined
+ userDataList: ReturnType['data']
): AsyncState {
return useAsync(async () => {
if (!(queryTemplates && userDataList)) {
@@ -87,7 +88,7 @@ export function useLoadQueryMetadata(
user: {
uid: queryTemplate.user?.uid || '',
displayName: extendedUserData?.displayName || '',
- avatarUrl: extendedUserData?.avatarUrl || '',
+ avatarUrl: extendedUserData?.avatarURL || '',
},
error: undefined,
};
diff --git a/public/app/features/explore/spec/queryLibrary.test.tsx b/public/app/features/explore/spec/queryLibrary.test.tsx
index a9cc5345b23..8de9796fdf0 100644
--- a/public/app/features/explore/spec/queryLibrary.test.tsx
+++ b/public/app/features/explore/spec/queryLibrary.test.tsx
@@ -27,6 +27,31 @@ interface MockQuery extends DataQuery {
expr: string;
}
+jest.mock('../QueryLibrary/utils/dataFetching', () => {
+ return {
+ __esModule: true,
+ ...jest.requireActual('../QueryLibrary/utils/dataFetching'),
+ useLoadUsers: () => {
+ return {
+ data: {
+ display: [
+ {
+ avatarUrl: '',
+ displayName: 'john doe',
+ identity: {
+ name: 'JohnDoe',
+ type: 'viewer',
+ },
+ },
+ ],
+ },
+ isLoading: false,
+ error: null,
+ };
+ },
+ };
+});
+
jest.mock('@grafana/runtime', () => ({
...jest.requireActual('@grafana/runtime'),
reportInteraction: (...args: object[]) => {
diff --git a/public/app/features/iam/api/api.ts b/public/app/features/iam/api/api.ts
new file mode 100644
index 00000000000..1bc93cb693e
--- /dev/null
+++ b/public/app/features/iam/api/api.ts
@@ -0,0 +1,14 @@
+import { createApi } from '@reduxjs/toolkit/query/react';
+
+import { createBaseQuery } from '../../../api/createBaseQuery';
+import { getAPINamespace } from '../../../api/utils';
+
+export const API_VERSION = 'iam.grafana.app/v0alpha1';
+
+export const BASE_URL = `/apis/${API_VERSION}/namespaces/${getAPINamespace()}`;
+
+export const iamApi = createApi({
+ baseQuery: createBaseQuery({ baseURL: BASE_URL }),
+ reducerPath: 'iamAPI',
+ endpoints: () => ({}),
+});
diff --git a/public/app/features/iam/api/endpoints.gen.ts b/public/app/features/iam/api/endpoints.gen.ts
new file mode 100644
index 00000000000..5a9acf6c123
--- /dev/null
+++ b/public/app/features/iam/api/endpoints.gen.ts
@@ -0,0 +1,59 @@
+import { iamApi as api } from './api';
+export const addTagTypes = ['DisplayList'] as const;
+const injectedRtkApi = api
+ .enhanceEndpoints({
+ addTagTypes,
+ })
+ .injectEndpoints({
+ endpoints: (build) => ({
+ getDisplayList: build.query({
+ query: (queryArg) => ({ url: `/display/${queryArg.name}` }),
+ providesTags: ['DisplayList'],
+ }),
+ }),
+ overrideExisting: false,
+ });
+export { injectedRtkApi as generatedIamApi };
+export type GetDisplayListApiResponse = /** status 200 OK */ DisplayList;
+export type GetDisplayListApiArg = {
+ /** name of the DisplayList */
+ name: string;
+};
+export type IdentityRef = {
+ /** Name is the unique identifier for identity, guaranteed jo be a unique value for the type within a namespace. */
+ name: string;
+ /** Type of identity e.g. "user". For a full list see https://github.com/grafana/authlib/blob/2f8d13a83ca3e82da08b53726de1697ee5b5b4cc/claims/type.go#L15-L24 */
+ type: string;
+};
+export type Display = {
+ /** AvatarURL is the url where we can get the avatar for identity */
+ avatarURL?: string;
+ /** Display name for identity. */
+ displayName: string;
+ identity: IdentityRef;
+ /** InternalID is the legacy numreric id for identity, this is deprecated and should be phased out */
+ internalId?: number;
+};
+export type ListMeta = {
+ /** continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. */
+ continue?: string;
+ /** remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. */
+ remainingItemCount?: number;
+ /** String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */
+ resourceVersion?: string;
+ /** Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. */
+ selfLink?: string;
+};
+export type DisplayList = {
+ /** APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources */
+ apiVersion?: string;
+ /** Matching items (the caller may need to remap from keys to results) */
+ display: Display[];
+ /** Input keys that were not useable */
+ invalidKeys?: string[];
+ /** Request keys used to lookup the display value */
+ keys: string[];
+ /** Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */
+ kind?: string;
+ metadata?: ListMeta;
+};
diff --git a/public/app/features/iam/api/scripts/generate-rtk-apis.ts b/public/app/features/iam/api/scripts/generate-rtk-apis.ts
new file mode 100644
index 00000000000..60c8affe5a0
--- /dev/null
+++ b/public/app/features/iam/api/scripts/generate-rtk-apis.ts
@@ -0,0 +1,38 @@
+/**
+ * To generate iam k8s APIs, run:
+ * `yarn process-specs && npx rtk-query-codegen-openapi ./public/app/features/iam/api/scripts/generate-rtk-apis.ts` from the root of the repo
+ */
+
+import { ConfigFile } from '@rtk-query/codegen-openapi';
+import { accessSync } from 'fs';
+
+const schemaFile = '../../../../../../data/openapi/iam.grafana.app-v0alpha1.json';
+
+try {
+ // Check we have the OpenAPI before generating query library RTK APIs,
+ // as this is currently a manual process
+ accessSync(schemaFile);
+} catch (e) {
+ console.error('\nCould not find OpenAPI definition.\n');
+ console.error(
+ 'Please run go test pkg/tests/apis/openapi_test.go to generate the OpenAPI definition, then try running this script again.\n'
+ );
+ throw e;
+}
+
+const config: ConfigFile = {
+ schemaFile,
+ apiFile: '',
+ tag: true,
+ outputFiles: {
+ '../endpoints.gen.ts': {
+ apiFile: '../api.ts',
+ apiImport: 'iamApi',
+ filterEndpoints: ['getDisplayList'],
+ exportName: 'generatedIamApi',
+ flattenArg: false,
+ },
+ },
+};
+
+export default config;
diff --git a/public/app/features/iam/index.ts b/public/app/features/iam/index.ts
new file mode 100644
index 00000000000..ff22af53364
--- /dev/null
+++ b/public/app/features/iam/index.ts
@@ -0,0 +1,3 @@
+import { generatedIamApi } from './api/endpoints.gen';
+
+export const { useGetDisplayListQuery } = generatedIamApi;
diff --git a/public/app/features/provisioning/ConfigForm.tsx b/public/app/features/provisioning/ConfigForm.tsx
index ce8dc7d73b5..cdc8cae4fa0 100644
--- a/public/app/features/provisioning/ConfigForm.tsx
+++ b/public/app/features/provisioning/ConfigForm.tsx
@@ -204,7 +204,14 @@ export function ConfigForm({ data }: ConfigFormProps) {
control={control}
rules={{ required: 'This field is required.' }}
render={({ field: { ref, onChange, ...field } }) => {
- return ;
+ return (
+
+ );
}}
/>
diff --git a/public/app/features/provisioning/FileStatusPage.tsx b/public/app/features/provisioning/FileStatusPage.tsx
index 4d1291b128a..59a6236891b 100644
--- a/public/app/features/provisioning/FileStatusPage.tsx
+++ b/public/app/features/provisioning/FileStatusPage.tsx
@@ -26,7 +26,7 @@ export default function FileStatusPage() {
const params = useParams();
const [queryParams] = useQueryParams();
const ref = (queryParams['ref'] as string) ?? undefined;
- const tab = (queryParams['tab'] as TabSelection) ?? TabSelection.Lint;
+ const tab = (queryParams['tab'] as TabSelection) ?? TabSelection.File;
const name = params['name'] ?? '';
const path = params['*'] ?? '';
const query = useGetRepositoryStatusQuery({ name });
@@ -90,7 +90,6 @@ function ResourceView({ wrap, repo, repoRef, tab }: Props) {
}
const tabInfo = [
- { value: TabSelection.Lint, label: 'Lint', counter: wrap.lint?.length },
{ value: TabSelection.File, label: 'File (from repository)' },
{ value: TabSelection.Existing, label: 'Existing (from grafana)' },
{ value: TabSelection.DryRun, label: 'Dry Run (result after apply)' },
@@ -132,7 +131,6 @@ function ResourceView({ wrap, repo, repoRef, tab }: Props) {
key={t.value}
label={t.label}
active={tab === t.value}
- counter={t.counter}
/>
))}
diff --git a/public/app/features/query-library/api/factory.ts b/public/app/features/query-library/api/factory.ts
index d03074092d6..95ce02d6fa3 100644
--- a/public/app/features/query-library/api/factory.ts
+++ b/public/app/features/query-library/api/factory.ts
@@ -10,5 +10,6 @@ export const QUERY_LIBRARY_GET_LIMIT = 1000;
export const queryLibraryApi = createApi({
baseQuery: createBaseQuery({ baseURL: BASE_URL }),
+ reducerPath: 'queryLibraryAPI',
endpoints: () => ({}),
});
diff --git a/public/app/features/query-library/api/mappers.ts b/public/app/features/query-library/api/mappers.ts
index 2d95b48465f..c0568c75d1a 100644
--- a/public/app/features/query-library/api/mappers.ts
+++ b/public/app/features/query-library/api/mappers.ts
@@ -1,10 +1,10 @@
import { v4 as uuidv4 } from 'uuid';
+import { AnnoKeyCreatedBy } from '../../apiserver/types';
import { AddQueryTemplateCommand, QueryTemplate } from '../types';
import { ListQueryTemplateApiResponse, QueryTemplate as QT } from './endpoints.gen';
import { API_VERSION, QueryTemplateKinds } from './query';
-import { CREATED_BY_KEY } from './types';
export const convertDataQueryResponseToQueryTemplates = (result: ListQueryTemplateApiResponse): QueryTemplate[] => {
if (!result.items) {
@@ -21,7 +21,7 @@ export const convertDataQueryResponseToQueryTemplates = (result: ListQueryTempla
})) ?? [],
createdAtTimestamp: new Date(spec.metadata?.creationTimestamp ?? '').getTime(),
user: {
- uid: spec.metadata?.annotations?.[CREATED_BY_KEY] ?? '',
+ uid: spec.metadata?.annotations?.[AnnoKeyCreatedBy] ?? '',
},
};
});
diff --git a/public/app/features/query-library/api/types.ts b/public/app/features/query-library/api/types.ts
deleted file mode 100644
index e8485f22536..00000000000
--- a/public/app/features/query-library/api/types.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// pkg/apis/iam/v0alpha1/types_display.go
-export type UserDataQueryResponse = {
- apiVersion: string;
- kind: string;
- metadata: {
- selfLink: string;
- resourceVersion: string;
- continue: string;
- remainingItemCount: number;
- };
- display: UserSpecResponse[];
- keys: string[];
-};
-
-// pkg/apis/iam/v0alpha1/types_display.go
-export type UserSpecResponse = {
- avatarUrl: string;
- displayName: string;
- identity: {
- name: string;
- type: string;
- };
- internalId: number;
-};
-
-export const CREATED_BY_KEY = 'grafana.app/createdBy';
diff --git a/public/app/features/query-library/api/user.ts b/public/app/features/query-library/api/user.ts
deleted file mode 100644
index 6b8ba4c9437..00000000000
--- a/public/app/features/query-library/api/user.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { getBackendSrv } from '@grafana/runtime';
-
-import { getAPINamespace } from '../../../api/utils';
-
-import { UserDataQueryResponse } from './types';
-
-/**
- * @alpha
- */
-export const API_VERSION = 'iam.grafana.app/v0alpha1';
-
-/**
- * @alpha
- */
-const BASE_URL = `apis/${API_VERSION}/namespaces/${getAPINamespace()}/display`;
-
-export async function getUserInfo(url?: string): Promise {
- const userInfo = await getBackendSrv().get(`${BASE_URL}${url}`);
- return userInfo;
-}
diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.test.tsx b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.test.tsx
index bbc46703aaa..a0bf21c4046 100644
--- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.test.tsx
+++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.test.tsx
@@ -1,12 +1,15 @@
-import { screen } from '@testing-library/react';
+import { fireEvent, screen } from '@testing-library/react';
import selectEvent from 'react-select-event';
+import { useDispatch } from '../../../../hooks/useStatelessReducer';
import { renderWithESProvider } from '../../../../test-helpers/render';
import { ElasticsearchQuery, Terms, Average, Derivative, TopMetrics } from '../../../../types';
import { describeMetric } from '../../../../utils';
import { TermsSettingsEditor } from './TermsSettingsEditor';
+jest.mock('../../../../hooks/useStatelessReducer');
+
describe('Terms Settings Editor', () => {
it('Pipeline aggregations should not be in "order by" options', () => {
const termsAgg: Terms = {
@@ -37,4 +40,38 @@ describe('Terms Settings Editor', () => {
// All other metric aggregations can be used in order by
expect(screen.getByText(describeMetric(avg))).toBeInTheDocument();
});
+
+ describe('Handling change', () => {
+ let dispatch = jest.fn();
+ beforeEach(() => {
+ dispatch.mockClear();
+ jest.mocked(useDispatch).mockReturnValue(dispatch);
+ });
+
+ test('updating size', async () => {
+ const termsAgg: Terms = {
+ id: '1',
+ type: 'terms',
+ };
+ const avg: Average = { id: '2', type: 'avg', field: '@value' };
+ const derivative: Derivative = { id: '3', field: avg.id, type: 'derivative' };
+ const topMetrics: TopMetrics = { id: '4', type: 'top_metrics' };
+ const query: ElasticsearchQuery = {
+ refId: 'A',
+ query: '',
+ bucketAggs: [termsAgg],
+ metrics: [avg, derivative, topMetrics],
+ };
+
+ renderWithESProvider(, { providerProps: { query } });
+
+ const sizeInput = screen.getByLabelText('Size');
+ fireEvent.change(sizeInput, { target: { value: '30' } });
+ fireEvent.blur(sizeInput);
+
+ expect(dispatch).toHaveBeenCalledTimes(1);
+ expect(dispatch.mock.calls[0][0].payload.settingName).toBe('size');
+ expect(dispatch.mock.calls[0][0].payload.newValue).toBe('30');
+ });
+ });
});
diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.tsx b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.tsx
index e6292c75396..80bbd154e9f 100644
--- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.tsx
+++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/TermsSettingsEditor.tsx
@@ -7,11 +7,10 @@ import { InlineField, Select, Input } from '@grafana/ui';
import { useDispatch } from '../../../../hooks/useStatelessReducer';
import { MetricAggregation, Percentiles, ExtendedStatMetaType, ExtendedStats, Terms } from '../../../../types';
import { describeMetric } from '../../../../utils';
-import { useCreatableSelectPersistedBehaviour } from '../../../hooks/useCreatableSelectPersistedBehaviour';
import { useQuery } from '../../ElasticsearchQueryContext';
import { isPipelineAggregation } from '../../MetricAggregationsEditor/aggregations';
import { changeBucketAggregationSetting } from '../state/actions';
-import { bucketAggregationConfig, orderByOptions, orderOptions, sizeOptions } from '../utils';
+import { bucketAggregationConfig, orderByOptions, orderOptions } from '../utils';
import { inlineFieldProps } from '.';
@@ -23,6 +22,12 @@ export const TermsSettingsEditor = ({ bucketAgg }: Props) => {
const { metrics } = useQuery();
const orderBy = createOrderByOptions(metrics);
const { current: baseId } = useRef(uniqueId('es-terms-'));
+ let size = bucketAgg.settings?.size || bucketAggregationConfig.terms.defaultSettings?.size;
+ if (!size || size === '') {
+ size = '10';
+ } else if (size === '0') {
+ size = '500';
+ }
const dispatch = useDispatch();
@@ -40,16 +45,12 @@ export const TermsSettingsEditor = ({ bucketAgg }: Props) => {
-
diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/utils.ts b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/utils.ts
index e873a07cda4..a00e750ca67 100644
--- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/utils.ts
+++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/utils.ts
@@ -64,14 +64,3 @@ export const orderOptions: Array> = [
{ label: 'Top', value: 'desc' },
{ label: 'Bottom', value: 'asc' },
];
-
-export const sizeOptions = [
- { label: 'No limit', value: '0' },
- { label: '1', value: '1' },
- { label: '2', value: '2' },
- { label: '3', value: '3' },
- { label: '5', value: '5' },
- { label: '10', value: '10' },
- { label: '15', value: '15' },
- { label: '20', value: '20' },
-];
diff --git a/public/app/store/configureStore.ts b/public/app/store/configureStore.ts
index 1e91962e6d7..df79fd3d8df 100644
--- a/public/app/store/configureStore.ts
+++ b/public/app/store/configureStore.ts
@@ -12,6 +12,7 @@ import { StoreState } from 'app/types/store';
import { buildInitialState } from '../core/reducers/navModel';
import { addReducer, createRootReducer } from '../core/reducers/root';
import { alertingApi } from '../features/alerting/unified/api/alertingApi';
+import { iamApi } from '../features/iam/api/api';
import { queryLibraryApi } from '../features/query-library/api/factory';
import { setStore } from './store';
@@ -43,6 +44,7 @@ export function configureStore(initialState?: Partial) {
queryLibraryApi.middleware,
userPreferencesAPI.middleware,
provisioningAPI.middleware,
+ iamApi.middleware,
...extraMiddleware
),
devTools: process.env.NODE_ENV !== 'production',
diff --git a/yarn.lock b/yarn.lock
index ebd1311fa78..183367c8947 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6153,14 +6153,14 @@ __metadata:
languageName: node
linkType: hard
-"@playwright/test@npm:1.50.0":
- version: 1.50.0
- resolution: "@playwright/test@npm:1.50.0"
+"@playwright/test@npm:1.50.1":
+ version: 1.50.1
+ resolution: "@playwright/test@npm:1.50.1"
dependencies:
- playwright: "npm:1.50.0"
+ playwright: "npm:1.50.1"
bin:
playwright: cli.js
- checksum: 10/1fec2ed986205b57b03f24392bb01c6454c1f0a5c14204ce921afd51c3f5d61f20eddb3a18d36a02b19b3e3d731c7ff6bb7ba3c622aabc8fa3802021aef7d21b
+ checksum: 10/0d8d2291d6554c492cb163b4d463e1e9cc6d3ae50680d790473f693f36a243c16c3620406849dd40115046c47a6ad5cc36a24511caec6d054dc1a1d9fffb4138
languageName: node
linkType: hard
@@ -7775,16 +7775,16 @@ __metadata:
languageName: node
linkType: hard
-"@stylistic/eslint-plugin-ts@npm:^2.9.0":
- version: 2.13.0
- resolution: "@stylistic/eslint-plugin-ts@npm:2.13.0"
+"@stylistic/eslint-plugin-ts@npm:^3.0.0":
+ version: 3.0.1
+ resolution: "@stylistic/eslint-plugin-ts@npm:3.0.1"
dependencies:
"@typescript-eslint/utils": "npm:^8.13.0"
eslint-visitor-keys: "npm:^4.2.0"
espree: "npm:^10.3.0"
peerDependencies:
eslint: ">=8.40.0"
- checksum: 10/222d6ec0094177f40ea43f28af257192655539fe4bb1495341bc9ff521bca975da2066e229798fcc8e28ea24e91d0ef4db05b4f212f615cad752ade5c1c68561
+ checksum: 10/24dc9f67ff56bc200340807a1fd055e8f49332c244b0ba214ea68ed91773d922790645db34f014e0f703644cc605171e5190df385597dad12d127d92fd72d29b
languageName: node
linkType: hard
@@ -10205,12 +10205,12 @@ __metadata:
languageName: node
linkType: hard
-"@types/swagger-ui-react@npm:4.19.0":
- version: 4.19.0
- resolution: "@types/swagger-ui-react@npm:4.19.0"
+"@types/swagger-ui-react@npm:5.18.0":
+ version: 5.18.0
+ resolution: "@types/swagger-ui-react@npm:5.18.0"
dependencies:
"@types/react": "npm:*"
- checksum: 10/c4a7ae85ca081bf079164b3e11ecc0c91dec1ed10da0f44fc67f8cf93a7d92d5bfa681035eb8b9d3327a0361d201861c02571b4b18f361253510f3ce19ce073f
+ checksum: 10/002bb3e38eb5917f5da942affa357811ccb078816bf53ba9007e43603f9b9a839eb930380b08051b9cc9a95ca2ebec06599a825e4d0542e436ea2c2027fc3a0a
languageName: node
linkType: hard
@@ -16876,11 +16876,11 @@ __metadata:
linkType: hard
"fishery@npm:^2.2.2":
- version: 2.2.2
- resolution: "fishery@npm:2.2.2"
+ version: 2.2.3
+ resolution: "fishery@npm:2.2.3"
dependencies:
lodash.mergewith: "npm:^4.6.2"
- checksum: 10/68120995b0cd7827f0d50ef3b552a74289c99fa6195cafb6e5d376aa14421f12873274e1fc5aa101073fdae35ad6543cb5b04687bb295d8c37ff3b99dbdeb9ae
+ checksum: 10/a8855c1949524996d2ba3b84cf6fe13f2a8ade8296e090bedbc58d2879dc481d85a0aced1e33f80b1a1ec9cb1a2eb7562494c2ae514915730d14285694f595bf
languageName: node
linkType: hard
@@ -17810,7 +17810,7 @@ __metadata:
"@opentelemetry/api": "npm:1.9.0"
"@opentelemetry/exporter-collector": "npm:0.25.0"
"@opentelemetry/semantic-conventions": "npm:1.28.0"
- "@playwright/test": "npm:1.50.0"
+ "@playwright/test": "npm:1.50.1"
"@pmmmwh/react-refresh-webpack-plugin": "npm:0.5.15"
"@popperjs/core": "npm:2.11.8"
"@react-aria/dialog": "npm:3.5.21"
@@ -17826,7 +17826,7 @@ __metadata:
"@rsdoctor/webpack-plugin": "npm:^0.4.6"
"@rtk-query/codegen-openapi": "npm:^2.0.0"
"@rtsao/plugin-proposal-class-properties": "npm:7.0.1-patch.1"
- "@stylistic/eslint-plugin-ts": "npm:^2.9.0"
+ "@stylistic/eslint-plugin-ts": "npm:^3.0.0"
"@swc/core": "npm:1.10.12"
"@swc/helpers": "npm:0.5.15"
"@testing-library/dom": "npm:10.4.0"
@@ -17881,7 +17881,7 @@ __metadata:
"@types/slate": "npm:0.47.11"
"@types/slate-plain-serializer": "npm:0.7.5"
"@types/slate-react": "npm:0.22.9"
- "@types/swagger-ui-react": "npm:4.19.0"
+ "@types/swagger-ui-react": "npm:5.18.0"
"@types/systemjs": "npm:6.15.1"
"@types/tinycolor2": "npm:1.4.6"
"@types/uuid": "npm:10.0.0"
@@ -24221,27 +24221,27 @@ __metadata:
languageName: node
linkType: hard
-"playwright-core@npm:1.50.0":
- version: 1.50.0
- resolution: "playwright-core@npm:1.50.0"
+"playwright-core@npm:1.50.1":
+ version: 1.50.1
+ resolution: "playwright-core@npm:1.50.1"
bin:
playwright-core: cli.js
- checksum: 10/0d27e52164bcc37ed5aeaa0c7efa6a0b3616cfbb01e206c26572bff8b8e5f0923a993369c826056cd7bee4b975508a1ec257b533098ee9db7bc5b75832110e4d
+ checksum: 10/9a310b8a66bf7fd926e620c1c8e27be29bdbdce91640e5f975b2fd4dc706d0307faec2bb0456cc8e7dedb1e71c0b5eb35c6a58acd5cedc7d8fd849a9067e637b
languageName: node
linkType: hard
-"playwright@npm:1.50.0":
- version: 1.50.0
- resolution: "playwright@npm:1.50.0"
+"playwright@npm:1.50.1":
+ version: 1.50.1
+ resolution: "playwright@npm:1.50.1"
dependencies:
fsevents: "npm:2.3.2"
- playwright-core: "npm:1.50.0"
+ playwright-core: "npm:1.50.1"
dependenciesMeta:
fsevents:
optional: true
bin:
playwright: cli.js
- checksum: 10/53521f05c48ab51a37d6fa280a7c1e6486e2879f9997e877227517945faf195ce16829cf144709bba292c3023bcd07cf44a4dd965458c9adc30ea6fbe1f0f74a
+ checksum: 10/a3687614ac3238a81cbe3018e4f4a2ae92c71f3f65110cc6087068c020f6134f0628308da33177b9b08102644706e835d4053f6890beeb4a935f433bc4ac107a
languageName: node
linkType: hard