Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into joerger/pr-buddy-963
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger authored Nov 28, 2023
2 parents c1828d1 + d0e372b commit 416bb57
Show file tree
Hide file tree
Showing 44 changed files with 2,227 additions and 259 deletions.
18 changes: 9 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:
- make lint

- name: Run tests
image: golang:1.21.3
image: golang:1.21.4
environment:
RUNNER_TEMP: /tmp
TELEPORT_ENTERPRISE_LICENSE:
Expand Down Expand Up @@ -66,7 +66,7 @@ workspace:

steps:
- name: Build artifacts
image: golang:1.21.3
image: golang:1.21.4
commands:
- make build-all

Expand Down Expand Up @@ -97,7 +97,7 @@ workspace:

steps:
- name: Build artifacts
image: golang:1.21.3
image: golang:1.21.4
commands:
- mkdir -p build/
- export PLUGIN_TYPE=$(echo ${DRONE_TAG} | cut -d- -f2)
Expand Down Expand Up @@ -311,7 +311,7 @@ workspace:

steps:
- name: Build artifacts
image: golang:1.21.3
image: golang:1.21.4
commands:
- mkdir -p build/
- go install github.com/konoui/lipo@latest
Expand Down Expand Up @@ -384,7 +384,7 @@ workspace:

steps:
- name: Build artifacts
image: golang:1.21.3
image: golang:1.21.4
commands:
- mkdir -p build/
- make OS=linux ARCH=amd64 release/event-handler
Expand Down Expand Up @@ -927,7 +927,7 @@ concurrency:

steps:
- name: Upload terraform provider to staging registry
image: golang:1.21.3
image: golang:1.21.4
commands:
- cd tooling
- |
Expand Down Expand Up @@ -985,7 +985,7 @@ concurrency:

steps:
- name: Upload terraform provider to staging registry
image: golang:1.21.3
image: golang:1.21.4
commands:
- cd tooling
- |
Expand Down Expand Up @@ -1043,7 +1043,7 @@ concurrency:

steps:
- name: Promote terraform provider to public registry
image: golang:1.21.3
image: golang:1.21.4
commands:
- cd tooling
- |
Expand Down Expand Up @@ -1081,6 +1081,6 @@ steps:
from_secret: PRODUCTION_TERRAFORM_REGISTRY_SIGNING_KEY
---
kind: signature
hmac: 63e4d9ad2fc74400265609424f058f2ccbd18c52d60c5e884ba07181c3cdd637
hmac: 0c826745b4e302f17699d82532ddadb4005f75395648b99b74e989e0f01e7c33

...
4 changes: 2 additions & 2 deletions access/discord/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-discord
Expand Down
4 changes: 2 additions & 2 deletions access/email/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-email
Expand Down
7 changes: 4 additions & 3 deletions access/email/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import (
"context"
"time"

"github.com/gravitational/teleport/api/client"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/types"
"github.com/gravitational/teleport/integrations/access/common"
"github.com/gravitational/teleport/integrations/access/common/teleport"
"github.com/gravitational/teleport/integrations/lib"
"github.com/gravitational/teleport/integrations/lib/logger"
"github.com/gravitational/teleport/integrations/lib/watcherjob"
Expand All @@ -46,7 +47,7 @@ const (
type App struct {
conf Config

apiClient *client.Client
apiClient teleport.Client
client Client
mainJob lib.ServiceJob

Expand Down Expand Up @@ -124,7 +125,7 @@ func (a *App) init(ctx context.Context) error {
defer cancel()

var err error
if a.apiClient, err = a.conf.Teleport.NewClient(ctx); err != nil {
if a.apiClient, err = common.GetTeleportClient(ctx, a.conf.Teleport); err != nil {
return trace.Wrap(err)
}

Expand Down
4 changes: 2 additions & 2 deletions access/jira/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-jira
Expand Down
4 changes: 2 additions & 2 deletions access/mattermost/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-mattermost
Expand Down
4 changes: 2 additions & 2 deletions access/msteams/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-msteams
Expand Down
11 changes: 6 additions & 5 deletions access/msteams/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ import (
"context"
"time"

"github.com/gravitational/teleport/api/client"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/types"
"github.com/gravitational/teleport/integrations/access/common"
"github.com/gravitational/teleport/integrations/access/common/teleport"
"github.com/gravitational/teleport/integrations/lib"
"github.com/gravitational/teleport/integrations/lib/logger"
pd "github.com/gravitational/teleport/integrations/lib/plugindata"
Expand All @@ -44,7 +45,7 @@ const (
type App struct {
conf Config

apiClient *client.Client
apiClient teleport.Client
bot *Bot
mainJob lib.ServiceJob
watcherJob lib.ServiceJob
Expand Down Expand Up @@ -104,14 +105,14 @@ func (a *App) init(ctx context.Context) error {
ctx, cancel := context.WithTimeout(ctx, initTimeout)
defer cancel()

apiClient, err := a.conf.Teleport.NewClient(ctx)
var err error
a.apiClient, err = common.GetTeleportClient(ctx, a.conf.Teleport)
if err != nil {
return trace.Wrap(err)
}

a.apiClient = apiClient
a.pd = pd.NewCAS(
apiClient,
a.apiClient,
pluginName,
types.KindAccessRequest,
EncodePluginData,
Expand Down
4 changes: 2 additions & 2 deletions access/pagerduty/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-pagerduty
Expand Down
4 changes: 2 additions & 2 deletions access/slack/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=14.1.0
GO_VERSION=1.21.3
VERSION=14.2.0
GO_VERSION=1.21.4

BUILDDIR ?= build
BINARY = $(BUILDDIR)/teleport-slack
Expand Down
6 changes: 3 additions & 3 deletions charts/access/discord/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0"
version: "14.2.0"

# 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.1.0"
version: "14.2.0"

# 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.1.0"
appVersion: "14.2.0"
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-discord-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-discord-14.2.0
name: RELEASE-NAME-teleport-plugin-discord
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-discord-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-discord-14.2.0
name: RELEASE-NAME-teleport-plugin-discord
spec:
replicas: 1
Expand Down
4 changes: 2 additions & 2 deletions charts/access/email/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0"
version: "14.2.0"

# 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.1.0"
appVersion: "14.2.0"
24 changes: 12 additions & 12 deletions charts/access/email/tests/__snapshot__/configmap_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-email-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-email-14.2.0
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on):
1: |
Expand Down Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-email-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-email-14.2.0
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, no starttls):
1: |
Expand Down Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-email-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-email-14.2.0
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, password file):
1: |
Expand Down Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-email-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-email-14.2.0
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, roleToRecipients set):
1: |
Expand Down Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-email-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-email-14.2.0
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, starttls disabled):
1: |
Expand Down Expand Up @@ -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.1.0
helm.sh/chart: teleport-plugin-email-14.1.0
app.kubernetes.io/version: 14.2.0
helm.sh/chart: teleport-plugin-email-14.2.0
name: RELEASE-NAME-teleport-plugin-email
Loading

0 comments on commit 416bb57

Please sign in to comment.