-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use more accurate projectID + Kubernetes node name method to re…
…trieve instance info if available
- Loading branch information
Clement Liaw
committed
Oct 23, 2024
1 parent
261684f
commit f6b99f9
Showing
10 changed files
with
356 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This file contains the objects representing the Service | ||
# Accounts and RBAC tied to that account that need to be | ||
# made for the CSI controller deployment. This is so the | ||
# CSI node agent can fetch the Crusoe project ID from the | ||
# node labels, if it exists. | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: crusoe-csi-driver-node-sa | ||
namespace: {{ .Release.Namespace }} | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: crusoe-csi-driver-node-read-labels | ||
rules: | ||
- apiGroups: [ "" ] | ||
resources: [ "nodes" ] | ||
verbs: [ "get", "list", "watch" ] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: crusoe-csi-driver-node-read-labels | ||
subjects: | ||
- kind: ServiceAccount | ||
name: crusoe-csi-driver-node-sa | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: crusoe-csi-driver-node-read-labels | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.