Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide DSL support for All Kubernetes resources #2912

Closed
rohanKanojia opened this issue Mar 16, 2021 · 3 comments · Fixed by #3010
Closed

Provide DSL support for All Kubernetes resources #2912

rohanKanojia opened this issue Mar 16, 2021 · 3 comments · Fixed by #3010
Assignees
Labels
component/kubernetes-client Deals with the kubernetes-client component/kubernetes-model Deals with the kubernetes-model epic feature
Milestone

Comments

@rohanKanojia
Copy link
Member

rohanKanojia commented Mar 16, 2021

We need to provide DSL support for all resources which are marked as ❌ . There are the resources which are provided by running command kubectl api-resources on Kubernetes v1.21.0:

ApiGroup Kind Supported
Binding ✔️ client.bindings()
ComponentStatus ✔️ client.componentstatuses()
ConfigMap ✔️ client.configMaps()
Endpoints ✔️ client.endpoints()
Event ✔️ client.v1().events()
LimitRange ✔️ client.limitRanges()
Namespace ✔️ client.namespaces()
Node ✔️ client.nodes()
PersistentVolumeClaim ✔️ client.persistentVolumeClaims()
PersistentVolume ✔️ client.persistentVolumes()
Pod ✔️ client.pods()
PodTemplate ✔️ client.v1().podTemplates()
ReplicationController ✔️ client.replicationControllers()
ResourceQuota ✔️ client.resourceQuotas()
Secret ✔️ client.secrets()
ServiceAccount ✔️ client.serviceAccounts()
Service ✔️ client.services()
admissionregistration.k8s.io MutatingWebhookConfiguration ✔️ client.admissionRegistration().v1().mutatingWebhookConfigurations()
admissionregistration.k8s.io ValidatingWebhookConfiguration ✔️ client.admissionRegistration().v1().validatingWebhookConfigurations()
apiextensions.k8s.io CustomResourceDefinition ✔️ client.apiextensions().v1().customResourceDefinitions()
apiregistration.k8s.io APIService ✔️ client.apiServices()
apps ControllerRevision ✔️ client.apps().controllerRevisions() #2980
apps DaemonSet ✔️ client.apps().daemonSets()
apps Deployment ✔️ client.apps().deployments()
apps ReplicaSet ✔️ client.apps().replicaSets()
apps StatefulSet ✔️ client.apps().statefulSets()
authentication.k8s.io TokenReview ✔️ client.tokenReviews()
authorization.k8s.io LocalSubjectAccessReview ✔️ client.authorization().v1().localSubjectAccessReview()
authorization.k8s.io SelfSubjectAccessReview ✔️ client.authorization().v1().selfSubjectAccessReview()
authorization.k8s.io SelfSubjectRulesReview ✔️ client.authorization().v1().subjectAccessReview()
authorization.k8s.io SubjectAccessReview ✔️ client.authorization().v1().subjectAccessReview()
autoscaling HorizontalPodAutoscaler ✔️ client.autoscaling().v1().horizontalPodAutoscalers()
batch CronJob ✔️ client.batch().cronjobs()
batch Job ✔️ client.batch().jobs()
certificates.k8s.io CertificateSigningRequest ✔️ client.certificates().v1().certificateSigningRequests()
coordination.k8s.io Lease ✔️ client.leases()
discovery.k8s.io EndpointSlice ✔️ client.discovery().v1beta1().endpointSlices()
events.k8s.io Event ✔️ client.events().v1().events() #2907
extensions Ingress ✔️ client.extensions().ingresses()
flowcontrol.apiserver.k8s.io FlowSchema ✔️ client.flowControl().v1beta1().flowSchema() #2984
flowcontrol.apiserver.k8s.io PriorityLevelConfiguration ✔️ client.flowControl().v1beta1().priorityLevelConfigurations() #2984
networking.k8s.io IngressClass ✔️ client.network().v1().ingressClasses()
networking.k8s.io Ingress ✔️ client.network().v1().ingresses()
networking.k8s.io NetworkPolicy ✔️ client.network().v1().networkPolicies()
node.k8s.io RuntimeClass ✔️ client.runtimeClasses()
policy PodDisruptionBudget ✔️ client.policy().podDisruptionBudget()
policy PodSecurityPolicy ✔️ client.policy().podSecurityPolicies()
rbac.authorization.k8s.io ClusterRoleBinding ✔️ client.rbac().clusterRoleBindings()
rbac.authorization.k8s.io ClusterRole ✔️ client.rbac().clusterRoles()
rbac.authorization.k8s.io RoleBinding ✔️ client.rbac().roleBindings()
rbac.authorization.k8s.io Role ✔️ client.rbac().roles()
scheduling.k8s.io PriorityClass ✔️ client.scheduling().v1().priorityClasses()
storage.k8s.io CSIDriver ✔️ client.storage().csiDrivers() #2981
storage.k8s.io CSINode ✔️ client.storage().csiNodes() #2981
storage.k8s.io StorageClass ✔️ client.storage().storageClasses()
storage.k8s.io VolumeAttachment ✔️ client.storage().volumeAttachments() #2981
storage.k8s.io CSIStorageCapacity ✔️ client.storage().csiStorageCapacities() #3010
@rohanKanojia rohanKanojia added feature epic component/kubernetes-client Deals with the kubernetes-client component/kubernetes-model Deals with the kubernetes-model labels Mar 16, 2021
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Apr 9, 2021
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Apr 12, 2021
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Apr 12, 2021
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Apr 12, 2021
manusa pushed a commit that referenced this issue Apr 16, 2021
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Apr 16, 2021
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Apr 16, 2021
manusa pushed a commit that referenced this issue Apr 19, 2021
@manusa manusa added this to the 5.4.0 milestone Apr 19, 2021
@rohanKanojia rohanKanojia reopened this Apr 19, 2021
@manusa
Copy link
Member

manusa commented Apr 19, 2021

image
This one is still missing

manusa added a commit to marcnuri-demo/fabric8-kubernetes-client-jbang that referenced this issue Apr 19, 2021
@rohanKanojia
Copy link
Member Author

I noticed this when i upgraded my minikube to v1.21.0 . I'm sending a PR for this.

@manusa
Copy link
Member

manusa commented Apr 23, 2021

New DSLs implemented in the scope of this epic/issue can be checked by running:

jbang https://github.com/marcnuri-demo/fabric8-kubernetes-client-jbang/blob/main/I002912_KubernetesDSLSupport.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kubernetes-client Deals with the kubernetes-client component/kubernetes-model Deals with the kubernetes-model epic feature
Projects
None yet
2 participants