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
Conversation
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>
@katyanna I think you also need to add the new types here:
|
Signed-off-by: Katyanna Moura <amelie.kn@gmail.com>
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
👍 |
Errors []string `json:"errors"` | ||
Problems []string `json:"problems"` | ||
Tokens map[string]struct{} `json:"tokens"` | ||
Clients map[string]struct{} `json:"clients"` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
:
Line 38 in 2bcb26c
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)
There was a problem hiding this comment.
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
👍 |
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>
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>
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>
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>
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>
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>
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>
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>
Preparing for the implementation of the PlatformCredentialsSet per Stack feature,
this Pull Request adds
PlatformCredentialsSet
to the zalando.org/v1 api.