Skip to content

Commit

Permalink
Added k8s_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysJackson committed Jan 21, 2018
1 parent 61dfb11 commit b846bff
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export(createCluster)
export(deleteCluster)
export(getCluster)
export(getServerConfig)
export(k8s_auth)
export(listClusters)
export(setAddons)
export(setClusterLocation)
importFrom(googleAuthR,gar_api_generator)
importFrom(googleAuthR,gar_auth)
12 changes: 12 additions & 0 deletions R/k8s_auth.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#' k8s_auth
#'
#' Calls googleAuthR to authenticate with the Google Cloud Platform
#' @keywords k8s_auth
#' @importFrom googleAuthR gar_auth
#' @export
#' @examples
#' k8s_auth()

k8s_auth <- function() {
googleAuthR::gar_auth()
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# googleKubernetesR

An R package for the Google Kubernetes Engine API
An R package for the Google Kubernetes Engine API. Note: This package is in a very early stage of development and not recommended for use in production.

## Thanks
A big thank you to Mark Edmondson for the [`googleAuthR`](http://code.markedmondson.me/googleAuthR/) package which is used extensively in this project.
Expand All @@ -17,6 +17,7 @@ A big thank you to Mark Edmondson for the [`googleAuthR`](http://code.markedmond
## Installation
```r
devtools::install_github("RhysJackson/googleKubernetesR")
library(googleKubernetesR)
```

## Authentication
Expand Down
15 changes: 15 additions & 0 deletions man/k8s_auth.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b846bff

Please sign in to comment.