NewFactory creates a factory with the default Kubernetes resources defined
if optionalClientConfig is nil, then flags will be bound to a new clientcmd.ClientConfig.
if optionalClientConfig is not nil, then this factory will make use of it.