Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment of keystone_auth_default_policy
In case `keystone-auth-enabled` is true in k8s template, magnum requires keystone_auth_default_policy file to be present. At this point we suggest creating corresponding roles by deployers manually, since it's not enabled by default or used widely. Change-Id: I77bfd3026e3168d7504ef3dc5214cfe706c525dd
- Loading branch information
Dmitriy Rabotyagov
committed
Sep 14, 2020
1 parent
6d880c3
commit 200dcd8
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
[ | ||
{ | ||
"users":{ | ||
"roles":[ | ||
"k8s_admin" | ||
], | ||
"projects":[ | ||
"$PROJECT_ID" | ||
] | ||
}, | ||
"resource_permissions":{ | ||
"*/*":[ | ||
"*" | ||
] | ||
}, | ||
"nonresource_permissions":{ | ||
"/healthz":[ | ||
"get", | ||
"post" | ||
] | ||
} | ||
}, | ||
{ | ||
"users":{ | ||
"roles":[ | ||
"k8s_developer" | ||
], | ||
"projects":[ | ||
"$PROJECT_ID" | ||
] | ||
}, | ||
"resource_permissions":{ | ||
"!kube-system/['apiServices', 'bindings', 'componentstatuses', 'configmaps', 'cronjobs', 'customResourceDefinitions', 'deployments', 'endpoints', 'events', 'horizontalPodAutoscalers', 'ingresses', 'initializerConfigurations', 'jobs', 'limitRanges', 'localSubjectAccessReviews', 'namespaces', 'networkPolicies', 'persistentVolumeClaims', 'persistentVolumes', 'podDisruptionBudgets', 'podPresets', 'podTemplates', 'pods', 'replicaSets', 'replicationControllers', 'resourceQuotas', 'secrets', 'selfSubjectAccessReviews', 'serviceAccounts', 'services', 'statefulSets', 'storageClasses', 'subjectAccessReviews', 'tokenReviews']":[ | ||
"*" | ||
], | ||
"*/['clusterrolebindings', 'clusterroles', 'rolebindings', 'roles', 'controllerrevisions', 'nodes', 'podSecurityPolicies']":[ | ||
"get", | ||
"list", | ||
"watch" | ||
], | ||
"*/['certificateSigningRequests']":[ | ||
"create", | ||
"delete", | ||
"get", | ||
"list", | ||
"watch", | ||
"update" | ||
] | ||
} | ||
}, | ||
{ | ||
"users":{ | ||
"roles":[ | ||
"k8s_viewer" | ||
], | ||
"projects":[ | ||
"$PROJECT_ID" | ||
] | ||
}, | ||
"resource_permissions":{ | ||
"!kube-system/['tokenReviews']":[ | ||
"*" | ||
], | ||
"!kube-system/['apiServices', 'bindings', 'componentstatuses', 'configmaps', 'cronjobs', 'customResourceDefinitions', 'deployments', 'endpoints', 'events', 'horizontalPodAutoscalers', 'ingresses', 'initializerConfigurations', 'jobs', 'limitRanges', 'localSubjectAccessReviews', 'namespaces', 'networkPolicies', 'persistentVolumeClaims', 'persistentVolumes', 'podDisruptionBudgets', 'podPresets', 'podTemplates', 'pods', 'replicaSets', 'replicationControllers', 'resourceQuotas', 'secrets', 'selfSubjectAccessReviews', 'serviceAccounts', 'services', 'statefulSets', 'storageClasses', 'subjectAccessReviews']":[ | ||
"get", | ||
"list", | ||
"watch" | ||
], | ||
"*/['clusterrolebindings', 'clusterroles', 'rolebindings', 'roles', 'controllerrevisions', 'nodes', 'podSecurityPolicies']":[ | ||
"get", | ||
"list", | ||
"watch" | ||
] | ||
} | ||
} | ||
] |