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

Commit

Permalink
Merge pull request kubernetes#1871 from achinthagunasekara/dev-agunas…
Browse files Browse the repository at this point in the history
…ekara-magnum-example-yamllint

Yaml linting magnum examples
  • Loading branch information
k8s-ci-robot authored Apr 9, 2019
2 parents 442c6d9 + c73e649 commit 24398c7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -11,4 +12,4 @@ stringData:
user-id=9a377d66afcf4b83848e7e1ae3178f33
password=FVJ2zbkewGnhZrzymI
trust-id=adbbbcd022bd4a3ea8b1703d4aa37ebc
region=RegionOne
region=RegionOne
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: cluster-autoscaler-role
rules:
- apiGroups: [""]
resources: ["events","endpoints"]
resources: ["events", "endpoints"]
verbs: ["create", "patch"]
- apiGroups: [""]
resources: ["pods/eviction"]
Expand All @@ -15,32 +16,37 @@ rules:
- apiGroups: [""]
resources: ["endpoints"]
resourceNames: ["cluster-autoscaler"]
verbs: ["get","update"]
verbs: ["get", "update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["watch","list","get","update"]
verbs: ["watch", "list", "get", "update"]
- apiGroups: [""]
resources: ["pods","services","replicationcontrollers","persistentvolumeclaims","persistentvolumes"]
verbs: ["watch","list","get"]
resources:
- "pods"
- "services"
- "replicationcontrollers"
- "persistentvolumeclaims"
- "persistentvolumes"
verbs: ["watch", "list", "get"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["watch","list","get"]
verbs: ["watch", "list", "get"]
- apiGroups: ["policy"]
resources: ["poddisruptionbudgets"]
verbs: ["watch","list"]
verbs: ["watch", "list"]
- apiGroups: ["apps"]
resources: ["daemonsets","replicasets","statefulsets"]
verbs: ["watch","list","get"]
resources: ["daemonsets", "replicasets", "statefulsets"]
verbs: ["watch", "list", "get"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["watch","list","get"]
verbs: ["watch", "list", "get"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["cluster-autoscaler-status"]
verbs: ["delete","get","update"]
verbs: ["delete", "get", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
Expand All @@ -60,4 +66,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: cluster-autoscaler-account
namespace: kube-system
namespace: kube-system

0 comments on commit 24398c7

Please sign in to comment.