pulumi / pulumi-kubernetesx

Kubernetes for Everyone
Apache License 2.0
135 stars 16 forks source link

Let ClusterRoleBinding accept object inputs #56

Open lblackstone opened 4 years ago

lblackstone commented 4 years ago

Rather than requiring the user to specify the subject and roleRef, implicitly derive this information from input objects.

Example:

   new kx.ClusterRoleBinding(
        name,
        {
            subjects: [
                serviceAccountObject,
            ],
            roleRef: clusterRoleObject,
        }
    );
}