You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update diagram and examples with clearer naming convention
Improve the architecture flow diagram and YAML examples to avoid
confusion about namespaces and ServiceAccount names:
Changes:
1. Architecture diagram step 1: Use clearer format
- Before: 'namespace: argocd' (ambiguous - SubjectMapping or SA?)
- After: 'argocd/argocd-hub-sa → argocd-sa-for-hub' (shows mapping)
2. Update ServiceAccount naming convention:
- Before: hub-argocd-sa, hub-admin-user
- After: argocd-sa-for-hub, admin-sa-for-hub
- Rationale: '-for-hub' suffix is self-documenting and clearer
3. Show correct namespace where managed SA is created:
- ServiceAccount created in 'open-cluster-management-agent-addon'
namespace on managed clusters (where addon agent runs)
- Updated TokenRequest API call to show full path
4. Update step 6 to reference correct token name
5. Clarify ManagedServiceAccount creation bullets to show both
the MSA resource location (cluster namespace) and the actual
ServiceAccount location (addon namespace)
This makes the flow easier to understand and aligns with how
managed-serviceaccount addon actually works.
Signed-off-by: zhujian <jiazhu@redhat.com>
// +kubebuilder:validation:XValidation:rule="self.kind == 'ServiceAccount' ? has(self.serviceAccount) : true",message="serviceAccount is required when kind is ServiceAccount"
@@ -662,6 +648,16 @@ type ManagedServiceAccountSpec struct {
662
648
// +required
663
649
// +kubebuilder:validation:MinLength=1
664
650
Name string `json:"name"`
651
+
652
+
// TokenExpirationSeconds represents the seconds of a token to expire.
0 commit comments