From 0037058785c6cb1fcb481ae5308b981dfa5b2c34 Mon Sep 17 00:00:00 2001 From: Roman Tkachenko Date: Fri, 1 Dec 2023 11:43:11 -0800 Subject: [PATCH] Release 14.2.1 (#976) --- access/discord/Makefile | 2 +- access/email/Makefile | 2 +- access/jira/Makefile | 2 +- access/mattermost/Makefile | 2 +- access/msteams/Makefile | 2 +- access/pagerduty/Makefile | 2 +- access/slack/Makefile | 2 +- charts/access/discord/Chart.yaml | 6 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 4 +- charts/access/email/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 24 ++--- .../__snapshot__/deployment_test.yaml.snap | 34 +++---- charts/access/jira/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 4 +- charts/access/mattermost/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 16 ++-- charts/access/msteams/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 4 +- charts/access/pagerduty/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 4 +- charts/access/slack/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 4 +- charts/event-handler/Chart.yaml | 4 +- .../__snapshot__/configmap_test.yaml.snap | 4 +- .../__snapshot__/deployment_test.yaml.snap | 4 +- event-handler/Makefile | 2 +- go.mod | 8 +- go.sum | 16 ++-- terraform/install.mk | 2 +- terraform/reference.mdx | 20 +++-- .../accesslist/v1/accesslist_terraform.go | 88 +++++++++++++++++++ 37 files changed, 200 insertions(+), 110 deletions(-) diff --git a/access/discord/Makefile b/access/discord/Makefile index 70f97283f..66d3f6c50 100644 --- a/access/discord/Makefile +++ b/access/discord/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/access/email/Makefile b/access/email/Makefile index d6d48a195..834bfc7c0 100644 --- a/access/email/Makefile +++ b/access/email/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/access/jira/Makefile b/access/jira/Makefile index 592e09cd6..6e88011c4 100644 --- a/access/jira/Makefile +++ b/access/jira/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/access/mattermost/Makefile b/access/mattermost/Makefile index aba703c18..028207f44 100644 --- a/access/mattermost/Makefile +++ b/access/mattermost/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/access/msteams/Makefile b/access/msteams/Makefile index 4c23e8591..72f9ff557 100644 --- a/access/msteams/Makefile +++ b/access/msteams/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/access/pagerduty/Makefile b/access/pagerduty/Makefile index f389a9726..15a55ab88 100644 --- a/access/pagerduty/Makefile +++ b/access/pagerduty/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/access/slack/Makefile b/access/slack/Makefile index f95a81c4f..dad542f38 100644 --- a/access/slack/Makefile +++ b/access/slack/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 BUILDDIR ?= build diff --git a/charts/access/discord/Chart.yaml b/charts/access/discord/Chart.yaml index 8c9c53c6e..903dfe283 100644 --- a/charts/access/discord/Chart.yaml +++ b/charts/access/discord/Chart.yaml @@ -15,16 +15,16 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/discord/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/discord/tests/__snapshot__/configmap_test.yaml.snap index e725ef5e4..cce6259a8 100644 --- a/charts/access/discord/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/discord/tests/__snapshot__/configmap_test.yaml.snap @@ -23,6 +23,6 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-discord - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-discord-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-discord-14.2.1 name: RELEASE-NAME-teleport-plugin-discord diff --git a/charts/access/discord/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/discord/tests/__snapshot__/deployment_test.yaml.snap index 03782457f..72aaa2f63 100644 --- a/charts/access/discord/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/discord/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-discord - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-discord-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-discord-14.2.1 name: RELEASE-NAME-teleport-plugin-discord spec: replicas: 1 diff --git a/charts/access/email/Chart.yaml b/charts/access/email/Chart.yaml index ce9b19903..629f07509 100644 --- a/charts/access/email/Chart.yaml +++ b/charts/access/email/Chart.yaml @@ -13,10 +13,10 @@ description: A Helm chart for the Teleport Email Plugin type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/email/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/email/tests/__snapshot__/configmap_test.yaml.snap index 4738fd6a9..e7ac3769f 100644 --- a/charts/access/email/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/email/tests/__snapshot__/configmap_test.yaml.snap @@ -25,8 +25,8 @@ should match the snapshot (mailgun on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email should match the snapshot (smtp on): 1: | @@ -57,8 +57,8 @@ should match the snapshot (smtp on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email should match the snapshot (smtp on, no starttls): 1: | @@ -89,8 +89,8 @@ should match the snapshot (smtp on, no starttls): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email should match the snapshot (smtp on, password file): 1: | @@ -121,8 +121,8 @@ should match the snapshot (smtp on, password file): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email should match the snapshot (smtp on, roleToRecipients set): 1: | @@ -156,8 +156,8 @@ should match the snapshot (smtp on, roleToRecipients set): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email should match the snapshot (smtp on, starttls disabled): 1: | @@ -188,6 +188,6 @@ should match the snapshot (smtp on, starttls disabled): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email diff --git a/charts/access/email/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/email/tests/__snapshot__/deployment_test.yaml.snap index 96828f23d..f5910661a 100644 --- a/charts/access/email/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/email/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should be possible to override volume name (smtp on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email spec: replicas: 1 @@ -31,7 +31,7 @@ should be possible to override volume name (smtp on): env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-email ports: @@ -73,8 +73,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email spec: replicas: 1 @@ -132,8 +132,8 @@ should match the snapshot (mailgun on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email spec: replicas: 1 @@ -156,7 +156,7 @@ should match the snapshot (mailgun on): env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-email ports: @@ -198,8 +198,8 @@ should match the snapshot (smtp on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email spec: replicas: 1 @@ -222,7 +222,7 @@ should match the snapshot (smtp on): env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-email ports: @@ -264,8 +264,8 @@ should mount external secret (mailgun on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email spec: replicas: 1 @@ -288,7 +288,7 @@ should mount external secret (mailgun on): env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-email ports: @@ -330,8 +330,8 @@ should mount external secret (smtp on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-email - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-email-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-email-14.2.1 name: RELEASE-NAME-teleport-plugin-email spec: replicas: 1 @@ -354,7 +354,7 @@ should mount external secret (smtp on): env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-email:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-email ports: diff --git a/charts/access/jira/Chart.yaml b/charts/access/jira/Chart.yaml index b098e5d29..ffc3b2721 100644 --- a/charts/access/jira/Chart.yaml +++ b/charts/access/jira/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/jira/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/jira/tests/__snapshot__/configmap_test.yaml.snap index 2411baaed..2ba7ad99d 100644 --- a/charts/access/jira/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/jira/tests/__snapshot__/configmap_test.yaml.snap @@ -31,6 +31,6 @@ should match the snapshot (smtp on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-jira - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-jira-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-jira-14.2.1 name: RELEASE-NAME-teleport-plugin-jira diff --git a/charts/access/jira/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/jira/tests/__snapshot__/deployment_test.yaml.snap index f1b5705cb..2561b4ed0 100644 --- a/charts/access/jira/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/jira/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-jira - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-jira-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-jira-14.2.1 name: RELEASE-NAME-teleport-plugin-jira spec: replicas: 1 diff --git a/charts/access/mattermost/Chart.yaml b/charts/access/mattermost/Chart.yaml index a654f55f5..6331c1ca5 100644 --- a/charts/access/mattermost/Chart.yaml +++ b/charts/access/mattermost/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/mattermost/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/mattermost/tests/__snapshot__/configmap_test.yaml.snap index d547f2254..083f7b883 100644 --- a/charts/access/mattermost/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/mattermost/tests/__snapshot__/configmap_test.yaml.snap @@ -21,6 +21,6 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-mattermost - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-mattermost-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-mattermost-14.2.1 name: RELEASE-NAME-teleport-plugin-mattermost diff --git a/charts/access/mattermost/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/mattermost/tests/__snapshot__/deployment_test.yaml.snap index 50d23a9a8..226e45e82 100644 --- a/charts/access/mattermost/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/mattermost/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-mattermost - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-mattermost-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-mattermost-14.2.1 name: RELEASE-NAME-teleport-plugin-mattermost spec: replicas: 1 @@ -73,8 +73,8 @@ should mount external secret: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-mattermost - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-mattermost-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-mattermost-14.2.1 name: RELEASE-NAME-teleport-plugin-mattermost spec: replicas: 1 @@ -97,7 +97,7 @@ should mount external secret: env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-mattermost:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-mattermost:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-mattermost ports: @@ -139,8 +139,8 @@ should override volume name: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-mattermost - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-mattermost-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-mattermost-14.2.1 name: RELEASE-NAME-teleport-plugin-mattermost spec: replicas: 1 @@ -163,7 +163,7 @@ should override volume name: env: - name: TELEPORT_PLUGIN_FAIL_FAST value: "true" - image: public.ecr.aws/gravitational/teleport-plugin-mattermost:14.2.0 + image: public.ecr.aws/gravitational/teleport-plugin-mattermost:14.2.1 imagePullPolicy: IfNotPresent name: teleport-plugin-mattermost ports: diff --git a/charts/access/msteams/Chart.yaml b/charts/access/msteams/Chart.yaml index e73f4bf5c..566509fe7 100644 --- a/charts/access/msteams/Chart.yaml +++ b/charts/access/msteams/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/msteams/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/msteams/tests/__snapshot__/configmap_test.yaml.snap index 5b465714d..a5f4b0c87 100644 --- a/charts/access/msteams/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/msteams/tests/__snapshot__/configmap_test.yaml.snap @@ -28,6 +28,6 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-msteams - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-msteams-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-msteams-14.2.1 name: RELEASE-NAME-teleport-plugin-msteams diff --git a/charts/access/msteams/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/msteams/tests/__snapshot__/deployment_test.yaml.snap index 0f05214e1..2ca440775 100644 --- a/charts/access/msteams/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/msteams/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-msteams - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-msteams-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-msteams-14.2.1 name: RELEASE-NAME-teleport-plugin-msteams spec: replicas: 1 diff --git a/charts/access/pagerduty/Chart.yaml b/charts/access/pagerduty/Chart.yaml index 88c34e864..69fc0d9ec 100644 --- a/charts/access/pagerduty/Chart.yaml +++ b/charts/access/pagerduty/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/pagerduty/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/pagerduty/tests/__snapshot__/configmap_test.yaml.snap index b38120fae..1e5e4d608 100644 --- a/charts/access/pagerduty/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/pagerduty/tests/__snapshot__/configmap_test.yaml.snap @@ -20,6 +20,6 @@ should match the snapshot (smtp on): app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-pagerduty - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-pagerduty-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-pagerduty-14.2.1 name: RELEASE-NAME-teleport-plugin-pagerduty diff --git a/charts/access/pagerduty/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/pagerduty/tests/__snapshot__/deployment_test.yaml.snap index cd08077b1..0ff2998f8 100644 --- a/charts/access/pagerduty/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/pagerduty/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-pagerduty - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-pagerduty-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-pagerduty-14.2.1 name: RELEASE-NAME-teleport-plugin-pagerduty spec: replicas: 1 diff --git a/charts/access/slack/Chart.yaml b/charts/access/slack/Chart.yaml index b8c06ec6f..c63c3b21a 100644 --- a/charts/access/slack/Chart.yaml +++ b/charts/access/slack/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/access/slack/tests/__snapshot__/configmap_test.yaml.snap b/charts/access/slack/tests/__snapshot__/configmap_test.yaml.snap index 4cce3360e..8cc79f7be 100644 --- a/charts/access/slack/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/access/slack/tests/__snapshot__/configmap_test.yaml.snap @@ -23,6 +23,6 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-slack - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-slack-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-slack-14.2.1 name: RELEASE-NAME-teleport-plugin-slack diff --git a/charts/access/slack/tests/__snapshot__/deployment_test.yaml.snap b/charts/access/slack/tests/__snapshot__/deployment_test.yaml.snap index 45bb31f80..c6692ced0 100644 --- a/charts/access/slack/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/access/slack/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-slack - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-slack-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-slack-14.2.1 name: RELEASE-NAME-teleport-plugin-slack spec: replicas: 1 diff --git a/charts/event-handler/Chart.yaml b/charts/event-handler/Chart.yaml index dc69e1e19..7ef8ada6a 100644 --- a/charts/event-handler/Chart.yaml +++ b/charts/event-handler/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "14.2.0" +version: "14.2.1" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "14.2.0" +appVersion: "14.2.1" diff --git a/charts/event-handler/tests/__snapshot__/configmap_test.yaml.snap b/charts/event-handler/tests/__snapshot__/configmap_test.yaml.snap index 67eefe664..93c68a6ff 100644 --- a/charts/event-handler/tests/__snapshot__/configmap_test.yaml.snap +++ b/charts/event-handler/tests/__snapshot__/configmap_test.yaml.snap @@ -23,6 +23,6 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-event-handler - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-event-handler-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-event-handler-14.2.1 name: RELEASE-NAME-teleport-plugin-event-handler diff --git a/charts/event-handler/tests/__snapshot__/deployment_test.yaml.snap b/charts/event-handler/tests/__snapshot__/deployment_test.yaml.snap index 84eb7b2fc..24c1c0616 100644 --- a/charts/event-handler/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/event-handler/tests/__snapshot__/deployment_test.yaml.snap @@ -7,8 +7,8 @@ should match the snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: teleport-plugin-event-handler - app.kubernetes.io/version: 14.2.0 - helm.sh/chart: teleport-plugin-event-handler-14.2.0 + app.kubernetes.io/version: 14.2.1 + helm.sh/chart: teleport-plugin-event-handler-14.2.1 name: RELEASE-NAME-teleport-plugin-event-handler spec: replicas: 1 diff --git a/event-handler/Makefile b/event-handler/Makefile index 0256de15b..1b4f612aa 100644 --- a/event-handler/Makefile +++ b/event-handler/Makefile @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 GO_VERSION=1.21.4 GITTAG=v$(VERSION) diff --git a/go.mod b/go.mod index a81140887..6dc810814 100644 --- a/go.mod +++ b/go.mod @@ -105,7 +105,7 @@ require ( github.com/fatih/color v1.13.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-jose/go-jose/v3 v3.0.0 // indirect + github.com/go-jose/go-jose/v3 v3.0.1 // indirect github.com/go-logr/logr v1.3.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/jsonpointer v0.19.6 // indirect @@ -213,7 +213,7 @@ require ( github.com/vulcand/predicate v1.2.0 // indirect github.com/xhit/go-str2duration/v2 v2.1.0 // indirect github.com/zclconf/go-cty v1.12.1 // indirect - go.mongodb.org/mongo-driver v1.13.0-prerelease.0.20230726045955-5ee10b94cc66 // indirect + go.mongodb.org/mongo-driver v1.13.0 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect @@ -260,8 +260,8 @@ replace ( github.com/alecthomas/kingpin/v2 => github.com/gravitational/kingpin/v2 v2.1.11-0.20230515143221-4ec6b70ecd33 github.com/coreos/go-oidc => github.com/gravitational/go-oidc v0.1.0 github.com/gogo/protobuf => github.com/gravitational/protobuf v1.3.2-0.20201123192827-2b9fcfaffcbf - github.com/gravitational/teleport => github.com/gravitational/teleport v0.0.0-20231120212339-5d4cf8198cc0 // ref: tags/v14.2.0 - github.com/gravitational/teleport/api => github.com/gravitational/teleport/api v0.0.0-20231120212339-5d4cf8198cc0 // ref: tags/v14.2.0 + github.com/gravitational/teleport => github.com/gravitational/teleport v0.0.0-20231201005414-e6737fe00510 // ref: tags/v14.2.1 + github.com/gravitational/teleport/api => github.com/gravitational/teleport/api v0.0.0-20231201005414-e6737fe00510 // ref: tags/v14.2.1 github.com/julienschmidt/httprouter => github.com/rw-access/httprouter v1.3.1-0.20210321233808-98e93175c124 github.com/microsoft/go-mssqldb => github.com/gravitational/go-mssqldb v0.11.1-0.20230331180905-0f76f1751cd3 github.com/vulcand/predicate => github.com/gravitational/predicate v1.3.1 diff --git a/go.sum b/go.sum index ea2a162eb..c7cee0db6 100644 --- a/go.sum +++ b/go.sum @@ -446,8 +446,8 @@ github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9 github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-jose/go-jose/v3 v3.0.0 h1:s6rrhirfEP/CGIoc6p+PZAeogN2SxKav6Wp7+dyMWVo= -github.com/go-jose/go-jose/v3 v3.0.0/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= +github.com/go-jose/go-jose/v3 v3.0.1 h1:pWmKFVtt+Jl0vBZTIpz/eAKwsm6LkIxDVVbFHKkchhA= +github.com/go-jose/go-jose/v3 v3.0.1/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= @@ -662,10 +662,10 @@ github.com/gravitational/protobuf v1.3.2-0.20201123192827-2b9fcfaffcbf h1:MQ4e8X github.com/gravitational/protobuf v1.3.2-0.20201123192827-2b9fcfaffcbf/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gravitational/roundtrip v1.0.2 h1:eOCY0NEKKaB0ksJmvhO6lPMFz1pIIef+vyPBTBROQ5c= github.com/gravitational/roundtrip v1.0.2/go.mod h1:fuI1booM2hLRA/B/m5MRAPOU6mBZNYcNycono2UuTw0= -github.com/gravitational/teleport v0.0.0-20231120212339-5d4cf8198cc0 h1:pqh8LjS0WWiDHEZMVHpVYRxuKCMo5yYf+OPrBfXl1ik= -github.com/gravitational/teleport v0.0.0-20231120212339-5d4cf8198cc0/go.mod h1:bxTOO5awpqpf0ujUZmieAv0DI9thbjVYD3dfjNuctk8= -github.com/gravitational/teleport/api v0.0.0-20231120212339-5d4cf8198cc0 h1:n5EhAx77DVNAZEJVCkO2NZfNHRewRg5TIbAY1nn56b0= -github.com/gravitational/teleport/api v0.0.0-20231120212339-5d4cf8198cc0/go.mod h1:vs/WZu1KCOYAH1It/GS9yq2CYOt0lcB0HkwsyrvYyDk= +github.com/gravitational/teleport v0.0.0-20231201005414-e6737fe00510 h1:iLCgqlT7puZP9GBNqRBZQHkZ0pUSf2s5M8N2TKriHjk= +github.com/gravitational/teleport v0.0.0-20231201005414-e6737fe00510/go.mod h1:3gkVPSzNuTWI0qQgzuk1l07L/bmhfDmxII2SOXVujQU= +github.com/gravitational/teleport/api v0.0.0-20231201005414-e6737fe00510 h1:31GqK4u2g/QVftkMvSpol1CzB2XaJVbuWspaGjLKFEA= +github.com/gravitational/teleport/api v0.0.0-20231201005414-e6737fe00510/go.mod h1:vs/WZu1KCOYAH1It/GS9yq2CYOt0lcB0HkwsyrvYyDk= github.com/gravitational/trace v1.3.1 h1:jwZEuRtCYpLhUtqHo+JH+lu2qM0LB98UagqHtvdKuLI= github.com/gravitational/trace v1.3.1/go.mod h1:E61mn73aro7Zg9gZheZaeUsK6gjUMbCLazY76xuYAVA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= @@ -1310,8 +1310,8 @@ go.etcd.io/etcd/tests/v3 v3.5.0-alpha.0/go.mod h1:HnrHxjyCuZ8YDt8PYVyQQ5d1ZQfzJV go.etcd.io/etcd/tests/v3 v3.5.0/go.mod h1:f+mtZ1bE1YPvgKdOJV2BKy4JQW0nAFnQehgOE7+WyJE= go.etcd.io/etcd/v3 v3.5.0-alpha.0/go.mod h1:JZ79d3LV6NUfPjUxXrpiFAYcjhT+06qqw+i28snx8To= go.etcd.io/etcd/v3 v3.5.0/go.mod h1:FldM0/VzcxYWLvWx1sdA7ghKw7C3L2DvUTzGrcEtsC4= -go.mongodb.org/mongo-driver v1.13.0-prerelease.0.20230726045955-5ee10b94cc66 h1:2uTsucgz0YmaUEvk4iu43KGxvVcG/bZ/rNsCmqiMGC4= -go.mongodb.org/mongo-driver v1.13.0-prerelease.0.20230726045955-5ee10b94cc66/go.mod h1:AZkxhPnFJUoH7kZlFkVKucV20K387miPfm7oimrSmK0= +go.mongodb.org/mongo-driver v1.13.0 h1:67DgFFjYOCMWdtTEmKFpV3ffWlFnh+CYZ8ZS/tXWUfY= +go.mongodb.org/mongo-driver v1.13.0/go.mod h1:/rGBTebI3XYboVmgz+Wv3Bcbl3aD0QF9zl6kDDw18rQ= go.opencensus.io v0.15.0/go.mod h1:UffZAU+4sDEINUGP/B7UfBBkq4fqLu9zXAX7ke6CHW0= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= diff --git a/terraform/install.mk b/terraform/install.mk index 99820c105..b9da819a1 100644 --- a/terraform/install.mk +++ b/terraform/install.mk @@ -1,4 +1,4 @@ -VERSION=14.2.0 +VERSION=14.2.1 OS ?= $(shell go env GOOS) ARCH ?= $(shell go env GOARCH) diff --git a/terraform/reference.mdx b/terraform/reference.mdx index 7843d0be2..eb8140739 100755 --- a/terraform/reference.mdx +++ b/terraform/reference.mdx @@ -119,15 +119,17 @@ metadata is resource metadata. spec is the specification for the access list. -| Name | Type | Required | Description | -|---------------------|--------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| audit | object | | audit describes the frequency that this access list must be audited. | -| description | string | | description is an optional plaintext description of the access list. | -| grants | object | * | grants describes the access granted by membership to this access list. | -| membership_requires | object | | membership_requires describes the requirements for a user to be a member of the access list. For a membership to an access list to be effective, the user must meet the requirements of Membership_requires and must be in the members list. | -| owners | object | * | owners is a list of owners of the access list. | -| ownership_requires | object | | ownership_requires describes the requirements for a user to be an owner of the access list. For ownership of an access list to be effective, the user must meet the requirements of ownership_requires and must be in the owners list. | -| title | string | | title is a plaintext short description of the access list. | +| Name | Type | Required | Description | +|---------------------|--------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| audit | object | | audit describes the frequency that this access list must be audited. | +| description | string | | description is an optional plaintext description of the access list. | +| grants | object | * | grants describes the access granted by membership to this access list. | +| membership | string | | membership defines how list membership is applied. There are two possible values: `explicit` (default): To be considered ag member of the access list, a user must both meet the `membership_requires` conditions AND be explicitly added to the list. implicit: Any user meeting the `membership_requires` conditions will automatically be cosidered a member of this list. | +| membership_requires | object | | membership_requires describes the requirements for a user to be a member of the access list. For a membership to an access list to be effective, the user must meet the requirements of Membership_requires and must be in the members list. | +| owners | object | * | owners is a list of owners of the access list. | +| ownership | string | | ownership defines how list ownership of this list is determined. There are two possible values: `explicit` (default): To be considered an owner of the access list, a user must both meet the `ownership_requires` conditions AND be explicitly added to the list. implicit: Any user meeting the `ownership_requires` conditions will automatically be considered an owner of this list. | +| ownership_requires | object | | ownership_requires describes the requirements for a user to be an owner of the access list. For ownership of an access list to be effective, the user must meet the requirements of ownership_requires and must be in the owners list. | +| title | string | | title is a plaintext short description of the access list. | #### spec.audit diff --git a/terraform/tfschema/accesslist/v1/accesslist_terraform.go b/terraform/tfschema/accesslist/v1/accesslist_terraform.go index 9a3e9bf40..1424e72ff 100644 --- a/terraform/tfschema/accesslist/v1/accesslist_terraform.go +++ b/terraform/tfschema/accesslist/v1/accesslist_terraform.go @@ -171,6 +171,11 @@ func GenSchemaAccessList(ctx context.Context) (github_com_hashicorp_terraform_pl Description: "grants describes the access granted by membership to this access list.", Required: true, }, + "membership": { + Description: "membership defines how list membership is applied. There are two possible values: `explicit` (default): To be considered ag member of the access list, a user must both meet the `membership_requires` conditions AND be explicitly added to the list. implicit: Any user meeting the `membership_requires` conditions will automatically be cosidered a member of this list.", + Optional: true, + Type: github_com_hashicorp_terraform_plugin_framework_types.StringType, + }, "membership_requires": { Attributes: github_com_hashicorp_terraform_plugin_framework_tfsdk.SingleNestedAttributes(map[string]github_com_hashicorp_terraform_plugin_framework_tfsdk.Attribute{ "roles": { @@ -214,6 +219,11 @@ func GenSchemaAccessList(ctx context.Context) (github_com_hashicorp_terraform_pl Description: "owners is a list of owners of the access list.", Required: true, }, + "ownership": { + Description: "ownership defines how list ownership of this list is determined. There are two possible values: `explicit` (default): To be considered an owner of the access list, a user must both meet the `ownership_requires` conditions AND be explicitly added to the list. implicit: Any user meeting the `ownership_requires` conditions will automatically be considered an owner of this list.", + Optional: true, + Type: github_com_hashicorp_terraform_plugin_framework_types.StringType, + }, "ownership_requires": { Attributes: github_com_hashicorp_terraform_plugin_framework_tfsdk.SingleNestedAttributes(map[string]github_com_hashicorp_terraform_plugin_framework_tfsdk.Attribute{ "roles": { @@ -1012,6 +1022,40 @@ func CopyAccessListFromTerraform(_ context.Context, tf github_com_hashicorp_terr } } } + { + a, ok := tf.Attrs["membership"] + if !ok { + diags.Append(attrReadMissingDiag{"AccessList.spec.membership"}) + } else { + v, ok := a.(github_com_hashicorp_terraform_plugin_framework_types.String) + if !ok { + diags.Append(attrReadConversionFailureDiag{"AccessList.spec.membership", "github.com/hashicorp/terraform-plugin-framework/types.String"}) + } else { + var t string + if !v.Null && !v.Unknown { + t = string(v.Value) + } + obj.Membership = t + } + } + } + { + a, ok := tf.Attrs["ownership"] + if !ok { + diags.Append(attrReadMissingDiag{"AccessList.spec.ownership"}) + } else { + v, ok := a.(github_com_hashicorp_terraform_plugin_framework_types.String) + if !ok { + diags.Append(attrReadConversionFailureDiag{"AccessList.spec.ownership", "github.com/hashicorp/terraform-plugin-framework/types.String"}) + } else { + var t string + if !v.Null && !v.Unknown { + t = string(v.Value) + } + obj.Ownership = t + } + } + } } } } @@ -2288,6 +2332,50 @@ func CopyAccessListToTerraform(ctx context.Context, obj *github_com_gravitationa tf.Attrs["title"] = v } } + { + t, ok := tf.AttrTypes["membership"] + if !ok { + diags.Append(attrWriteMissingDiag{"AccessList.spec.membership"}) + } else { + v, ok := tf.Attrs["membership"].(github_com_hashicorp_terraform_plugin_framework_types.String) + if !ok { + i, err := t.ValueFromTerraform(ctx, github_com_hashicorp_terraform_plugin_go_tftypes.NewValue(t.TerraformType(ctx), nil)) + if err != nil { + diags.Append(attrWriteGeneralError{"AccessList.spec.membership", err}) + } + v, ok = i.(github_com_hashicorp_terraform_plugin_framework_types.String) + if !ok { + diags.Append(attrWriteConversionFailureDiag{"AccessList.spec.membership", "github.com/hashicorp/terraform-plugin-framework/types.String"}) + } + v.Null = string(obj.Membership) == "" + } + v.Value = string(obj.Membership) + v.Unknown = false + tf.Attrs["membership"] = v + } + } + { + t, ok := tf.AttrTypes["ownership"] + if !ok { + diags.Append(attrWriteMissingDiag{"AccessList.spec.ownership"}) + } else { + v, ok := tf.Attrs["ownership"].(github_com_hashicorp_terraform_plugin_framework_types.String) + if !ok { + i, err := t.ValueFromTerraform(ctx, github_com_hashicorp_terraform_plugin_go_tftypes.NewValue(t.TerraformType(ctx), nil)) + if err != nil { + diags.Append(attrWriteGeneralError{"AccessList.spec.ownership", err}) + } + v, ok = i.(github_com_hashicorp_terraform_plugin_framework_types.String) + if !ok { + diags.Append(attrWriteConversionFailureDiag{"AccessList.spec.ownership", "github.com/hashicorp/terraform-plugin-framework/types.String"}) + } + v.Null = string(obj.Ownership) == "" + } + v.Value = string(obj.Ownership) + v.Unknown = false + tf.Attrs["ownership"] = v + } + } } v.Unknown = false tf.Attrs["spec"] = v