Skip to content

Commit

Permalink
Merge branch 'main' into jm/req-host-val
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Jul 13, 2023
2 parents ce10138 + a2c6953 commit 133c7ec
Show file tree
Hide file tree
Showing 15 changed files with 1,284 additions and 785 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ jobs:
runs-on: ${{ needs.setup.outputs.compute-xl }}
repository-name: ${{ github.repository }}
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
# pinning this to 1.20.5 because this issue in go-testcontainers occurs
# in 1.20.6 with the error "http: invalid Host header, host port waiting failed"
# https://github.com/testcontainers/testcontainers-go/issues/1359
# remove setting this when the above issue is fixed so that the reusable
# job will just get the go version from go.mod.
go-version: "1.20.5"
permissions:
id-token: write # NOTE: this permission is explicitly required for Vault auth.
contents: read
Expand Down
5 changes: 3 additions & 2 deletions internal/mesh/exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ var (

// Resource Types for the v1alpha1 version.

ProxyConfigurationV1Alpha1Type = types.ProxyConfigurationV1Alpha1Type
UpstreamsV1Alpha1Type = types.UpstreamsV1Alpha1Type
ProxyConfigurationV1Alpha1Type = types.ProxyConfigurationV1Alpha1Type
UpstreamsV1Alpha1Type = types.UpstreamsV1Alpha1Type
UpstreamsConfigurationV1Alpha1Type = types.UpstreamsConfigurationV1Alpha1Type
)

// RegisterTypes adds all resource types within the "catalog" API group
Expand Down
2 changes: 1 addition & 1 deletion internal/mesh/internal/types/proxy_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
var (
ProxyConfigurationV1Alpha1Type = &pbresource.Type{
Group: GroupName,
GroupVersion: CurrentVersion,
GroupVersion: VersionV1Alpha1,
Kind: ProxyConfigurationKind,
}

Expand Down
1 change: 1 addition & 0 deletions internal/mesh/internal/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ const (
func Register(r resource.Registry) {
RegisterProxyConfiguration(r)
RegisterUpstreams(r)
RegisterUpstreamsConfiguration(r)
}
2 changes: 1 addition & 1 deletion internal/mesh/internal/types/upstreams.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
var (
UpstreamsV1Alpha1Type = &pbresource.Type{
Group: GroupName,
GroupVersion: CurrentVersion,
GroupVersion: VersionV1Alpha1,
Kind: UpstreamsKind,
}

Expand Down
32 changes: 32 additions & 0 deletions internal/mesh/internal/types/upstreams_configuration.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package types

import (
"github.com/hashicorp/consul/internal/resource"
pbmesh "github.com/hashicorp/consul/proto-public/pbmesh/v1alpha1"
"github.com/hashicorp/consul/proto-public/pbresource"
)

const (
UpstreamsConfigurationKind = "UpstreamsConfiguration"
)

var (
UpstreamsConfigurationV1Alpha1Type = &pbresource.Type{
Group: GroupName,
GroupVersion: VersionV1Alpha1,
Kind: UpstreamsConfigurationKind,
}

UpstreamsConfigurationType = UpstreamsConfigurationV1Alpha1Type
)

func RegisterUpstreamsConfiguration(r resource.Registry) {
r.Register(resource.Registration{
Type: UpstreamsConfigurationV1Alpha1Type,
Proto: &pbmesh.UpstreamsConfiguration{},
Validate: nil,
})
}

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

Large diffs are not rendered by default.

File renamed without changes.
34 changes: 2 additions & 32 deletions proto-public/pbmesh/v1alpha1/upstreams.pb.binary.go

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

0 comments on commit 133c7ec

Please sign in to comment.