applicationset/examples/clusterDecisionResource/README.md
status:
clusters:
- name: cluster-01
- name: cluster-02
This is a common status format. Another format that could be read looks like this:
status:
decisions:
- clusterName: cluster-01
namespace: cluster-01
- clusterName: cluster-02
namespace: cluster-02
name and server will still be available to the template.Get the resource you want to retrieve the duck type definition fromapiVersion: v1
kind: ConfigMap
metadata:
name: my-configmap
data:
apiVersion: group.io/v1
kind: mykinds
statusListKey: clusters
matchKey: name
apiVersion - This is the apiVersion of your resourcekind - This is the plural kind of your resourcestatusListKey - Default is 'clusters', this is the key found in your resource's status that is a list of ArgoCD clusters.matchKey - Is the key name found in the cluster list, name and clusterName are the keys in the examples above.list the placementdecisions resources, from apiGroups cluster.open-cluster-management.io/v1alpha1- apiGroups:
- "cluster.open-cluster-management.io/v1alpha1"
resources:
- placementdecisions
verbs:
- list
kubectl apply -f ./placementdecision.yaml
kubectl apply -f ./configMap.yaml
kubectl apply -f ./ducktype-example.yaml
Status.Decisions array.