-
Notifications
You must be signed in to change notification settings - Fork 169
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
feat: s/ksonnet-lib/k8s-alpha #563
Conversation
de9ae1c
to
ee2b4fc
Compare
force push for rewording a commit message. |
}, | ||
}, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting due to jsonnet-fmt
run by my IDE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing, long overdue!
Co-authored-by: malcolmholmes <[email protected]>
@@ -22,8 +25,7 @@ func initCmd() *cli.Command { | |||
} | |||
|
|||
force := cmd.Flags().BoolP("force", "f", false, "ignore the working directory not being empty") | |||
installK8sLibFlag := cmd.Flags().Bool("k8s", true, "set to false to skip installation of k8s-alpha") | |||
installK8sVersion := cmd.Flags().String("k8sversion", "1.20", "choose the version of k8s-alpha") | |||
installK8s := cmd.Flags().String("k8s", defaultK8sVersion, "choose the version of k8s-alpha, set to false to skip") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no shorthand version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would that be better? This approach keeps compatibility with --k8s=<bool>
flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I would like to propose making k8s-alpha the default library we refer to
instead of the long ago abandoned ksonnet-lib.
Grafana Labs has been using
k8s-alpha
since its inception by @sh0rez over a year ago this month. Theksonnet-util has since been refactored and provides
an adequate compatibility layer to make the transition seamless.
This PR updates the
tk init
command to initiate a Tanka directory structure using thek8s-alpha
library and replacesmost if not all
ksonnet-lib
references withk8s-alpha
in the docs. I also sneaked in a few Jsonnet best practices,not stacking Jsonnet libraries on the root.