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

Run 790 add gke installation script #14

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

natasharomm
Copy link
Contributor

No description provided.

# See the License for the specific language governing permissions and
# limitations under the License.

image:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dont need all this file if line 20 is the only change from the defaults

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if you need a file at all if you change only one field. It can be changed directly form the CLI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do need it because this is the values file we are using for helm install, and we can't omit any of those fields.
If you want, we can use the default installation and then change all those values ourselves with the python script.

patch_runaiconfig(dcgm_exporter_namespace)

if __name__ == "__main__":
main()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw what you did in here. The only problem I have is with the hard adding of the text. I mean you are adding

          path: /home/kubernetes/bin/nvidia
          type: Directory
        name: nvidia

right after volumeMounts:
But who guarentee they are going to be in there? And that the indentetion will stay the same in all versions?
If you already write it in python why not work directly with kubernetes client?
Or alternatively parse the string into yaml, add the field and then serialize it to 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.

2 participants