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

ASTRACTL-33839 #358

Merged
merged 18 commits into from
Jun 6, 2024
Merged

ASTRACTL-33839 #358

merged 18 commits into from
Jun 6, 2024

Conversation

zachatnetapp
Copy link
Collaborator

@zachatnetapp zachatnetapp commented Jun 5, 2024

This covers the following scenarios:

  • add a k create secret command for trident-acp secret in the case where trident-acp needs to be enabled or upgraded
  • if NAMESPACE is empty and components includes trident and connector, we now create a second secret for trident-acp

Both of these cases are assuming that the our ACS registry (cr.astra.netapp.io) is being used. If not, it is up to the script user to handle their own secrets.

Also there are some other miscellaneous fixes that were already existing here #337 and that I needed for my changes to work right.

if [ -z "$_EXISTING_TRIDENT_OPERATOR_PULL_SECRETS" ]; then
patch_list+=',{"op":"replace","path":"/spec/template/spec/imagePullSecrets","value":['"$secret_obj"']}'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just for consistency. We don't have this $secret_obj variable in step_generate_torc_patch(), so I'd rather we do the same thing in both places. This came up with I was solving a merge conflict, otherwise I would not have even thought to touch this.

Copy link
Collaborator

@palicena palicena left a comment

Choose a reason for hiding this comment

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

👌

zachatnetapp and others added 6 commits June 5, 2024 15:43
* ASTRACTL-32772: fix namespace/pull secret bug when prompts disabled

* ASTRACTL-32772: fix kubectl apply not detecting errors if output after a warning

* ASTRACTL-32772: cleanup
Copy link

github-actions bot commented Jun 6, 2024

Code Coverage

Package Line Rate
github.com/NetApp-Polaris/astra-connector-operator/app/conf 75%
github.com/NetApp-Polaris/astra-connector-operator/app/deployer/connector 91%
github.com/NetApp-Polaris/astra-connector-operator/app/deployer 100%
github.com/NetApp-Polaris/astra-connector-operator/app/deployer/model 100%
github.com/NetApp-Polaris/astra-connector-operator/app/deployer/neptune 85%
github.com/NetApp-Polaris/astra-connector-operator/app/register 16%
github.com/NetApp-Polaris/astra-connector-operator/details/k8s 62%
github.com/NetApp-Polaris/astra-connector-operator/details/k8s/precheck 56%
github.com/NetApp-Polaris/astra-connector-operator/details/operator-sdk/api/v1 46%
github.com/NetApp-Polaris/astra-connector-operator/details/operator-sdk/controllers 0%
github.com/NetApp-Polaris/astra-connector-operator/util 100%
Summary 55% (960 / 1752)

Minimum allowed line rate is 50%

@zachatnetapp zachatnetapp merged commit b6cb49f into main Jun 6, 2024
3 checks passed
@zachatnetapp zachatnetapp deleted the ASTRACTL-33839 branch June 6, 2024 15:08
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