Skip to content

Commit feb1987

Browse files
authored
Merge branch 'main' into sheidkamp/deprecate-graphql
2 parents 1bc49eb + 2c3b8fb commit feb1987

File tree

12 files changed

+39
-20
lines changed

12 files changed

+39
-20
lines changed

.github/workflows/pr-unit-tests.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Unit Tests
66
#
77
# Our historical unit tests are run via CloudBuild
88
# Overtime, it would be valuable to consolidate these approaches
9+
env:
10+
VERSION: '1.0.0-ci1'
11+
GITHUB_TOKEN: ${{ github.token }}
912

1013
on:
1114
pull_request:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
changelog:
2+
- type: FIX
3+
issueLink: https://github.com/solo-io/gloo-mesh-enterprise/issues/19119
4+
resolvesIssue: false
5+
description: >-
6+
Bump the kubectl image from 1.29.6 to to 1.31.1 to address CVE-2023-45288.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
changelog:
2+
- type: NON_USER_FACING
3+
description: >-
4+
Fix CRD check to allow the group/kind to be missing.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
changelog:
2+
- type: NON_USER_FACING
3+
issueLink: https://github.com/solo-io/solo-projects/issues/6888
4+
resolvesIssue: false
5+
description: >-
6+
Update helm public docs generation to work from main branch and only pull in released changes

docs/cmd/generate_docs.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,9 @@ func fetchEnterpriseHelmValues(_ []string) error {
454454
if err != nil {
455455
return err
456456
}
457-
version, err := semver.NewVersion(string(semverReleaseTag))
458-
if err != nil {
459-
return err
460-
}
461-
minorReleaseTag := fmt.Sprintf("v%d.%d.x", version.Major(), version.Minor())
457+
458+
minorReleaseTag := "v" + string(semverReleaseTag)
459+
462460
files, err := githubutils.GetFilesFromGit(ctx, client, repoOwner, glooEnterpriseRepo, minorReleaseTag, path)
463461
if err != nil {
464462
return err

jobs/kubectl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BASE_IMAGE
22

3-
FROM bitnami/kubectl:1.29.6 as kubectl
3+
FROM bitnami/kubectl:1.31.1 as kubectl
44

55
FROM $BASE_IMAGE
66

jobs/kubectl/Dockerfile.distroless

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BASE_IMAGE
22

3-
FROM bitnami/kubectl:1.29.6 as kubectl
3+
FROM bitnami/kubectl:1.31.1 as kubectl
44

55
FROM $BASE_IMAGE
66

pkg/github-action-utils/version.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ func GetLatestEnterpriseVersion(repoRootPath string, repo string, owner string)
3535
return err
3636
}
3737
defer f.Close()
38-
enterpriseVersion, err := version.GetLatestHelmChartVersionWithMaxVersion(version.EnterpriseHelmRepoIndex, version.GlooEE, true, maxGlooEVersion)
38+
// get the latest version from the helm repo, include unstable versions so it works from the main branches
39+
// for LTS branches, unstable versions will be filtered out by the version constraints
40+
enterpriseVersion, err := version.GetLatestHelmChartVersionWithMaxVersion(version.EnterpriseHelmRepoIndex, version.GlooEE, false, maxGlooEVersion)
3941
if err != nil {
4042
return err
4143
}

pkg/schemes/extended_scheme.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55

66
"github.com/solo-io/gloo/projects/gateway2/wellknown"
7+
"k8s.io/apimachinery/pkg/api/errors"
78
"k8s.io/apimachinery/pkg/api/meta"
89
"k8s.io/apimachinery/pkg/runtime"
910
"k8s.io/client-go/discovery"
@@ -38,7 +39,7 @@ func CRDExists(restConfig *rest.Config, group, version, kind string) (bool, erro
3839
groupVersion := fmt.Sprintf("%s/%s", group, version)
3940
apiResourceList, err := discoveryClient.ServerResourcesForGroupVersion(groupVersion)
4041
if err != nil {
41-
if discovery.IsGroupDiscoveryFailedError(err) || meta.IsNoMatchError(err) {
42+
if errors.IsNotFound(err) || discovery.IsGroupDiscoveryFailedError(err) || meta.IsNoMatchError(err) {
4243
return false, nil
4344
}
4445
return false, err

projects/gateway2/controller/start.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ func NewControllerBuilder(ctx context.Context, cfg StartConfig) (*ControllerBuil
151151
krt.WithName("AuthConfig"))
152152

153153
inputChannels := proxy_syncer.NewGatewayInputChannels()
154+
155+
setupLog.Info("initializing k8sgateway extensions")
154156
k8sGwExtensions, err := cfg.ExtensionsFactory(ctx, ext.K8sGatewayExtensionsFactoryParameters{
155157
Mgr: mgr,
156158
IstioClient: cfg.Client,
@@ -169,6 +171,7 @@ func NewControllerBuilder(ctx context.Context, cfg StartConfig) (*ControllerBuil
169171
}
170172

171173
// Create the proxy syncer for the Gateway API resources
174+
setupLog.Info("initializing proxy syncer")
172175
proxySyncer := proxy_syncer.NewProxySyncer(
173176
ctx,
174177
cfg.InitialSettings,
@@ -188,7 +191,6 @@ func NewControllerBuilder(ctx context.Context, cfg StartConfig) (*ControllerBuil
188191
cfg.SetupOpts.ProxyReconcileQueue,
189192
)
190193
proxySyncer.Init(ctx, cfg.Debugger)
191-
192194
if err := mgr.Add(proxySyncer); err != nil {
193195
setupLog.Error(err, "unable to add proxySyncer runnable")
194196
return nil, err

projects/gateway2/setup/ggv2setup.go

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ package setup
22

33
import (
44
"context"
5+
"errors"
56
"fmt"
67
"sort"
78
"strings"
89

9-
"errors"
10-
1110
"github.com/solo-io/gloo/pkg/utils/envutils"
1211
"github.com/solo-io/gloo/pkg/utils/setuputils"
1312
gloostatusutils "github.com/solo-io/gloo/pkg/utils/statusutils"
@@ -43,9 +42,7 @@ import (
4342
ctrl "sigs.k8s.io/controller-runtime"
4443
)
4544

46-
var (
47-
settingsGVR = glookubev1.SchemeGroupVersion.WithResource("settings")
48-
)
45+
var settingsGVR = glookubev1.SchemeGroupVersion.WithResource("settings")
4946

5047
func createKubeClient(restConfig *rest.Config) (istiokube.Client, error) {
5148
restCfg := istiokube.NewClientConfigForRestConfig(restConfig)
@@ -77,15 +74,14 @@ func getInitialSettings(ctx context.Context, c istiokube.Client, nns types.Names
7774
return nil
7875
}
7976
return out
80-
8177
}
8278

8379
func StartGGv2(ctx context.Context,
8480
setupOpts *bootstrap.SetupOpts,
8581
uccBuilder krtcollections.UniquelyConnectedClientsBulider,
8682
extensionsFactory extensions.K8sGatewayExtensionsFactory,
87-
pluginRegistryFactory func(opts registry.PluginOpts) plugins.PluginRegistryFactory) error {
88-
83+
pluginRegistryFactory func(opts registry.PluginOpts) plugins.PluginRegistryFactory,
84+
) error {
8985
restConfig := ctrl.GetConfigOrDie()
9086

9187
return StartGGv2WithConfig(ctx, setupOpts, restConfig, uccBuilder, extensionsFactory, pluginRegistryFactory, setuputils.SetupNamespaceName())
@@ -164,6 +160,7 @@ func StartGGv2WithConfig(ctx context.Context,
164160
Debugger: setupOpts.KrtDebugger,
165161
})
166162
if err != nil {
163+
logger.Error("failed initializing controller: ", err)
167164
return err
168165
}
169166
/// no collections after this point

test/kubernetes/testutils/helper/util_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ func TestReturnsLatestPatchForMinor(t *testing.T) {
2323
ctx := context.Background()
2424
// this is fine because this is a public repo
2525
client := githubutils.GetClientWithOrWithoutToken(ctx)
26-
minor, err := getLatestReleasedPatchVersion(ctx, client, "gloo", 1, 8)
26+
minor, err := getLatestReleasedPatchVersion(ctx, client, "gloo", 1, 9)
2727
require.NoError(t, err)
2828

29-
assert.Equal(t, "v1.8.37", minor.String())
29+
assert.Equal(t, "v1.9.30", minor.String())
3030
}

0 commit comments

Comments
 (0)