-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 version label to pipelines controller deployment #1543
Comments
/kind feature |
Another place I'd like to see this is on the namespace; if you're sharing a cluster a scrupulous operator would probably lock down the controllers, but it's more likely users would have access to read namespaces. For example, Knative Serving does this with a |
@vdemeester @chmouel Kubernetes exposes versions leveraging git metadata, the following being the scaffold to it https://github.com/kubernetes/kubernetes/tree/7f23a743e8c23ac6489340bbb34fa6f1d392db9d/staging/src/k8s.io/client-go/pkg/version This doesn't count as a hack right ? 🤔 |
@waveywaves Git tagging is good enough for me, There is multiple part where we can expose this information :
|
We should definitely expose it using labels on the namespace and/or on the controller/webhook deployments. I'm not sure how we would do "as an API" as I don't think it is supported for CRDs. |
Yes you are right but how can we do to get the version from the tooling tho? (it doesnt know where the namespace is and there can be many pipeline in different installs) |
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes tektoncd#1543 Introduces variable for storing the pipeline version
Fixes #1543 Introduces variable for storing the pipeline version
I think we should reopen this since there is a bit more to it than f85c53f /reopen |
Not sure if this would help, but you could use
see https://github.com/codeready-toolchain/host-operator/blob/master/make/go.mk#L13-L19, https://github.com/codeready-toolchain/host-operator/blob/master/make/git.mk and https://github.com/codeready-toolchain/host-operator/blob/master/version/version.go |
To recap:
Given the title of the issue, I think we can close 😉 |
/close |
@vdemeester: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
doh! I should have checked the actual codebase before making this suggestion ;) 🤦♂ |
we still need an implementation in CLI tho 💃 (but that's nothing to do with this issue, just looking for some volunteers who wants to tackle it since it seems that it has stagnated ;)) |
fyi we have an implementation for CLI now! |
Figuring out which version of Tekton you're running can be a challenge of looking up image SHAs and other equally fun things.
As per https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ we should add an an
app.kubernetes.io/version
label to the tekton-pipelines-controller deployment and figure out how we set it both for formal versions and ad-hoc builds.The text was updated successfully, but these errors were encountered: