mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
deploy: include ServiceAccount in the NFS provisioner RBAC artifact
It seems that the ServiceAccount was not created anymore, this causes problems with provisioning volumes. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
a469a66f9d
commit
6f0d9a5d59
6
api/deploy/kubernetes/nfs/csi-provisioner-rbac-sa.yaml
Normal file
6
api/deploy/kubernetes/nfs/csi-provisioner-rbac-sa.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: "{{ .ServiceAccount }}"
|
||||||
|
namespace: "{{ .Namespace }}"
|
@ -30,6 +30,9 @@ import (
|
|||||||
"github.com/ceph/ceph-csi/api/deploy/kubernetes"
|
"github.com/ceph/ceph-csi/api/deploy/kubernetes"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//go:embed csi-provisioner-rbac-sa.yaml
|
||||||
|
var csiProvisionerServiceAccount string
|
||||||
|
|
||||||
//go:embed csi-provisioner-rbac-cr.yaml
|
//go:embed csi-provisioner-rbac-cr.yaml
|
||||||
var csiProvisionerClusterRole string
|
var csiProvisionerClusterRole string
|
||||||
|
|
||||||
@ -88,7 +91,13 @@ func NewCSIProvisionerRBAC(values kubernetes.CSIProvisionerRBACValues) (kubernet
|
|||||||
func NewCSIProvisionerRBACYAML(values kubernetes.CSIProvisionerRBACValues) (string, error) {
|
func NewCSIProvisionerRBACYAML(values kubernetes.CSIProvisionerRBACValues) (string, error) {
|
||||||
docs := []string{}
|
docs := []string{}
|
||||||
|
|
||||||
data, err := newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
data, err := newYAML("csiProvisionerServiceAccount", csiProvisionerServiceAccount, values)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
docs = append(docs, data)
|
||||||
|
|
||||||
|
data, err = newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
@ -131,6 +140,21 @@ func newYAML(name, data string, values kubernetes.CSIProvisionerRBACValues) (str
|
|||||||
return buf.String(), nil
|
return buf.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func newServiceAccount(values kubernetes.CSIProvisionerRBACValues) (*corev1.ServiceAccount, error) {
|
||||||
|
data, err := newYAML("csiProvisionerServiceAccount", csiProvisionerServiceAccount, values)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
sa := &corev1.ServiceAccount{}
|
||||||
|
err = yaml.Unmarshal([]byte(data), sa)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("failed convert YAML to %T: %w", sa, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return sa, nil
|
||||||
|
}
|
||||||
|
|
||||||
func newClusterRole(values kubernetes.CSIProvisionerRBACValues) (*rbacv1.ClusterRole, error) {
|
func newClusterRole(values kubernetes.CSIProvisionerRBACValues) (*rbacv1.ClusterRole, error) {
|
||||||
data, err := newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
data, err := newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -5,6 +5,13 @@
|
|||||||
# The source for the contents can be found in the api/deploy directory, make
|
# The source for the contents can be found in the api/deploy directory, make
|
||||||
# your modifications there.
|
# your modifications there.
|
||||||
#
|
#
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: "nfs-csi-provisioner"
|
||||||
|
namespace: "default"
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
12
go.mod
12
go.mod
@ -48,6 +48,15 @@ require (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0
|
||||||
|
)
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1 // indirect
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1 // indirect
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 // indirect
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1 // indirect
|
||||||
github.com/NYTimes/gziphandler v1.1.1 // indirect
|
github.com/NYTimes/gziphandler v1.1.1 // indirect
|
||||||
github.com/ansel1/merry v1.6.2 // indirect
|
github.com/ansel1/merry v1.6.2 // indirect
|
||||||
github.com/ansel1/merry/v2 v2.0.1 // indirect
|
github.com/ansel1/merry/v2 v2.0.1 // indirect
|
||||||
@ -83,6 +92,7 @@ require (
|
|||||||
github.com/go-openapi/swag v0.22.3 // indirect
|
github.com/go-openapi/swag v0.22.3 // indirect
|
||||||
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
|
github.com/golang-jwt/jwt/v5 v5.2.0 // indirect
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/google/cel-go v0.17.7 // indirect
|
github.com/google/cel-go v0.17.7 // indirect
|
||||||
github.com/google/gnostic-models v0.6.8 // indirect
|
github.com/google/gnostic-models v0.6.8 // indirect
|
||||||
@ -108,6 +118,7 @@ require (
|
|||||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||||
github.com/josharian/intern v1.0.0 // indirect
|
github.com/josharian/intern v1.0.0 // indirect
|
||||||
github.com/json-iterator/go v1.1.12 // indirect
|
github.com/json-iterator/go v1.1.12 // indirect
|
||||||
|
github.com/kylelemons/godebug v1.1.0 // indirect
|
||||||
github.com/mailru/easyjson v0.7.7 // indirect
|
github.com/mailru/easyjson v0.7.7 // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.17 // indirect
|
github.com/mattn/go-isatty v0.0.17 // indirect
|
||||||
@ -124,6 +135,7 @@ require (
|
|||||||
github.com/opencontainers/go-digest v1.0.0 // indirect
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
||||||
github.com/opencontainers/selinux v1.11.0 // indirect
|
github.com/opencontainers/selinux v1.11.0 // indirect
|
||||||
github.com/openshift/api v0.0.0-20240115183315-0793e918179d // indirect
|
github.com/openshift/api v0.0.0-20240115183315-0793e918179d // indirect
|
||||||
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||||
github.com/prometheus/client_model v0.5.0 // indirect
|
github.com/prometheus/client_model v0.5.0 // indirect
|
||||||
|
20
go.sum
20
go.sum
@ -759,6 +759,16 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7
|
|||||||
gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
|
gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
|
||||||
git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
|
git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
|
||||||
github.com/Azure/azure-sdk-for-go v62.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
github.com/Azure/azure-sdk-for-go v62.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1 h1:lGlwhPtrX6EVml1hO0ivjkUxsSyl4dsiw9qcA1k/3IQ=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1/go.mod h1:RKUqNu35KJYcVG/fqTRqmuXJZYNhYkBrnC/hX7yGbTA=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1 h1:sO0/P7g68FrryJzljemN+6GTssUXdANk6aJ7T1ZxnsQ=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1/go.mod h1:h8hyGFDsU5HMivxiS2iYFZsgDbU9OnnJ163x5UGVKYo=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1 h1:6oNBlSdi1QqM1PNW7FPA6xOGA5UNsXnkaYZz9vdPGhA=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1/go.mod h1:s4kgfzA0covAXNicZHDMN58jExvcng2mC/DepXiF1EI=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0 h1:h4Zxgmi9oyZL2l8jeg1iRTqPloHktywWcu0nlJmo1tA=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0/go.mod h1:LgLGXawqSreJz135Elog0ywTJDsm0Hz2k+N+6ZK35u8=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 h1:D3occbWoio4EBLkbkevetNMAVX197GkzbUMtqjGWn80=
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0/go.mod h1:bTSOgj05NGRuHHhQwAdPnYr9TOdNmKlZTgGLL6nyAdI=
|
||||||
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
|
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
|
||||||
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
|
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
|
||||||
github.com/Azure/go-autorest/autorest v0.11.27/go.mod h1:7l8ybrIdUmGqZMTD0sRtAr8NvbHjfofbf8RSP2q7w7U=
|
github.com/Azure/go-autorest/autorest v0.11.27/go.mod h1:7l8ybrIdUmGqZMTD0sRtAr8NvbHjfofbf8RSP2q7w7U=
|
||||||
@ -771,6 +781,8 @@ github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcP
|
|||||||
github.com/Azure/go-autorest/autorest/validation v0.3.1/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E=
|
github.com/Azure/go-autorest/autorest/validation v0.3.1/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E=
|
||||||
github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
|
github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
|
||||||
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
|
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1 h1:DzHpqpoJVaCgOUdVHxE8QB52S6NiVdDQvGlny1qvPqA=
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
@ -916,6 +928,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZm
|
|||||||
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
|
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
|
||||||
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
|
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
|
||||||
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
|
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
|
||||||
|
github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
|
||||||
|
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
|
||||||
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
|
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
|
||||||
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
|
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
|
||||||
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
||||||
@ -1051,6 +1065,8 @@ github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzw
|
|||||||
github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
|
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
||||||
|
github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw=
|
||||||
|
github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
|
||||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
||||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||||
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
|
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
|
||||||
@ -1323,6 +1339,8 @@ github.com/kubernetes-csi/csi-lib-utils v0.17.0/go.mod h1:2Ba5/aQgUjbpqyC2uCcFwM
|
|||||||
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.0.0/go.mod h1:YBCo4DoEeDndqvAn6eeu0vWM7QdXmHEeI9cFWplmBys=
|
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.0.0/go.mod h1:YBCo4DoEeDndqvAn6eeu0vWM7QdXmHEeI9cFWplmBys=
|
||||||
github.com/kubernetes-csi/external-snapshotter/client/v7 v7.0.0 h1:j3YK74myEQRxR/srciTpOrm221SAvz6J5OVWbyfeXFo=
|
github.com/kubernetes-csi/external-snapshotter/client/v7 v7.0.0 h1:j3YK74myEQRxR/srciTpOrm221SAvz6J5OVWbyfeXFo=
|
||||||
github.com/kubernetes-csi/external-snapshotter/client/v7 v7.0.0/go.mod h1:FlyYFe32mPxKEPaRXKNxfX576d1AoCzstYDoOOnyMA4=
|
github.com/kubernetes-csi/external-snapshotter/client/v7 v7.0.0/go.mod h1:FlyYFe32mPxKEPaRXKNxfX576d1AoCzstYDoOOnyMA4=
|
||||||
|
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
|
||||||
|
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
|
||||||
github.com/libopenstorage/autopilot-api v0.6.1-0.20210128210103-5fbb67948648/go.mod h1:6JLrPbR3ZJQFbUY/+QJMl/aF00YdIrLf8/GWAplgvJs=
|
github.com/libopenstorage/autopilot-api v0.6.1-0.20210128210103-5fbb67948648/go.mod h1:6JLrPbR3ZJQFbUY/+QJMl/aF00YdIrLf8/GWAplgvJs=
|
||||||
github.com/libopenstorage/openstorage v8.0.0+incompatible/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc=
|
github.com/libopenstorage/openstorage v8.0.0+incompatible/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc=
|
||||||
github.com/libopenstorage/operator v0.0.0-20200725001727-48d03e197117/go.mod h1:Qh+VXOB6hj60VmlgsmY+R1w+dFuHK246UueM4SAqZG0=
|
github.com/libopenstorage/operator v0.0.0-20200725001727-48d03e197117/go.mod h1:Qh+VXOB6hj60VmlgsmY+R1w+dFuHK246UueM4SAqZG0=
|
||||||
@ -1468,6 +1486,8 @@ github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2
|
|||||||
github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
||||||
github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
||||||
github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
|
github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
|
||||||
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=
|
||||||
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU=
|
||||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
|
6
vendor/github.com/ceph/ceph-csi/api/deploy/kubernetes/nfs/csi-provisioner-rbac-sa.yaml
generated
vendored
Normal file
6
vendor/github.com/ceph/ceph-csi/api/deploy/kubernetes/nfs/csi-provisioner-rbac-sa.yaml
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: "{{ .ServiceAccount }}"
|
||||||
|
namespace: "{{ .Namespace }}"
|
26
vendor/github.com/ceph/ceph-csi/api/deploy/kubernetes/nfs/csi-provisioner-rbac.go
generated
vendored
26
vendor/github.com/ceph/ceph-csi/api/deploy/kubernetes/nfs/csi-provisioner-rbac.go
generated
vendored
@ -30,6 +30,9 @@ import (
|
|||||||
"github.com/ceph/ceph-csi/api/deploy/kubernetes"
|
"github.com/ceph/ceph-csi/api/deploy/kubernetes"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//go:embed csi-provisioner-rbac-sa.yaml
|
||||||
|
var csiProvisionerServiceAccount string
|
||||||
|
|
||||||
//go:embed csi-provisioner-rbac-cr.yaml
|
//go:embed csi-provisioner-rbac-cr.yaml
|
||||||
var csiProvisionerClusterRole string
|
var csiProvisionerClusterRole string
|
||||||
|
|
||||||
@ -88,7 +91,13 @@ func NewCSIProvisionerRBAC(values kubernetes.CSIProvisionerRBACValues) (kubernet
|
|||||||
func NewCSIProvisionerRBACYAML(values kubernetes.CSIProvisionerRBACValues) (string, error) {
|
func NewCSIProvisionerRBACYAML(values kubernetes.CSIProvisionerRBACValues) (string, error) {
|
||||||
docs := []string{}
|
docs := []string{}
|
||||||
|
|
||||||
data, err := newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
data, err := newYAML("csiProvisionerServiceAccount", csiProvisionerServiceAccount, values)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
docs = append(docs, data)
|
||||||
|
|
||||||
|
data, err = newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
@ -131,6 +140,21 @@ func newYAML(name, data string, values kubernetes.CSIProvisionerRBACValues) (str
|
|||||||
return buf.String(), nil
|
return buf.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func newServiceAccount(values kubernetes.CSIProvisionerRBACValues) (*corev1.ServiceAccount, error) {
|
||||||
|
data, err := newYAML("csiProvisionerServiceAccount", csiProvisionerServiceAccount, values)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
sa := &corev1.ServiceAccount{}
|
||||||
|
err = yaml.Unmarshal([]byte(data), sa)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("failed convert YAML to %T: %w", sa, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return sa, nil
|
||||||
|
}
|
||||||
|
|
||||||
func newClusterRole(values kubernetes.CSIProvisionerRBACValues) (*rbacv1.ClusterRole, error) {
|
func newClusterRole(values kubernetes.CSIProvisionerRBACValues) (*rbacv1.ClusterRole, error) {
|
||||||
data, err := newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
data, err := newYAML("csiProvisionerClusterRole", csiProvisionerClusterRole, values)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
76
vendor/modules.txt
vendored
76
vendor/modules.txt
vendored
@ -1,3 +1,67 @@
|
|||||||
|
# github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/internal/resource
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/policy
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/log
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/async
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/body
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/fake
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/loc
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/op
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/log
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/policy
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/to
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing
|
||||||
|
# github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity/internal
|
||||||
|
# github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/diag
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/exported
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/log
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/poller
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/temporal
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal/uuid
|
||||||
|
# github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets
|
||||||
|
# github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal
|
||||||
|
# github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/cache
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/exported
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/json
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/json/types/time
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/local
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/internal/comm
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/internal/grant
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/wstrust/defs
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/options
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/shared
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version
|
||||||
|
github.com/AzureAD/microsoft-authentication-library-for-go/apps/public
|
||||||
# github.com/IBM/keyprotect-go-client v0.12.2
|
# github.com/IBM/keyprotect-go-client v0.12.2
|
||||||
## explicit; go 1.15
|
## explicit; go 1.15
|
||||||
github.com/IBM/keyprotect-go-client
|
github.com/IBM/keyprotect-go-client
|
||||||
@ -243,6 +307,9 @@ github.com/gogo/protobuf/gogoproto
|
|||||||
github.com/gogo/protobuf/proto
|
github.com/gogo/protobuf/proto
|
||||||
github.com/gogo/protobuf/protoc-gen-gogo/descriptor
|
github.com/gogo/protobuf/protoc-gen-gogo/descriptor
|
||||||
github.com/gogo/protobuf/sortkeys
|
github.com/gogo/protobuf/sortkeys
|
||||||
|
# github.com/golang-jwt/jwt/v5 v5.2.0
|
||||||
|
## explicit; go 1.18
|
||||||
|
github.com/golang-jwt/jwt/v5
|
||||||
# github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
|
# github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
|
||||||
## explicit
|
## explicit
|
||||||
github.com/golang/groupcache/lru
|
github.com/golang/groupcache/lru
|
||||||
@ -400,6 +467,10 @@ github.com/kubernetes-csi/external-snapshotter/client/v7/apis/volumegroupsnapsho
|
|||||||
github.com/kubernetes-csi/external-snapshotter/client/v7/apis/volumesnapshot/v1
|
github.com/kubernetes-csi/external-snapshotter/client/v7/apis/volumesnapshot/v1
|
||||||
github.com/kubernetes-csi/external-snapshotter/client/v7/clientset/versioned/scheme
|
github.com/kubernetes-csi/external-snapshotter/client/v7/clientset/versioned/scheme
|
||||||
github.com/kubernetes-csi/external-snapshotter/client/v7/clientset/versioned/typed/volumesnapshot/v1
|
github.com/kubernetes-csi/external-snapshotter/client/v7/clientset/versioned/typed/volumesnapshot/v1
|
||||||
|
# github.com/kylelemons/godebug v1.1.0
|
||||||
|
## explicit; go 1.11
|
||||||
|
github.com/kylelemons/godebug/diff
|
||||||
|
github.com/kylelemons/godebug/pretty
|
||||||
# github.com/libopenstorage/secrets v0.0.0-20231011182615-5f4b25ceede1
|
# github.com/libopenstorage/secrets v0.0.0-20231011182615-5f4b25ceede1
|
||||||
## explicit; go 1.13
|
## explicit; go 1.13
|
||||||
github.com/libopenstorage/secrets
|
github.com/libopenstorage/secrets
|
||||||
@ -493,6 +564,9 @@ github.com/opencontainers/selinux/pkg/pwalkdir
|
|||||||
# github.com/openshift/api v0.0.0-20240115183315-0793e918179d
|
# github.com/openshift/api v0.0.0-20240115183315-0793e918179d
|
||||||
## explicit; go 1.21
|
## explicit; go 1.21
|
||||||
github.com/openshift/api/security/v1
|
github.com/openshift/api/security/v1
|
||||||
|
# github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
|
||||||
|
## explicit; go 1.14
|
||||||
|
github.com/pkg/browser
|
||||||
# github.com/pkg/errors v0.9.1
|
# github.com/pkg/errors v0.9.1
|
||||||
## explicit
|
## explicit
|
||||||
github.com/pkg/errors
|
github.com/pkg/errors
|
||||||
@ -652,6 +726,8 @@ golang.org/x/crypto/internal/alias
|
|||||||
golang.org/x/crypto/internal/poly1305
|
golang.org/x/crypto/internal/poly1305
|
||||||
golang.org/x/crypto/nacl/secretbox
|
golang.org/x/crypto/nacl/secretbox
|
||||||
golang.org/x/crypto/pbkdf2
|
golang.org/x/crypto/pbkdf2
|
||||||
|
golang.org/x/crypto/pkcs12
|
||||||
|
golang.org/x/crypto/pkcs12/internal/rc2
|
||||||
golang.org/x/crypto/salsa20/salsa
|
golang.org/x/crypto/salsa20/salsa
|
||||||
golang.org/x/crypto/scrypt
|
golang.org/x/crypto/scrypt
|
||||||
golang.org/x/crypto/ssh
|
golang.org/x/crypto/ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user