Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use static clusters instead of EDS #47

Open
wants to merge 48 commits into
base: teleport
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
274d221
0.4.0-rc.1: Pin Envoy Proxy and Envoy Ratelimit for release (#1305)
Apr 13, 2023
36839fd
[release/v0.4] chore: bump envoy proxy to v1.26 (#1327)
arkodg Apr 19, 2023
c92514f
Release - 0.4.0: Cherry Pick Fixes (#1350)
Apr 24, 2023
c4eb8da
Cherry-pick 0.4.0 release notes to release/v0.4.0 (#1351)
Apr 24, 2023
4f01034
Add github actions and make teleport workflows (#1)
dboslee Jun 23, 2023
e044de7
Fix helm versioning (#2)
dboslee Jul 5, 2023
4f4bffa
Differentiate between tcp listener and tcp route names (#6)
dboslee Jul 7, 2023
d8e77b4
Add support ALPN routing via TLSRoute annotation
sclevine Jul 6, 2023
9e25185
Improve tests
sclevine Jul 6, 2023
6ac1a3d
Fix variable
sclevine Jul 6, 2023
ed681cf
Add missing deepcopy regen
sclevine Jul 6, 2023
100a9ad
Merge pull request #5 from gravitational/sclevine/alpn-routing
sclevine Jul 10, 2023
fc498d8
Add TLSRoute annotations to handle proxy protocol and max connections…
dboslee Jul 10, 2023
19ab826
Cherry pick support for envoy pod affinity and tolerations (#7)
dboslee Jul 10, 2023
6b2b025
build(deps): bump golang.org/x/text in /tools/src/controller-gen (#25)
dependabot[bot] Aug 1, 2023
3313a07
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0 in /tools/src/…
dependabot[bot] Aug 1, 2023
b509ddb
build(deps): bump golang.org/x/sys in /tools/src/setup-envtest (#23)
dependabot[bot] Aug 1, 2023
b2b2d38
Create initial codeql workflow configuration
jentfoo Aug 1, 2023
ab2e6aa
Add support for downstream proxy protocol (#28)
dboslee Aug 3, 2023
43e0114
build(deps): bump go.mongodb.org/mongo-driver in /tools/src/kustomize
dependabot[bot] Jul 25, 2023
c10ba2e
build(deps): bump golang.org/x/sys in /tools/src/kind
dependabot[bot] Aug 1, 2023
9b0fce3
build(deps): bump github.com/docker/distribution in /tools/src/buf
dependabot[bot] Jul 25, 2023
d2d9ae2
build(deps): bump golang.org/x/net in /tools/src/crd-ref-docs
dependabot[bot] Aug 14, 2023
6c1fca6
build(deps): bump golang.org/x/net in /tools/src/controller-gen
dependabot[bot] Aug 14, 2023
0223bf7
build(deps): bump golang.org/x/text in /tools/src/kustomize
dependabot[bot] Aug 14, 2023
bf69c74
build(deps): bump golang.org/x/text in /tools/src/setup-envtest
dependabot[bot] Aug 14, 2023
890f2cf
build(deps): bump github.com/docker/docker in /tools/src/buf
dependabot[bot] Aug 14, 2023
193e645
build(deps): bump golang.org/x/net in /tools/src/setup-envtest
dependabot[bot] Aug 14, 2023
409742f
build(deps): bump golang.org/x/net in /tools/src/kustomize
dependabot[bot] Aug 14, 2023
c7da038
Implement equal for ir.Xds to reduce number of xds updates (#29)
dboslee Aug 16, 2023
37374ee
Compact resource reconciles into a single reconcile run (#30)
dboslee Aug 21, 2023
a063fdc
build(deps): bump gopkg.in/yaml.v3 in /tools/src/kustomize
dependabot[bot] Sep 19, 2023
1ad2c7b
build(deps): bump golang.org/x/net in /tools/src/kustomize
dependabot[bot] Oct 12, 2023
2a5a99d
build(deps): bump golang.org/x/net in /tools/src/controller-gen
dependabot[bot] Oct 12, 2023
cfadf44
build(deps): bump golang.org/x/net in /tools/src/buf
dependabot[bot] Oct 12, 2023
8c15fa2
build(deps): bump golang.org/x/net in /tools/src/setup-envtest
dependabot[bot] Oct 12, 2023
b6d7b0d
build(deps): bump golang.org/x/net from 0.8.0 to 0.17.0
dependabot[bot] Oct 12, 2023
273b78c
build(deps): bump golang.org/x/net in /tools/src/crd-ref-docs
dependabot[bot] Oct 12, 2023
02a15f0
Run cd action for teleport branch (#38)
dboslee Oct 12, 2023
58da048
build(deps): bump google.golang.org/grpc from 1.54.0 to 1.56.3 (#39)
dependabot[bot] Oct 31, 2023
14e9af6
build(deps): bump github.com/docker/docker in /tools/src/buf
dependabot[bot] Oct 31, 2023
2018cbb
build(deps): bump golang.org/x/crypto in /tools/src/crd-ref-docs
dependabot[bot] Dec 19, 2023
88fab01
build(deps): bump google.golang.org/protobuf in /tools/src/golangci-lint
dependabot[bot] Mar 13, 2024
e9cee2b
build(deps): bump google.golang.org/protobuf in /tools/src/setup-envtest
dependabot[bot] Mar 13, 2024
be8b8a8
build(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0
dependabot[bot] Mar 13, 2024
640a0e0
build(deps): bump google.golang.org/protobuf in /tools/src/buf
dependabot[bot] Mar 13, 2024
e93e143
build(deps): bump google.golang.org/protobuf
dependabot[bot] Mar 13, 2024
db857e5
Use static clusters instead of EDS
dboslee Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
name: Build and Test
on:
push:
branches:
- "main"
- "release/v*"
paths-ignore:
- "**/*.png"
pull_request:
branches:
- "main"
- "release/v*"
paths-ignore:
- "**/*.png"
on: workflow_call

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: cd
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+.*'
branches:
- teleport

permissions:
contents: read

jobs:

push:
name: Build and Push
permissions:
contents: read
checks: read
id-token: write
env:
AWS_REGION: us-west-2
ECR_AWS_ROLE: arn:aws:iam::146628656107:role/gateway-api-github-action-ecr-role
runs-on: ubuntu-latest
needs: [verify, test]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ECR_AWS_ROLE }}
mask-aws-account-id: 'no'
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push gateway
run: PLATFORM="linux_amd64" make teleport-push
- name: Build and push helm
run: make teleport-helm-push

verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: Run Verify
run: make teleport-verify

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: Unit Tests
run: make teleport-test
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ci
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled

permissions:
contents: read

jobs:

build:
name: Build
runs-on: ubuntu-latest
needs: [verify, test]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build gateway
run: PLATFORM="linux_amd64" make teleport-build
- name: Build gateway helm
run: CHART_VERSION=v0.0.0-latest TAG=latest make teleport-helm-package

verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: Run Verify
run: make teleport-verify

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: Unit Tests
run: make teleport-test
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "teleport" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "teleport" ]

jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
timeout-minutes: 240
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
12 changes: 1 addition & 11 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
name: Docs
on:
push:
branches:
- "main"
paths-ignore:
- "**/*.png"
pull_request:
branches:
- "main"
paths-ignore:
- "**/*.png"
on: workflow_call

jobs:
docs-lint:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/latest_release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Latest Release

on:
push:
branches:
- "main"
paths-ignore:
- "**/*.png"
on: workflow_call

jobs:
latest-release:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*.*.*"
on: workflow_call

jobs:
release:
runs-on: ubuntu-latest
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
on: workflow_call

jobs:
prune_stale:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.0-rc.1
v0.4
12 changes: 10 additions & 2 deletions api/config/v1alpha1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const (
// DefaultDeploymentMemoryResourceRequests for deployment memory resource
DefaultDeploymentMemoryResourceRequests = "512Mi"
// DefaultEnvoyProxyImage is the default image used by envoyproxy
DefaultEnvoyProxyImage = "envoyproxy/envoy-dev:latest"
DefaultEnvoyProxyImage = "envoyproxy/envoy:v1.26-latest"
// DefaultRateLimitImage is the default image used by ratelimit.
DefaultRateLimitImage = "envoyproxy/ratelimit:master"
DefaultRateLimitImage = "envoyproxy/ratelimit:542a6047"
)

// GroupVersionKind unambiguously identifies a Kind.
Expand Down Expand Up @@ -75,6 +75,14 @@ type KubernetesPodSpec struct {
//
// +optional
SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`

// If specified, the pod's scheduling constraints.
// +optional
Affinity *corev1.Affinity `json:"affinity,omitempty"`

// If specified, the pod's tolerations.
// +optional
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}

// KubernetesContainerSpec defines the desired state of the Kubernetes container resource.
Expand Down
12 changes: 12 additions & 0 deletions api/config/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading