-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Configure aws oidc provider #11361
Configure aws oidc provider #11361
Conversation
ad0279d
to
00939fa
Compare
/hold cancel |
pkg/apis/kops/cluster.go
Outdated
@@ -207,6 +205,17 @@ type ClusterSpec struct { | |||
ClusterAutoscaler *ClusterAutoscalerConfig `json:"clusterAutoscaler,omitempty"` | |||
// WarmPool defines the default warm pool settings for instance groups (AWS only). | |||
WarmPool *WarmPoolSpec `json:"warmPool,omitempty"` | |||
|
|||
// ServiceAccountIssuerDiscovery configures the OIDC Issuer for ServiceAccounts. | |||
ServiceAccountIssuerDiscovery *OIDCIssuerConfig `json:"serviceAccountIssuerDiscovery,omitempty"` |
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.
I think the type should have the field name as a prefix.
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.
I was wondering if we'd use this type for other properties too. But I guess not. I'll amend.
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.
If we'd use the type for other properties then the name of the field shouldn't have "Discovery" in it.
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.
It should. Anyways, amended now.
00939fa
to
7593368
Compare
type OIDCIssuerConfig struct { | ||
// DiscoveryStore is the VFS path to where OIDC Issuer Discovery metadata is stored. | ||
DiscoveryStore string `json:"discoveryStore,omitempty"` | ||
// EnableAWSOIDCProvider will provision an AWS OIDC provider that trusts the ServiceAccount Issuer |
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.
// EnableAWSOIDCProvider will provision an AWS OIDC provider that trusts the ServiceAccount Issuer | |
// EnableAWSOIDCProvider will provision an AWS OIDC provider that trusts the ServiceAccount Issuer. |
Could one of the two integration tests with the PublicJWKS feature flag have it removed? Perhaps a followup PR. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johngmyers The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Move VFS path and create flag for enabling AWS OIDC provider
/hold for #11359