Add AppServer.SetHostID (#62873)

This commit is contained in:
Pawel Kopiczko
2026-01-16 13:47:32 +00:00
committed by GitHub
parent d6726529a9
commit 15975e8ff4
+7
View File
@@ -44,6 +44,8 @@ type AppServer interface {
GetHostname() string
// GetHostID returns ID of the host the server is running on.
GetHostID() string
// SetHostID sets ID of the host the server is running on.
SetHostID(string)
// GetRotation gets the state of certificate authority rotation.
GetRotation() Rotation
// SetRotation sets the state of certificate authority rotation.
@@ -149,6 +151,11 @@ func (s *AppServerV3) GetHostID() string {
return s.Spec.HostID
}
// SetHostID sets ID of the host the server is running on.
func (s *AppServerV3) SetHostID(hostID string) {
s.Spec.HostID = hostID
}
// GetKind returns the resource kind.
func (s *AppServerV3) GetKind() string {
return s.Kind