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

k8s assignment 2 #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shubhamhapse
Copy link

Referred: https://book.kubebuilder.io/introduction.html
Executed commands:
kubebuilder init --domain tutorial.kubebuilder.io --repo tutorial.kubebuilder.io/project -> to initiate project and setup boilerplate
kubebuilder create api --group batch --version v1 --kind CronJob -> Create a new dir for controller and group-version
Added structs for spec and status
make manifest
make install
this registers CRDs with k8s-apis
tried to apply sample input
and fetched using cmd
kubectl get cronjob.batch.tutorial.kubebuilder.io cronjob-sample -o yaml

@shubhamhapse
Copy link
Author

Make the status as Subresource and try to update status by putting it in YAML, it won't, try to read up on why is it not possible for this point, tried to apply YAML with the status field in it. I don't see it got updated in the spec, but I did not see any error while applying. is this the correct expectation? I think k8s apis ignored this field from YAML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant