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

Pass-on annotations to Ingress objects #17

Closed
linki opened this issue Aug 14, 2018 · 3 comments
Closed

Pass-on annotations to Ingress objects #17

linki opened this issue Aug 14, 2018 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@linki
Copy link
Member

linki commented Aug 14, 2018

apiVersion: zalando.org/v1
kind: StackSet
metadata:
  name: cluster-registry
spec:
  ingress:
    annotations:
      zalando.org/skipper-filter: ...

Custom annotations specified by users should be passed-on to the generated Ingress object.

@szuecs szuecs added the enhancement New feature or request label Aug 14, 2018
@mikkeloscar
Copy link
Contributor

It's a bug if this is not the case. It should happen:

// insert annotations
for k, v := range stackset.Spec.Ingress.Annotations {
ingress.Annotations[k] = v
}

@mikkeloscar mikkeloscar added the bug Something isn't working label Aug 15, 2018
@mikkeloscar
Copy link
Contributor

Or annotations should be under metadata:

apiVersion: zalando.org/v1
kind: StackSet
metadata:
  name: cluster-registry
spec:
  ingress:
    metadata:
      annotations:
        zalando.org/skipper-filter: ...

Since we don't have validation yet (#10) the error is not caught in your example :(

Maybe we want to remove the need for defining the metadata key, but it was done this way to make the API more Kubernetes'ish.

@linki
Copy link
Member Author

linki commented Aug 15, 2018

That's fine for me. It works when putting it under metadata.

@linki linki closed this as completed Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants