idppreset/

directory
v0.0.0-...-1ac4f16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: Apache-2.0

README

IDP Preset

This repo contains generated client with clientset, informers and listers, thanks to which we are able to manage (create/delete/get) IDP Preset resources from k8s.

Overview

An identity provider is a trusted provider that lets us use a single sign-on (SSO). When exposing an API in the Console, a user is able to secure it by loading a predefined IDP preset and use the issuer, jwksUri values from the selected preset.

Prerequisites

You need the following tools to set up the project:

  • The 1.9 or higher version of Go
  • The latest version of Docker
  • The latest version of Dep

Development

Install all dependencies:

dep ensure -vendor-only

Before each commit, use the before-commit.sh script, which tests your changes.

Code generation

Structs related to CustomResourceDefinitions are defined in pkg/apis/authentication/v1alpha1/types.go and registered in pkg/apis/authentication/v1alpha1/. After making any changes there, please run:

./hack/update-codegen.sh

Release

Please, make sure that your master branch is up-to-date with the changes that you want to release.

To release a new version, run on master branch:

git tag YOUR_NEW_VERSION
git push --tags
IDPPreset as a ui-api-layer dependency

After releasing a new version in idppreset repository, change the version in Gopkg.toml in ui-api-layer project:

# Gopkg.toml file in ui-api-layer project
...
[[constraint]]
  name = "github.com/kyma-project/idppreset"
  version = "YOUR_NEW_VERSION"
...

Directories

Path Synopsis
pkg
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/authentication/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/authentication/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL