// Code generated by lingon. EDIT AS MUCH AS YOU LIKE.

package tekton

import (
	rbacv1 "k8s.io/api/rbac/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

var PipelinesControllerRole = &rbacv1.Role{
	ObjectMeta: metav1.ObjectMeta{
		Labels: map[string]string{
			"app.kubernetes.io/component": "controller",
			"app.kubernetes.io/instance":  "default",
			"app.kubernetes.io/part-of":   "tekton-pipelines",
		},
		Name:      "tekton-pipelines-controller",
		Namespace: "tekton-pipelines",
	},
	Rules: []rbacv1.PolicyRule{{
		APIGroups: []string{},
		Resources: []string{"configmaps"},
		Verbs:     []string{"list", "watch"},
	}, {
		APIGroups:     []string{},
		ResourceNames: []string{"config-logging", "config-observability", "config-artifact-bucket", "config-artifact-pvc", "feature-flags", "config-leader-election", "config-registry-cert"},
		Resources:     []string{"configmaps"},
		Verbs:         []string{"get"},
	}},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "rbac.authorization.k8s.io/v1",
		Kind:       "Role",
	},
}

var PipelinesInfoRole = &rbacv1.Role{
	ObjectMeta: metav1.ObjectMeta{
		Labels: map[string]string{
			"app.kubernetes.io/instance": "default",
			"app.kubernetes.io/part-of":  "tekton-pipelines",
		},
		Name:      "tekton-pipelines-info",
		Namespace: "tekton-pipelines",
	},
	Rules: []rbacv1.PolicyRule{{
		APIGroups:     []string{},
		ResourceNames: []string{"pipelines-info"},
		Resources:     []string{"configmaps"},
		Verbs:         []string{"get"},
	}},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "rbac.authorization.k8s.io/v1",
		Kind:       "Role",
	},
}

var PipelinesLeaderElectionRole = &rbacv1.Role{
	ObjectMeta: metav1.ObjectMeta{
		Labels: map[string]string{
			"app.kubernetes.io/instance": "default",
			"app.kubernetes.io/part-of":  "tekton-pipelines",
		},
		Name:      "tekton-pipelines-leader-election",
		Namespace: "tekton-pipelines",
	},
	Rules: []rbacv1.PolicyRule{{
		APIGroups: []string{"coordination.k8s.io"},
		Resources: []string{"leases"},
		Verbs:     []string{"get", "list", "create", "update", "delete", "patch", "watch"},
	}},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "rbac.authorization.k8s.io/v1",
		Kind:       "Role",
	},
}

var PipelinesResolversNamespaceRbacRole = &rbacv1.Role{
	ObjectMeta: metav1.ObjectMeta{
		Labels: map[string]string{
			"app.kubernetes.io/component": "resolvers",
			"app.kubernetes.io/instance":  "default",
			"app.kubernetes.io/part-of":   "tekton-pipelines",
		},
		Name:      "tekton-pipelines-resolvers-namespace-rbac",
		Namespace: "tekton-pipelines-resolvers",
	},
	Rules: []rbacv1.PolicyRule{{
		APIGroups: []string{},
		Resources: []string{"configmaps", "secrets"},
		Verbs:     []string{"get", "list", "update", "watch"},
	}, {
		APIGroups: []string{"coordination.k8s.io"},
		Resources: []string{"leases"},
		Verbs:     []string{"get", "list", "create", "update", "delete", "patch", "watch"},
	}},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "rbac.authorization.k8s.io/v1",
		Kind:       "Role",
	},
}

var PipelinesWebhookRole = &rbacv1.Role{
	ObjectMeta: metav1.ObjectMeta{
		Labels: map[string]string{
			"app.kubernetes.io/component": "webhook",
			"app.kubernetes.io/instance":  "default",
			"app.kubernetes.io/part-of":   "tekton-pipelines",
		},
		Name:      "tekton-pipelines-webhook",
		Namespace: "tekton-pipelines",
	},
	Rules: []rbacv1.PolicyRule{{
		APIGroups: []string{},
		Resources: []string{"configmaps"},
		Verbs:     []string{"list", "watch"},
	}, {
		APIGroups:     []string{},
		ResourceNames: []string{"config-logging", "config-observability", "config-leader-election", "feature-flags"},
		Resources:     []string{"configmaps"},
		Verbs:         []string{"get"},
	}, {
		APIGroups: []string{},
		Resources: []string{"secrets"},
		Verbs:     []string{"list", "watch"},
	}, {
		APIGroups:     []string{},
		ResourceNames: []string{"webhook-certs"},
		Resources:     []string{"secrets"},
		Verbs:         []string{"get", "update"},
	}},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "rbac.authorization.k8s.io/v1",
		Kind:       "Role",
	},
}
