Module kubernetes¶
License: ASL 2.0
Version: 0.0.4
Typedefs¶
- typedef kubernetes::infra::config_kind¶
Base type
string
Type constraint
(self in ['kube', 'token'])
Entities¶
- entity kubernetes::infra::Cluster¶
Parents:
std::Entity
A deployed Kubernetes cluster
- attribute string name¶
- relation kubernetes::infra::ClusterConfig config [1]¶
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::infra::agentConfig
constrainttrue
- entity kubernetes::infra::ClusterConfig¶
Parents:
std::Entity
- attribute kubernetes::infra::config_kind kind¶
- entity kubernetes::infra::KubeConfig¶
Parents:
kubernetes::infra::ClusterConfig
- attribute string config¶
Content of a kubectl config file
- attribute string context¶
Context present in the kubectl config file to select
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::infra::kube_config
constrainttrue
- entity kubernetes::infra::TokenConfig¶
Parents:
kubernetes::infra::ClusterConfig
- attribute string host¶
The address we can reach the cluster at
- attribute string token¶
A token that can be used to contact the cluster
- attribute bool? verify_ssl=false¶
Whether communication with the cluster should be encrypted or not
- attribute string? certificate=null¶
If verify_ssl is set to true, a certificate to use for the communication
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::infra::token_config
constrainttrue
- entity kubernetes::resources::ClusterResource¶
Parents:
std::PurgeableResource
A cluster based resource
- attribute string name¶
- attribute dict labels={}¶
- attribute bool send_event=true¶
- relation kubernetes::infra::Cluster cluster [1]¶
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
- entity kubernetes::resources::ClusterRole¶
Parents:
kubernetes::resources::ClusterResource
,kubernetes::resources::Role
A cluster role https://kubernetes.io/docs/reference/access-authn-authz/rbac/
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::clusterRole
constrainttrue
- entity kubernetes::resources::ClusterRoleBinding¶
Parents:
kubernetes::resources::ClusterResource
A cluster role binding https://kubernetes.io/docs/reference/access-authn-authz/rbac/
- relation kubernetes::resources::Subject subjects [0:*]¶
- relation kubernetes::resources::ClusterRole role_ref [1]¶
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::clusterRoleBinding
constrainttrue
- entity kubernetes::resources::ConfigMap¶
Parents:
kubernetes::resources::NamespacedResource
A kubernetes config map https://kubernetes.io/docs/concepts/configuration/configmap/
- attribute dict data¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::Deployment¶
Parents:
kubernetes::resources::NamespacedResource
A deployment https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
- attribute dict spec¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::Namespace¶
Parents:
kubernetes::resources::ClusterResource
A kubernetes namespace https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
- entity kubernetes::resources::NamespacedResource¶
Parents:
kubernetes::resources::ClusterResource
A namespace based resource
- relation kubernetes::resources::Namespace namespace [1]¶
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::NamespacedRole¶
Parents:
kubernetes::resources::NamespacedResource
,kubernetes::resources::Role
A namespace role https://kubernetes.io/docs/reference/access-authn-authz/rbac/
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
kubernetes::resources::namespacedRole
constrainttrue
- entity kubernetes::resources::NamespacedRoleBinding¶
Parents:
kubernetes::resources::NamespacedResource
A namespace role binding https://kubernetes.io/docs/reference/access-authn-authz/rbac/
- relation kubernetes::resources::Subject subjects [0:*]¶
- relation kubernetes::resources::Role role_ref [1]¶
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
kubernetes::resources::namespacedRoleBinding
constrainttrue
- entity kubernetes::resources::Pod¶
Parents:
kubernetes::resources::NamespacedResource
A kubernetes pod https://kubernetes.io/docs/concepts/workloads/pods/
- attribute dict spec¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::Role¶
Parents:
std::Entity
A role entity, this can be cluster or namespace scoped https://kubernetes.io/docs/reference/access-authn-authz/rbac/
- attribute string _kind¶
- attribute string _api_group='rbac.authorization.k8s.io'¶
- relation kubernetes::resources::Rule rules [0:*]¶
- entity kubernetes::resources::Rule¶
Parents:
std::Entity
A rule that can be used in a role https://kubernetes.io/docs/reference/access-authn-authz/rbac/
- attribute string[] api_groups=List()¶
- attribute string[] non_resource_urls=List()¶
- attribute string[] resources=List()¶
- attribute string[] resource_names=List()¶
- attribute string[] verbs=List()¶
The following implements statements select implementations for this entity:
std::none
constrainttrue
- entity kubernetes::resources::Secret¶
Parents:
kubernetes::resources::NamespacedResource
A namespace secret https://kubernetes.io/docs/concepts/configuration/secret/
- attribute string type¶
- attribute dict data¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::Service¶
Parents:
kubernetes::resources::NamespacedResource
A service https://kubernetes.io/docs/concepts/services-networking/service/
- attribute dict spec¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::ServiceAccount¶
Parents:
kubernetes::resources::NamespacedResource
A service account https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
- attribute dict? secrets=null¶
- attribute dict? image_pull_secrets=null¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::StatefulSet¶
Parents:
kubernetes::resources::NamespacedResource
A statfulset https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
- attribute dict spec¶
The following implements statements select implementations for this entity:
kubernetes::resources::clusterResource
constrainttrue
kubernetes::resources::namespacedResource
constrainttrue
- entity kubernetes::resources::Subject¶
Parents:
std::Entity
A subject that can be used in a role binding https://kubernetes.io/docs/reference/access-authn-authz/rbac/
- attribute string? api_group=null¶
- attribute string kind¶
- attribute string name¶
- attribute string? namespace=null¶
The following implements statements select implementations for this entity:
std::none
constrainttrue
Implementations¶
- implementation kubernetes::infra::agentConfig¶
- implementation kubernetes::infra::kube_config¶
- implementation kubernetes::infra::token_config¶
- implementation kubernetes::resources::clusterResource¶
- implementation kubernetes::resources::clusterRole¶
- implementation kubernetes::resources::clusterRoleBinding¶
- implementation kubernetes::resources::namespacedResource¶
- implementation kubernetes::resources::namespacedRole¶
- implementation kubernetes::resources::namespacedRoleBinding¶
Plugins¶
- kubernetes.assert_common_cluster(first: 'kubernetes::resources::ClusterResource', second: 'kubernetes::resources::ClusterResource')¶
Resources¶
- class kubernetes.resources.cluster_role_resource.ClusterRoleResource¶
Resource for entity
kubernetes::resources::ClusterRole
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.cluster_role_resource.ClusterRoleResourceProvider
- class kubernetes.resources.cluster_role_binding_resource.ClusterRoleBindingResource¶
Resource for entity
kubernetes::resources::ClusterRoleBinding
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.cluster_role_binding_resource.ClusterRoleBindingResourceProvider
- class kubernetes.resources.config_map_resource.ConfigMapResource¶
Resource for entity
kubernetes::resources::ConfigMap
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.config_map_resource.ConfigMapResourceProvider
- class kubernetes.resources.deployment_resource.DeploymentResource¶
Resource for entity
kubernetes::resources::Deployment
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.deployment_resource.DeploymentResourceProvider
- class kubernetes.resources.namespace_resource.NamespaceResource¶
Resource for entity
kubernetes::resources::Namespace
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.namespace_resource.NamespaceResourceProvider
- class kubernetes.resources.role_resource.NamespacedRoleResource¶
Resource for entity
kubernetes::resources::NamespacedRole
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.role_resource.NamespacedRoleResourceProvider
- class kubernetes.resources.role_binding_resource.NamespacedRoleBindingResource¶
Resource for entity
kubernetes::resources::NamespacedRoleBinding
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.role_binding_resource.NamespacedRoleBindingResourceProvider
- class kubernetes.resources.pod_resource.PodResource¶
Resource for entity
kubernetes::resources::Pod
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.pod_resource.PodResourceProvider
- class kubernetes.resources.secret_resource.SecretResource¶
Resource for entity
kubernetes::resources::Secret
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.secret_resource.SecretResourceProvider
- class kubernetes.resources.service_resource.ServiceResource¶
Resource for entity
kubernetes::resources::Service
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.service_resource.ServiceResourceProvider
- class kubernetes.resources.service_account_resource.ServiceAccountResource¶
Resource for entity
kubernetes::resources::ServiceAccount
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.service_account_resource.ServiceAccountResourceProvider
- class kubernetes.resources.stateful_set_resource.StatefulSetResource¶
Resource for entity
kubernetes::resources::StatefulSet
Id attribute
identifier
Agent name
cluster.name
Handlers
kubernetes.resources.stateful_set_resource.StatefulSetResourceProvider
Handlers¶
- class kubernetes.resources.cluster_role_binding_resource.ClusterRoleBindingResourceProvider¶
Handler for entity
kubernetes::resources::ClusterRoleBinding
- class kubernetes.resources.cluster_role_resource.ClusterRoleResourceProvider¶
Handler for entity
kubernetes::resources::ClusterRole
- class kubernetes.resources.config_map_resource.ConfigMapResourceProvider¶
Handler for entity
kubernetes::resources::ConfigMap
- class kubernetes.resources.deployment_resource.DeploymentResourceProvider¶
Handler for entity
kubernetes::resources::Deployment
- class kubernetes.resources.namespace_resource.NamespaceResourceProvider¶
Handler for entity
kubernetes::resources::Namespace
- class kubernetes.resources.pod_resource.PodResourceProvider¶
Handler for entity
kubernetes::resources::Pod
- class kubernetes.resources.role_binding_resource.NamespacedRoleBindingResourceProvider¶
Handler for entity
kubernetes::resources::NamespacedRoleBinding
- class kubernetes.resources.role_resource.NamespacedRoleResourceProvider¶
Handler for entity
kubernetes::resources::NamespacedRole
- class kubernetes.resources.secret_resource.SecretResourceProvider¶
Handler for entity
kubernetes::resources::Secret
- class kubernetes.resources.service_account_resource.ServiceAccountResourceProvider¶
Handler for entity
kubernetes::resources::ServiceAccount
- class kubernetes.resources.service_resource.ServiceResourceProvider¶
Handler for entity
kubernetes::resources::Service
- class kubernetes.resources.stateful_set_resource.StatefulSetResourceProvider¶
Handler for entity
kubernetes::resources::StatefulSet