question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create and Add `HasStatus` interface on Objects which Actually have Status

See original GitHub issue

Some 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
csviricommented, Jan 7, 2022

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.

0reactions
stale[bot]commented, Apr 7, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found