Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Bump k8scc to support k8s 1.24. (#1694)
Browse files Browse the repository at this point in the history
* Bump k8scc to support k8s 1.24.

* bump k8scc

* bump k8scc

* bump 8scc
  • Loading branch information
whites11 authored Jan 11, 2023
1 parent 910301b commit 1e8b9b5
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Bump k8scc to support k8s 1.24.

## [6.0.3] - 2022-10-11

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/giantswarm/exporterkit v1.0.0
github.com/giantswarm/ipam v0.3.0
github.com/giantswarm/k8sclient/v7 v7.0.1
github.com/giantswarm/k8scloudconfig/v14 v14.5.2
github.com/giantswarm/k8scloudconfig/v15 v15.4.0
github.com/giantswarm/k8smetadata v0.9.3
github.com/giantswarm/kubelock/v2 v2.0.0
github.com/giantswarm/microendpoint v1.0.0
Expand Down Expand Up @@ -110,7 +110,7 @@ require (
go.opentelemetry.io/otel v1.3.0 // indirect
go.opentelemetry.io/otel/trace v1.3.0 // indirect
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ github.com/giantswarm/ipam v0.3.0/go.mod h1:xG4cMEKwHlbE0aZ7x2H5j7o81U13LIStA73X
github.com/giantswarm/k8sclient/v4 v4.0.0/go.mod h1:jTwQ8q0YbJJu3ZxbjoI6hkXeuvKm15xyI/c+zwxnUH0=
github.com/giantswarm/k8sclient/v7 v7.0.1 h1:UmRwgsw5Uda27tpIblPo7nWjp/nq5qwqxEPHWcvzsHk=
github.com/giantswarm/k8sclient/v7 v7.0.1/go.mod h1:zJTXammjLHSiukMIO4+a6eUDgzj/lJxEXFZ22mC0WXc=
github.com/giantswarm/k8scloudconfig/v14 v14.5.2 h1:tnZCKbKIvGLYN57lp0rDEhOgoe8p8ptVacu/nbB53pw=
github.com/giantswarm/k8scloudconfig/v14 v14.5.2/go.mod h1:XYSG+atEtJq4qablG3KWKe1fpiaS9KZCy66QzsFTyow=
github.com/giantswarm/k8scloudconfig/v15 v15.4.0 h1:bv92A4t7BjpR3WiHLx75wgmwThv5w61P476RojPvnQQ=
github.com/giantswarm/k8scloudconfig/v15 v15.4.0/go.mod h1:U/8wnDDk6aiL7g81AtB0dfnyJjiubJNlaUgBakHRgNo=
github.com/giantswarm/k8smetadata v0.9.3 h1:YJJ5NJzjIQImNZc96ia2zh1PEkMt9+G+HalA8ZL8qxQ=
github.com/giantswarm/k8smetadata v0.9.3/go.mod h1:k3DYCMdspxhk7efLkQdX1b8UZ71ijOCG3ZoIU8+5xgw=
github.com/giantswarm/kubelock/v2 v2.0.0 h1:s5mJc32HD0cX7hRS3sZ+d0J7d7g9CZtz9uxyDv+24II=
Expand Down Expand Up @@ -1363,8 +1363,8 @@ golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 h1:NWy5+hlRbC7HK+PmcXVUmW1IMyFce7to56IUvhUFm7Y=
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"

"github.com/giantswarm/certs/v4/pkg/certs"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
"github.com/giantswarm/microerror"
"github.com/giantswarm/operatorkit/v7/pkg/controller/context/resourcecanceledcontext"
"golang.org/x/sync/errgroup"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
corev1alpha1 "github.com/giantswarm/apiextensions/v6/pkg/apis/core/v1alpha1"
providerv1alpha1 "github.com/giantswarm/apiextensions/v6/pkg/apis/provider/v1alpha1"
"github.com/giantswarm/certs/v4/pkg/certs"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
"github.com/giantswarm/microerror"
"github.com/giantswarm/operatorkit/v7/pkg/controller/context/reconciliationcanceledcontext"
releasev1alpha1 "github.com/giantswarm/release-operator/v3/api/v1alpha1"
Expand Down
2 changes: 1 addition & 1 deletion service/controller/cloudconfig/cloud_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudconfig

import (
"github.com/Azure/go-autorest/autorest/azure/auth"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
"github.com/giantswarm/microerror"
"github.com/giantswarm/micrologger"
ctrl "sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
8 changes: 3 additions & 5 deletions service/controller/cloudconfig/master_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"

"github.com/giantswarm/apiextensions/v6/pkg/annotation"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
"github.com/giantswarm/microerror"

"github.com/giantswarm/azure-operator/v6/service/controller/encrypter"
Expand All @@ -15,9 +15,8 @@ import (
)

const (
defaultEtcdPort = 2379
defaultImagePullProgressDeadline = "1m"
EtcdInitialClusterStateNew = "new"
defaultEtcdPort = 2379
EtcdInitialClusterStateNew = "new"

encryptionConfigFilePath = "/etc/kubernetes/encryption/k8s-encryption-config.yaml"
)
Expand Down Expand Up @@ -50,7 +49,6 @@ func (c CloudConfig) NewMasterTemplate(ctx context.Context, data IgnitionTemplat
params.Cluster = data.CustomObject.Spec.Cluster
params.CalicoPolicyOnly = true
params.DockerhubToken = c.dockerhubToken
params.ImagePullProgressDeadline = defaultImagePullProgressDeadline
params.DisableIngressControllerService = true
params.Etcd.ClientPort = defaultEtcdPort
params.Etcd.HighAvailability = false
Expand Down
2 changes: 1 addition & 1 deletion service/controller/cloudconfig/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudconfig
import (
providerv1alpha1 "github.com/giantswarm/apiextensions/v6/pkg/apis/provider/v1alpha1"
"github.com/giantswarm/certs/v4/pkg/certs"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
capz "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
capzexp "sigs.k8s.io/cluster-api-provider-azure/exp/api/v1beta1"
capi "sigs.k8s.io/cluster-api/api/v1beta1"
Expand Down
3 changes: 1 addition & 2 deletions service/controller/cloudconfig/worker_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/base64"
"fmt"

k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
"github.com/giantswarm/k8smetadata/pkg/annotation"
"github.com/giantswarm/microerror"

Expand Down Expand Up @@ -56,7 +56,6 @@ func (c CloudConfig) NewWorkerTemplate(ctx context.Context, data IgnitionTemplat
}
params.DockerhubToken = c.dockerhubToken
params.Images = data.Images
params.ImagePullProgressDeadline = defaultImagePullProgressDeadline
params.RegistryMirrors = c.registryMirrors
params.Versions = data.Versions
params.SSOPublicKey = c.ssoPublicKey
Expand Down
2 changes: 1 addition & 1 deletion service/controller/key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/giantswarm/apiextensions/v6/pkg/apis/provider/v1alpha1"
providerv1alpha1 "github.com/giantswarm/apiextensions/v6/pkg/apis/provider/v1alpha1"
apiextensionslabels "github.com/giantswarm/apiextensions/v6/pkg/label"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v14/pkg/template"
k8scloudconfig "github.com/giantswarm/k8scloudconfig/v15/pkg/template"
k8smetaannotation "github.com/giantswarm/k8smetadata/pkg/annotation"
"github.com/giantswarm/microerror"
v1 "k8s.io/api/core/v1"
Expand Down

0 comments on commit 1e8b9b5

Please sign in to comment.