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

Add PlatformCredentialsSet API client #580

Merged
merged 4 commits into from Feb 9, 2024
Merged

Add PlatformCredentialsSet API client #580

merged 4 commits into from Feb 9, 2024

Conversation

katyanna
Copy link
Member

@katyanna katyanna commented Feb 8, 2024

Preparing for the implementation of the PlatformCredentialsSet per Stack feature,
this Pull Request adds PlatformCredentialsSet to the zalando.org/v1 api.

Preparing for the implementation of the PlatformCredentialsSet per Stack feature,
this commit adds PlatformCredentialsSet to the zalando.org/v1 api.

Signed-off-by: Katyanna Moura <amelie.kn@gmail.com>
Signed-off-by: Katyanna Moura <amelie.kn@gmail.com>
@mikkeloscar
Copy link
Contributor

@katyanna I think you also need to add the new types here:

Signed-off-by: Katyanna Moura <amelie.kn@gmail.com>
@katyanna katyanna marked this pull request as draft February 8, 2024 13:06
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
@katyanna
Copy link
Member Author

katyanna commented Feb 9, 2024

👍

@katyanna katyanna marked this pull request as ready for review February 9, 2024 15:22
Errors []string `json:"errors"`
Problems []string `json:"problems"`
Tokens map[string]struct{} `json:"tokens"`
Clients map[string]struct{} `json:"clients"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should have proper types defined here, but it's probably not relevant for the implementation in stackset.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually fails with

/masked/github.com/zalando-incubator/stackset-controller/pkg/apis/zalando.org/v1/types_pcs.go:47:32: not a supported map value type: *ast.StructType
/masked/github.com/zalando-incubator/stackset-controller/pkg/apis/zalando.org/v1/types_pcs.go:48:32: not a supported map value type: *ast.StructType
Error: not all generators ran successfully

but the failure is masked by || /bin/true || true:

go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1,allowDangerousTypes=true paths=./pkg/apis/... output:crd:dir=docs || /bin/true || true

introduced ages ago by #182

Maybe it was necessary back then but now I think it is not, I tried to clean build a commit before this one (2104a96) with updated Makefile (used old go version due to #610)

diff --git a/Makefile b/Makefile
index ecd5ca5..5e4ea29 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ $(GENERATED): go.mod $(CRD_TYPE_SOURCE)
        ./hack/update-codegen.sh
 
 $(GENERATED_CRDS): $(GENERATED) $(CRD_SOURCES)
-       go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1,allowDangerousTypes=true paths=./pkg/apis/... output:crd:dir=docs || /bin/true || true
+       ~/bin/go1.21.5/bin/go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1,allowDangerousTypes=true paths=./pkg/apis/... output:crd:dir=docs

and it seems to work (not sure why it adds x-kubernetes-map-type: atomic everywhere though, maybe due to kubernetes-sigs/controller-tools#753)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is an improvement of this: #614

@mikkeloscar
Copy link
Contributor

👍

@katyanna katyanna merged commit cc42b67 into master Feb 9, 2024
7 checks passed
@katyanna katyanna deleted the pcs-client branch February 9, 2024 16:04
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 11, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 11, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Note also that #7179 added configMap fields that are not part of origin
CRDs yet.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 11, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Note also that #7179 added configMap fields that are not part of origin
CRDs yet.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 11, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Note also that #7179 added configMap fields that are not part of origin
CRDs yet.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 11, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 12, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 12, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 12, 2024
Update to require unique hosts for ingress and routegroup
and include other pending updates.

See

* zalando-incubator/stackset-controller#580
* zalando-incubator/stackset-controller#583
* zalando-incubator/stackset-controller#612
* zalando-incubator/stackset-controller#613

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants