Skip to content

Instantly share code, notes, and snippets.

@gambol99
Last active October 4, 2018 10:47
Show Gist options
  • Save gambol99/0b88aaa58385158eff751cff44b40cc5 to your computer and use it in GitHub Desktop.
Save gambol99/0b88aaa58385158eff751cff44b40cc5 to your computer and use it in GitHub Desktop.
// NodeAuthorizerSpec defines the configuration for a node authorizer
type NodeAuthorizerSpec struct {
// Authorizer is the authorizer to use
Authorizer string `json:"authorizer,omitempty"`
// Features is a series of authorizer features to enable or disable
Features *[]string `json:"features,omitempty"`
// Image is the location of container - alternatively export the NODE_AUTHORIZATION_IMAGE environment varaible
Image string `json:"image,omitempty"`
// NodeURL is the node authorization service url.
NodeURL string `json:"nodeURL,omitempty"`
// Port is the port the service is running on the master
Port int `json:"port,omitempty"`
// Timeout the max time for authorization request
Timeout *metav1.Duration `json:"timeout,omitempty"`
// TokenTTL is the max ttl for an issued token
TokenTTL *metav1.Duration `json:"tokenTTL,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment