Skip to content

Commit 166702f

Browse files
mprahlopenshift-merge-bot[bot]
authored andcommitted
Document the spec.hubTemplateOptions.serviceAccountName field
Relates: https://issues.redhat.com/browse/ACM-13572 Signed-off-by: mprahl <[email protected]>
1 parent e5ef033 commit 166702f

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

api/v1/policy_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ type PolicyDependency struct {
6767
}
6868

6969
type HubTemplateOptions struct {
70+
// ServiceAccountName is the name of a service account in the same namespace as the policy to use for all hub
71+
// template lookups. The service account must have list and watch permissions on any object the hub templates
72+
// look up. If not specified, lookups are restricted to namespaced objects in the same namespace as the policy and
73+
// to the `ManagedCluster` object associated with the propagated policy.
7074
ServiceAccountName string `json:"serviceAccountName,omitempty"`
7175
}
7276

deploy/crds/kustomize/policy.open-cluster-management.io_policies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ spec:
122122
templates.
123123
properties:
124124
serviceAccountName:
125+
description: |-
126+
ServiceAccountName is the name of a service account in the same namespace as the policy to use for all hub
127+
template lookups. The service account must have list and watch permissions on any object the hub templates
128+
look up. If not specified, lookups are restricted to namespaced objects in the same namespace as the policy and
129+
to the `ManagedCluster` object associated with the propagated policy.
125130
type: string
126131
type: object
127132
policy-templates:

deploy/crds/policy.open-cluster-management.io_policies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ spec:
134134
templates.
135135
properties:
136136
serviceAccountName:
137+
description: >-
138+
ServiceAccountName is the name of a service account in the same namespace as the policy to use for all hub
139+
template lookups. The service account must have list and watch permissions on any object the hub templates
140+
look up. If not specified, lookups are restricted to namespaced objects in the same namespace as the policy and
141+
to the `ManagedCluster` object associated with the propagated policy.
137142
type: string
138143
type: object
139144
policy-templates:

0 commit comments

Comments
 (0)