diff --git a/README.md b/README.md index d6a65d5..be483dc 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you would like to apply your own customizations, reference the `deploy` folde ```yaml resources: -- git::https://github.com/plexsystems/sandbox-operator.git//deploy?ref=v0.5.0 +- git::https://github.com/plexsystems/sandbox-operator.git//deploy?ref=v0.6.0 ``` Additionally, the [example](example) folder shows one example of how to customize the operator. @@ -131,7 +131,7 @@ One `ClusterRoleBinding` per name in the `owners` field |Verbs|API Groups|Resources| |---|---|---| |*|core|pods, pods/log, pods/portforward, services, services/finalizers, endpoints, persistentvolumeclaims, events, configmaps, replicationcontrollers| -|*|apps|deployments, daemonsets, replicasets, statefulsets| +|*|apps, extensions|deployments, daemonsets, replicasets, statefulsets| |*|autoscaling|horizontalpodautoscalers| |*|batch|jobs, cronjobs| |create, list, get|rbac.authorization.k8s.io|roles, rolebindings| diff --git a/bundle.yaml b/bundle.yaml index 94b02dd..55575e4 100644 --- a/bundle.yaml +++ b/bundle.yaml @@ -170,7 +170,7 @@ kind: Deployment metadata: labels: app.kubernetes.io/name: sandbox-operator - app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/version: "0.6.0" name: sandbox-operator spec: selector: @@ -195,7 +195,7 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name - image: plexsystems/sandbox-operator:v0.5.0 + image: plexsystems/sandbox-operator:v0.6.0 imagePullPolicy: IfNotPresent name: sandbox-operator serviceAccountName: sandbox-operator-sa diff --git a/controller/sandbox.go b/controller/sandbox.go index 6d8fa25..c1e610e 100644 --- a/controller/sandbox.go +++ b/controller/sandbox.go @@ -215,8 +215,11 @@ func getRole(sandbox operatorsv1alpha1.Sandbox) rbacv1.Role { }, }, rbacv1.PolicyRule{ - Verbs: []string{"*"}, - APIGroups: []string{"apps"}, + Verbs: []string{"*"}, + APIGroups: []string{ + "apps", + "extensions", + }, Resources: []string{ "deployments", "daemonsets", diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 4a64609..cd51e15 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -4,7 +4,7 @@ metadata: name: sandbox-operator labels: app.kubernetes.io/name: sandbox-operator - app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/version: "0.6.0" spec: selector: matchLabels: @@ -17,7 +17,7 @@ spec: serviceAccountName: sandbox-operator-sa containers: - name: sandbox-operator - image: plexsystems/sandbox-operator:v0.5.0 + image: plexsystems/sandbox-operator:v0.6.0 command: - sandbox-operator imagePullPolicy: IfNotPresent diff --git a/main.go b/main.go index 1d5ecc7..0ab9c3f 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ var ( metricsHost = "0.0.0.0" metricsPort int32 = 8383 operatorMetricsPort int32 = 8686 - version = "0.5.0" + version = "0.6.0" ) func main() {