Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Update README.md (#34)
Browse files Browse the repository at this point in the history
* Update README.md

* minor update
  • Loading branch information
ishangulhane authored Aug 23, 2019
1 parent 9d15713 commit 097b4fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ spec:
| Service Object | Type | Required | Description |
|----------------|:----:|:--------:| :-----------: |
| `service` | string | yes | The name of Kubernetes service in the Policy namespace that you want to protect. |
| `serviceName` | string | yes | The name of Kubernetes service in the Policy namespace that you want to protect. |
| `paths` | array[Path Object] | yes | A list of path objects that define the endpoints that you want to protect. If left empty, all paths are protected. |
Expand Down
4 changes: 2 additions & 2 deletions adapter/policy/handler/crdeventhandler/add_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ type PolicyAddEventHandler struct {
}

func (e *JwtConfigAddEventHandler) HandleAddUpdateEvent() {
zap.L().Info("Create/Update JwtPolicy", zap.String("ID", string(e.Obj.ObjectMeta.UID)), zap.String("name", e.Obj.Name), zap.String("namespace", e.Obj.Namespace))
zap.L().Info("Create/Update JwtConfig", zap.String("ID", string(e.Obj.ObjectMeta.UID)), zap.String("name", e.Obj.Name), zap.String("namespace", e.Obj.Namespace))
e.Obj.Spec.ClientName = e.Obj.ObjectMeta.Namespace + "/" + e.Obj.ObjectMeta.Name
e.Store.AddKeySet(e.Obj.Spec.ClientName, keyset.New(e.Obj.Spec.JwksURL, nil))
zap.L().Info("JwtPolicy created/updated", zap.String("ID", string(e.Obj.ObjectMeta.UID)), zap.String("name", e.Obj.ObjectMeta.Name), zap.String("namespace", e.Obj.ObjectMeta.Namespace))
zap.L().Info("JwtConfig created/updated", zap.String("ID", string(e.Obj.ObjectMeta.UID)), zap.String("name", e.Obj.ObjectMeta.Name), zap.String("namespace", e.Obj.ObjectMeta.Namespace))
}

func (e *OidcConfigAddEventHandler) HandleAddUpdateEvent() {
Expand Down
2 changes: 1 addition & 1 deletion adapter/policy/handler/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func getObjectMeta() metav1.ObjectMeta {
}

func getTypeMeta() metav1.TypeMeta {
return metav1.TypeMeta{APIVersion: "v1", Kind: "JwtPolicy"}
return metav1.TypeMeta{APIVersion: "v1", Kind: "OidcConfig"}
}


Expand Down

0 comments on commit 097b4fe

Please sign in to comment.