Create and Add `HasStatus` interface on Objects which Actually have Status
See original GitHub issueSome of the standard Kuberentes objects like ConfigMaps don’t use status sub-resource, others like (Deployments, Pods, …) do.
It would be very useful to have a HasStatus
interface similar to HasMetadata
to differentiate between those resource. So all the k8s objects would implement HasStatus
(with a getter and setter), that use status sub-resource. Other don’t.
This would help to implement this issue in Java Operator SDK: https://github.com/java-operator-sdk/java-operator-sdk/issues/667
It might be an ide to also support this in the CustomResource abstraction, currently all custom resource POJO has status, although in k8s this is not necessarily true. CRD can define a custom resource without status subresource.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Express and Typescript - Error.stack and Error.status ...
Extend global Error. You can tell TypeScript that for your use case Error might have a status on it: interface Error { status?:...
Read more >Handbook - Interfaces - TypeScript
Notice that our object actually has more properties than this, but the compiler only checks that at least the ones required are present...
Read more >Cluster administrative domain - IBM
Determine the status of the cluster administrative domain and the status of the nodes in the domain by using PowerHA graphical interfaces in...
Read more >Interfaces - define behavior for multiple types | Microsoft Learn
An interface in C# contains definitions for a group of related functionalities that a non-abstract class or a struct must implement.
Read more >Resource Type: service - Puppet
If this isn't the case for any of your services' init scripts, you will need to set hasstatus to false and possibly specify...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From Java Operator SDK perspective this issues can be closed. For now only the automated observed generation aware functionality would require this. However, it does not makes that much sense for well known Kubernetes resources since the status is already handled by the original controller.
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!