Add secret names

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-20 14:44:15 -05:00
parent 225aa5ee33
commit 1107dd3e8a
2 changed files with 10 additions and 3 deletions

View File

@@ -49,7 +49,6 @@ type MachineUserStatus struct {
UserId string `json:"userId"`
// +kubebuilder:default=""
KeyId string `json:"keyId"`
// +kubebuilder:default=""
PATId string `json:"patId"`
}
@@ -97,6 +96,14 @@ func (d *MachineUser) ZitadelClusterRef(ctx context.Context, refresolver *RefRes
return ref, nil
}
func (d *MachineUser) PatSecretName() string {
return d.Name + "-pat-secret"
}
func (d *MachineUser) JWTSecretName() string {
return d.Name + "-machinekey-secret"
}
//+kubebuilder:object:root=true
// MachineUserList contains a list of MachineUser