-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Template credential-provider-config api version (#922)
* Have credential-provider-config api version be dynamically generated based on kubernetes version. Always update KubeletCredentialProviderConfig and binaries in cases of version updates * using t.Setenv instead of os.Setenv for testing
- Loading branch information
Showing
8 changed files
with
126 additions
and
17 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
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
4 changes: 2 additions & 2 deletions
4
credentialproviderpackage/pkg/configurator/linux/templates/credential-provider-config.yaml
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
17 changes: 17 additions & 0 deletions
17
credentialproviderpackage/pkg/configurator/linux/testdata/expected-config-alpha.yaml
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,17 @@ | ||
apiVersion: kubelet.config.k8s.io/v1alpha1 | ||
kind: CredentialProviderConfig | ||
providers: | ||
- name: ecr-credential-provider | ||
matchImages: | ||
- "*.dkr.ecr.*.amazonaws.com" | ||
defaultCacheDuration: "30m" | ||
apiVersion: credentialprovider.kubelet.k8s.io/v1alpha1 | ||
env: | ||
- name: AWS_PROFILE | ||
value: eksa-packages | ||
- name: AWS_CONFIG_FILE | ||
value: /eksa-packages/aws-creds | ||
- name: PATH | ||
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/eksa-packages | ||
- name: HOME | ||
value: /eksa-packages/ |
17 changes: 17 additions & 0 deletions
17
credentialproviderpackage/pkg/configurator/linux/testdata/expected-config-beta.yaml
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,17 @@ | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
kind: CredentialProviderConfig | ||
providers: | ||
- name: ecr-credential-provider | ||
matchImages: | ||
- "*.dkr.ecr.*.amazonaws.com" | ||
defaultCacheDuration: "30m" | ||
apiVersion: credentialprovider.kubelet.k8s.io/v1beta1 | ||
env: | ||
- name: AWS_PROFILE | ||
value: eksa-packages | ||
- name: AWS_CONFIG_FILE | ||
value: /eksa-packages/aws-creds | ||
- name: PATH | ||
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/eksa-packages | ||
- name: HOME | ||
value: /eksa-packages/ |
4 changes: 2 additions & 2 deletions
4
...ialproviderpackage/pkg/configurator/linux/testdata/expected-config-multiple-patterns.yaml
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
4 changes: 2 additions & 2 deletions
4
credentialproviderpackage/pkg/configurator/linux/testdata/expected-config.yaml
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