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

On Hold: Spectro v1beta1 1.5.2 #619

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d9daec2
Bump nvidia GPU operator version in GPU tests
Ankitasw Aug 10, 2022
3cef5f2
Merge pull request #3676 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Aug 19, 2022
7d79e43
fix: use v1beta1 version in EKS user kubeconfig
dkoshkin Sep 22, 2022
880bf02
fix: wrong EKS tag when upgrading older clusters
dkoshkin Oct 18, 2022
af7d61e
better error message
dkoshkin Oct 18, 2022
75913e9
Merge pull request #3787 from dlipovetsky/cherry-pick-3783-to-release…
k8s-ci-robot Oct 20, 2022
b9c7ba8
chore: Backport maintainer/reviewer updates to release-1.5
dlipovetsky Oct 31, 2022
49ac163
Merge pull request #3807 from dlipovetsky/owners-aliases-backport-rel…
k8s-ci-robot Oct 31, 2022
299d2b7
Merge pull request #3763 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Oct 31, 2022
4355402
Add Instance AZ SDK API to CAPA API conversion
Ankitasw Sep 23, 2022
1fd417b
fix for providerIDList in managed node pools
Ankitasw Nov 4, 2022
4d83291
Merge pull request #3818 from Ankitasw/providerIdList-fix
k8s-ci-robot Nov 5, 2022
1f66f27
Merge pull request #3816 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Nov 7, 2022
25792a4
Added webhook port check
AmitSahastra Jul 13, 2022
5aae905
Added spectro manifests
AmitSahastra Jul 13, 2022
f5be913
Added cluster autoscaler support to EKS
AmitSahastra Jul 13, 2022
f9aa517
Fix BET-4653
AmitSahastra Jul 13, 2022
989b54f
Fixed OIDC deletion issue for private EKS cluster
snehala27 Aug 26, 2022
1f6d3f2
PCP-259: Upgrade: Issues with EKS Cluster post upgrade
AmitSahastra Aug 30, 2022
99021ff
Code optimization
AmitSahastra Aug 30, 2022
00b27cd
Fixed trust policy reconcile issue
snehala27 Nov 15, 2022
6212fa9
PCP-618: capa fix hardcoded role arn for aws iam authenticator (#519)
AmitSahastra Dec 7, 2022
508c4d7
Update arn for AmazonEKSClusterPolicy (#524)
AmitSahastra Dec 9, 2022
a12778b
PCP-230: Fix AWS Cluster Tags Deletion & Re-addition issue
vishu2498 Dec 13, 2022
d48814e
PCP-124: Adding tags to AWS Network Interfaces
vishu2498 Dec 27, 2022
e4afbe6
Us-gov partition update and merge conflicts
AmitSahastra Feb 14, 2023
47175f2
launch template support
AmitSahastra Feb 15, 2023
34b9546
Support eks launch template without AMI id
AmitSahastra Apr 6, 2023
baf10c2
Fix launch template delete with launchTemplate ID
AmitSahastra Apr 10, 2023
89fc997
BET-6063: deletion fails for aws cluster with vpc limit exceeded
AmitSahastra Sep 7, 2022
8b6ced0
normalize oidc configs to string values for comparison
luthermonson Sep 14, 2022
e9dec69
switch to using interface func for consistency
luthermonson Sep 13, 2022
1038780
rework vpc cni envvar logic to drop the forced keys
luthermonson Aug 19, 2022
24aad8b
Bump CAPI to v1.1.5 and e2e test Kubernetes versions to v1.24.0
sedefsavas Jul 14, 2022
44616a9
deleting additional vpc cni resources when disabled
luthermonson Sep 21, 2022
4fc6e12
adding a return nil after deleting cni
luthermonson Aug 17, 2022
87973a4
Part 1 of adding ipv6 support for newly created clusters
Skarlso Jun 8, 2022
63a1e41
feat: add custom environment variables to the 'aws-node' DaemonSet
charlie-haley Jun 21, 2022
54c6fe1
update idp reconciler to get out sooner if nothing to do
luthermonson Sep 23, 2022
46c81a2
adding gitattributes for easier dev on windows os
luthermonson Sep 23, 2022
48d41dd
EKS: minSize and maxSize updates
snehala27 Nov 23, 2022
2c62ae3
remove hardcoded partitions
sadysnaat Dec 1, 2022
603ea0a
PCP-732: Adding tags to OIDC providers
vishu2498 Jan 12, 2023
3eb5015
Disable event for VPC CNI removal and update Go version
snehala27 Feb 15, 2023
73ab347
Bumped versions to resolve security issues
snehala27 Mar 1, 2023
a63e702
Bumped golang to 1.20.2
snehala27 Mar 15, 2023
675010c
adding irsa support to awscluster
luthermonson Feb 28, 2023
27955f5
Fix merge conflic and go mod
AmitSahastra Apr 11, 2023
5b9c657
Merge pull request #663 from spectrocloud/spectro-v1beta1-1.5.2_v2
sadysnaat Apr 13, 2023
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.sh text eol=lf
*.yaml text eol=lf
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

# Build the manager binary
FROM golang:1.17.3 as toolchain
FROM golang:1.20.2 as toolchain

# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy
ARG goproxy=https://proxy.golang.org
Expand Down
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ endif

# Release variables

STAGING_REGISTRY ?= gcr.io/k8s-staging-cluster-api-aws
STAGING_REGISTRY ?= gcr.io/spectro-dev-public/cluster-api-aws
STAGING_BUCKET ?= artifacts.k8s-staging-cluster-api-aws.appspot.com
BUCKET ?= $(STAGING_BUCKET)
PROD_REGISTRY := registry.k8s.io/cluster-api-aws
REGISTRY ?= $(STAGING_REGISTRY)
REGISTRY ?= gcr.io/spectro-dev-public/amit/cluster-api-aws
RELEASE_TAG ?= $(shell git describe --abbrev=0 2>/dev/null)
PULL_BASE_REF ?= $(RELEASE_TAG) # PULL_BASE_REF will be provided by Prow
RELEASE_ALIAS_TAG ?= $(PULL_BASE_REF)
Expand All @@ -92,8 +92,9 @@ BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
# image name used to build the cmd/clusterawsadm
TOOLCHAIN_IMAGE := toolchain

TAG ?= dev
ARCH ?= $(shell go env GOARCH)
TAG ?= spectro-v1.5.0-$(shell date +%Y%m%d)
#ARCH ?= $(shell go env GOARCH)
ARCH ?= amd64
ALL_ARCH ?= amd64 arm arm64 ppc64le s390x

# main controller
Expand Down Expand Up @@ -343,7 +344,8 @@ clusterawsadm: ## Build clusterawsadm binary

.PHONY: docker-build
docker-build: docker-pull-prerequisites ## Build the docker image for controller-manager
docker build --build-arg ARCH=$(ARCH) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CORE_CONTROLLER_IMG)-$(ARCH):$(TAG)
docker build --build-arg ARCH=$(ARCH) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CORE_CONTROLLER_IMG):$(TAG)
@echo $(CORE_CONTROLLER_IMG):$(TAG)

.PHONY: docker-build-all ## Build all the architecture docker images
docker-build-all: $(addprefix docker-build-,$(ALL_ARCH))
Expand Down Expand Up @@ -486,7 +488,7 @@ compiled-manifest: $(RELEASE_DIR) $(KUSTOMIZE) ## Compile the manifest files

.PHONY: docker-push
docker-push: ## Push the docker image
docker push $(CORE_CONTROLLER_IMG)-$(ARCH):$(TAG)
docker push $(CORE_CONTROLLER_IMG):$(TAG)

.PHONY: docker-push-all ## Push all the architecture docker images
docker-push-all: $(addprefix docker-push-,$(ALL_ARCH))
Expand Down
2 changes: 2 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ approvers:
- sig-cluster-lifecycle-leads
- cluster-api-admins
- cluster-api-maintainers
- cluster-api-aws-admins
- cluster-api-aws-maintainers

reviewers:
- cluster-api-aws-admins
- cluster-api-aws-maintainers
- cluster-api-aws-reviewers

Expand Down
19 changes: 13 additions & 6 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
# See the OWNERS docs: https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md

aliases:
# Correct as of 2022/01/05
# Correct as of 2022/10/13
sig-cluster-lifecycle-leads:
- fabriziopandini
- justinsb
- neolit123
- vincepri
# Correct as of 2022/01/05
- timothysc
# Correct as of 2022/10/13
cluster-api-admins:
- CecileRobertMichon
- vincepri
# Correct as of 2022/01/05
# Correct as of 2022/10/13
cluster-api-maintainers:
- CecileRobertMichon
- enxebre
- fabriziopandini
- sbueringer
- vincepri
# Correct as of 2022/10/19
cluster-api-aws-admins:
- richardcase
- sedefsavas
cluster-api-aws-maintainers:
- richardcase
- sedefsavas
cluster-api-aws-reviewers:
- Skarlso
- Ankitasw
- dthorsen
- dlipovetsky
cluster-api-aws-reviewers:
- dthorsen
- pydctw
- shivi28
- AverageMarcus
36 changes: 35 additions & 1 deletion api/v1alpha3/awscluster_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ limitations under the License.
package v1alpha3

import (
"fmt"
"unsafe"

apiconversion "k8s.io/apimachinery/pkg/conversion"

"sigs.k8s.io/controller-runtime/pkg/conversion"

infrav1 "sigs.k8s.io/cluster-api-provider-aws/api/v1beta1"
clusterv1alpha3 "sigs.k8s.io/cluster-api/api/v1alpha3"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
"sigs.k8s.io/controller-runtime/pkg/conversion"
)

// ConvertTo converts the v1alpha3 AWSCluster receiver to a v1beta1 AWSCluster.
Expand Down Expand Up @@ -55,6 +58,25 @@ func (r *AWSCluster) ConvertTo(dstRaw conversion.Hub) error {
}

dst.Spec.S3Bucket = restored.Spec.S3Bucket
dst.Spec.NetworkSpec.VPC.EgressOnlyInternetGatewayID = restored.Spec.NetworkSpec.VPC.EgressOnlyInternetGatewayID
dst.Spec.NetworkSpec.VPC.EnableIPv6 = restored.Spec.NetworkSpec.VPC.EnableIPv6
dst.Spec.NetworkSpec.VPC.IPv6CidrBlock = restored.Spec.NetworkSpec.VPC.IPv6CidrBlock
dst.Spec.NetworkSpec.VPC.IPv6Pool = restored.Spec.NetworkSpec.VPC.IPv6Pool

for i := range dst.Spec.NetworkSpec.Subnets {
var found bool
for k := range restored.Spec.NetworkSpec.Subnets {
if dst.Spec.NetworkSpec.Subnets[i].ID == restored.Spec.NetworkSpec.Subnets[k].ID {
dst.Spec.NetworkSpec.Subnets[i].IsIPv6 = restored.Spec.NetworkSpec.Subnets[i].IsIPv6
dst.Spec.NetworkSpec.Subnets[i].IPv6CidrBlock = restored.Spec.NetworkSpec.Subnets[i].IPv6CidrBlock
found = true
break
}
}
if !found {
return fmt.Errorf("subnet with id %s not found amongts restored subnets", dst.Spec.NetworkSpec.Subnets[i].ID)
}
}

return nil
}
Expand Down Expand Up @@ -131,3 +153,15 @@ func Convert_v1beta1_AWSLoadBalancerSpec_To_v1alpha3_AWSLoadBalancerSpec(in *inf
func Convert_v1beta1_AWSClusterSpec_To_v1alpha3_AWSClusterSpec(in *infrav1.AWSClusterSpec, out *AWSClusterSpec, s apiconversion.Scope) error {
return autoConvert_v1beta1_AWSClusterSpec_To_v1alpha3_AWSClusterSpec(in, out, s)
}

func Convert_v1beta1_VPCSpec_To_v1alpha3_VPCSpec(in *infrav1.VPCSpec, out *VPCSpec, s apiconversion.Scope) error {
return autoConvert_v1beta1_VPCSpec_To_v1alpha3_VPCSpec(in, out, s)
}

func Convert_v1beta1_SubnetSpec_To_v1alpha3_SubnetSpec(in *infrav1.SubnetSpec, out *SubnetSpec, s apiconversion.Scope) error {
return autoConvert_v1beta1_SubnetSpec_To_v1alpha3_SubnetSpec(in, out, s)
}

func Convert_v1beta1_AWSClusterStatus_To_v1alpha3_AWSClusterStatus(in *infrav1.AWSClusterStatus, out *AWSClusterStatus, s apiconversion.Scope) error {
return autoConvert_v1beta1_AWSClusterStatus_To_v1alpha3_AWSClusterStatus(in, out, s)
}
78 changes: 46 additions & 32 deletions api/v1alpha3/zz_generated.conversion.go

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

Loading