The YAML samples for creating a subscription that include a "timeWindow" should not be indented.
They should be the root element.
apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
name: nginx
namespace: my-channel-subscription-nginx
labels:
app: nginx-app-details
spec:
channel: my-channel-namespace/my-development-channel
name: nginx-ingress
packageFilter:
version: "1.20.x"
placement:
placementRef:
kind: PlacementRule
name: my-placement-rule
**timeWindow:
type: "block"/"active"
location: "America/Los_Angeles"
daysofweek: ["Monday", "Wednesday", "Friday"]
hours:
- start: "10:20AM"
end: "10:30AM"
- start: "12:40PM"
end: "1:40PM"**
apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
name:
namespace:
labels:
spec:
sourceNamespace:
source:
channel:
name:
packageFilter:
version:
labelSelector:
matchLabels:
package:
component:
annotations:
packageOverrides:
- packageName:
packageAlias:
- path:
value:
placement:
local:
clusters:
name:
clusterSelector:
placementRef:
name:
kind: PlacementRule
overrides:
clusterName:
clusterOverrides:
path:
value:
**timeWindow:
type:
location:
daysofweek:
hours:
- start:
end:**